| OLD | NEW |
| 1 part of dart.convert; | 1 part of dart.convert; |
| 2 | 2 |
| 3 const int UNICODE_REPLACEMENT_CHARACTER_RUNE = 0xFFFD; | 3 const int UNICODE_REPLACEMENT_CHARACTER_RUNE = 0xFFFD; |
| 4 const int UNICODE_BOM_CHARACTER_RUNE = 0xFEFF; | 4 const int UNICODE_BOM_CHARACTER_RUNE = 0xFEFF; |
| 5 const Utf8Codec UTF8 = const Utf8Codec(); | 5 const Utf8Codec UTF8 = const Utf8Codec(); |
| 6 class Utf8Codec extends Encoding { | 6 class Utf8Codec extends Encoding { |
| 7 final bool _allowMalformed; | 7 final bool _allowMalformed; |
| 8 const Utf8Codec({bool allowMalformed: false}) | 8 const Utf8Codec({bool allowMalformed: false}) |
| 9 : _allowMalformed = allowMalformed; | 9 : _allowMalformed = allowMalformed; |
| 10 String get name => "utf-8"; | 10 String get name => "utf-8"; |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 } else { | 176 } else { |
| 177 stringSink = new StringConversionSink.from(sink); | 177 stringSink = new StringConversionSink.from(sink); |
| 178 } | 178 } |
| 179 return stringSink.asUtf8Sink(_allowMalformed); | 179 return stringSink.asUtf8Sink(_allowMalformed); |
| 180 } | 180 } |
| 181 Stream<String> bind(Stream<List<int>> stream) => ((__x31) => DDC$RT.cast( | 181 Stream<String> bind(Stream<List<int>> stream) => ((__x31) => DDC$RT.cast( |
| 182 __x31, DDC$RT.type((DDC$async$.Stream<dynamic> _) {}), | 182 __x31, DDC$RT.type((DDC$async$.Stream<dynamic> _) {}), |
| 183 DDC$RT.type((DDC$async$.Stream<String> _) {}), "CastDynamic", | 183 DDC$RT.type((DDC$async$.Stream<String> _) {}), "CastDynamic", |
| 184 """line 361, column 52 of dart:convert/utf.dart: """, | 184 """line 361, column 52 of dart:convert/utf.dart: """, |
| 185 __x31 is DDC$async$.Stream<String>, false))(super.bind(stream)); | 185 __x31 is DDC$async$.Stream<String>, false))(super.bind(stream)); |
| 186 @patch Converter<List<int>, dynamic> fuse(Converter<String, dynamic> next) { | 186 Converter<List<int>, dynamic> fuse(Converter<String, dynamic> next) { |
| 187 return super.fuse(next); | 187 return super.fuse(next); |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 const int _ONE_BYTE_LIMIT = 0x7f; | 190 const int _ONE_BYTE_LIMIT = 0x7f; |
| 191 const int _TWO_BYTE_LIMIT = 0x7ff; | 191 const int _TWO_BYTE_LIMIT = 0x7ff; |
| 192 const int _THREE_BYTE_LIMIT = 0xffff; | 192 const int _THREE_BYTE_LIMIT = 0xffff; |
| 193 const int _FOUR_BYTE_LIMIT = 0x10ffff; | 193 const int _FOUR_BYTE_LIMIT = 0x10ffff; |
| 194 const int _SURROGATE_MASK = 0xF800; | 194 const int _SURROGATE_MASK = 0xF800; |
| 195 const int _SURROGATE_TAG_MASK = 0xFC00; | 195 const int _SURROGATE_TAG_MASK = 0xFC00; |
| 196 const int _SURROGATE_VALUE_MASK = 0x3FF; | 196 const int _SURROGATE_VALUE_MASK = 0x3FF; |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 } | 342 } |
| 343 break loop; | 343 break loop; |
| 344 } | 344 } |
| 345 if (expectedUnits > 0) { | 345 if (expectedUnits > 0) { |
| 346 _value = value; | 346 _value = value; |
| 347 _expectedUnits = expectedUnits; | 347 _expectedUnits = expectedUnits; |
| 348 _extraUnits = extraUnits; | 348 _extraUnits = extraUnits; |
| 349 } | 349 } |
| 350 } | 350 } |
| 351 } | 351 } |
| OLD | NEW |