OLD | NEW |
| (Empty) |
1 part of dart.convert; | |
2 abstract class Encoding extends Codec<String, List<int>> {const Encoding(); | |
3 Future<String> decodeStream(Stream<List<int>> byteStream) { | |
4 return ((__x3) => DEVC$RT.cast(__x3, DEVC$RT.type((DDC$async$.Future<dynamic>
_) { | |
5 } | |
6 ), DEVC$RT.type((DDC$async$.Future<String> _) { | |
7 } | |
8 ), "CompositeCast", """line 14, column 12 of dart:convert/encoding.dart: """,
__x3 is DDC$async$.Future<String>, false))(byteStream.transform(decoder).fold(ne
w StringBuffer(), (buffer, string) => buffer..write(string)).then((buffer) => bu
ffer.toString())); | |
9 } | |
10 String get name; | |
11 static Map<String, Encoding> _nameToEncoding = <String, Encoding> { | |
12 "iso_8859-1:1987" : LATIN1, "iso-ir-100" : LATIN1, "iso_8859-1" : LATIN1, "iso
-8859-1" : LATIN1, "latin1" : LATIN1, "l1" : LATIN1, "ibm819" : LATIN1, "cp819"
: LATIN1, "csisolatin1" : LATIN1, "iso-ir-6" : ASCII, "ansi_x3.4-1968" : ASCII,
"ansi_x3.4-1986" : ASCII, "iso_646.irv:1991" : ASCII, "iso646-us" : ASCII, "us-a
scii" : ASCII, "us" : ASCII, "ibm367" : ASCII, "cp367" : ASCII, "csascii" : ASCI
I, "ascii" : ASCII, "csutf8" : UTF8, "utf-8" : UTF8} | |
13 ; | |
14 static Encoding getByName(String name) { | |
15 if (name == null) return null; | |
16 name = name.toLowerCase(); | |
17 return _nameToEncoding[name]; | |
18 } | |
19 } | |
OLD | NEW |