| OLD | NEW |
| 1 part of dart.convert; | 1 part of dart.convert; |
| 2 | 2 abstract class Encoding extends Codec<String, List<int>> {const Encoding(); |
| 3 abstract class Encoding extends Codec<String, List<int>> { | 3 Future<String> decodeStream(Stream<List<int>> byteStream) { |
| 4 const Encoding(); | 4 return ((__x5) => DDC$RT.cast(__x5, DDC$RT.type((DDC$async$.Future<dynamic> _)
{ |
| 5 Future<String> decodeStream(Stream<List<int>> byteStream) { | 5 } |
| 6 return ((__x5) => DDC$RT.cast(__x5, | 6 ), DDC$RT.type((DDC$async$.Future<String> _) { |
| 7 DDC$RT.type((DDC$async$.Future<dynamic> _) {}), | 7 } |
| 8 DDC$RT.type((DDC$async$.Future<String> _) {}), "CastDynamic", | 8 ), "CastDynamic", """line 14, column 12 of dart:convert/encoding.dart: """, __
x5 is DDC$async$.Future<String>, false))(byteStream.transform(DDC$RT.cast(decode
r, DDC$RT.type((Converter<List<int>, String> _) { |
| 9 """line 14, column 12 of dart:convert/encoding.dart: """, | 9 } |
| 10 __x5 is DDC$async$.Future<String>, false))(byteStream | 10 ), DDC$RT.type((DDC$async$.StreamTransformer<List<int>, dynamic> _) { |
| 11 .transform(DDC$RT.cast(decoder, | 11 } |
| 12 DDC$RT.type((Converter<List<int>, String> _) {}), DDC$RT | 12 ), "CastDynamic", """line 15, column 18 of dart:convert/encoding.dart: """, de
coder is DDC$async$.StreamTransformer<List<int>, dynamic>, false)).fold(new Stri
ngBuffer(), (buffer, string) => buffer..write(string)).then((buffer) => buffer.t
oString())); |
| 13 .type((DDC$async$.StreamTransformer<List<int>, dynamic> _) {}), | |
| 14 "CastDynamic", | |
| 15 """line 15, column 18 of dart:convert/encoding.dart: """, | |
| 16 decoder is DDC$async$.StreamTransformer<List<int>, dynamic>, false)) | |
| 17 .fold(new StringBuffer(), (buffer, string) => buffer..write(string)) | |
| 18 .then((buffer) => buffer.toString())); | |
| 19 } | 13 } |
| 20 String get name; | 14 String get name; |
| 21 static Map<String, Encoding> _nameToEncoding = <String, Encoding>{ | 15 static Map<String, Encoding> _nameToEncoding = <String, Encoding> { |
| 22 "iso_8859-1:1987": LATIN1, | 16 "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} |
| 23 "iso-ir-100": LATIN1, | 17 ; |
| 24 "iso_8859-1": LATIN1, | 18 static Encoding getByName(String name) { |
| 25 "iso-8859-1": LATIN1, | 19 if (name == null) return null; |
| 26 "latin1": LATIN1, | 20 name = name.toLowerCase(); |
| 27 "l1": LATIN1, | 21 return _nameToEncoding[name]; |
| 28 "ibm819": LATIN1, | |
| 29 "cp819": LATIN1, | |
| 30 "csisolatin1": LATIN1, | |
| 31 "iso-ir-6": ASCII, | |
| 32 "ansi_x3.4-1968": ASCII, | |
| 33 "ansi_x3.4-1986": ASCII, | |
| 34 "iso_646.irv:1991": ASCII, | |
| 35 "iso646-us": ASCII, | |
| 36 "us-ascii": ASCII, | |
| 37 "us": ASCII, | |
| 38 "ibm367": ASCII, | |
| 39 "cp367": ASCII, | |
| 40 "csascii": ASCII, | |
| 41 "ascii": ASCII, | |
| 42 "csutf8": UTF8, | |
| 43 "utf-8": UTF8 | |
| 44 }; | |
| 45 static Encoding getByName(String name) { | |
| 46 if (name == null) return null; | |
| 47 name = name.toLowerCase(); | |
| 48 return _nameToEncoding[name]; | |
| 49 } | 22 } |
| 50 } | 23 } |
| OLD | NEW |