| OLD | NEW |
| 1 /// Decodes bytes using the correct name. See [decodeBytes]. | 1 /// Decodes bytes using the correct name. See [decodeBytes]. |
| 2 library char_encodings; | 2 library char_encodings; |
| 3 | 3 |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'package:utf/utf.dart'; | 5 import 'package:utf/utf.dart'; |
| 6 | 6 |
| 7 // TODO(jmesserly): this function is conspicuously absent from dart:utf. | 7 // TODO(jmesserly): this function is conspicuously absent from dart:utf. |
| 8 /// Returns true if the [bytes] starts with a UTF-8 byte order mark. | 8 /// Returns true if the [bytes] starts with a UTF-8 byte order mark. |
| 9 /// Since UTF-8 doesn't have byte order, it's somewhat of a misnomer, but it is | 9 /// Since UTF-8 doesn't have byte order, it's somewhat of a misnomer, but it is |
| 10 /// used in HTML to detect the UTF- | 10 /// used in HTML to detect the UTF- |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 case 0x9D: | 214 case 0x9D: |
| 215 if (replacementCodepoint == null) { | 215 if (replacementCodepoint == null) { |
| 216 throw new ArgumentError( | 216 throw new ArgumentError( |
| 217 "Invalid windows-1252 code point $char at $_offset"); | 217 "Invalid windows-1252 code point $char at $_offset"); |
| 218 } | 218 } |
| 219 return replacementCodepoint; | 219 return replacementCodepoint; |
| 220 } | 220 } |
| 221 return char; | 221 return char; |
| 222 } | 222 } |
| 223 } | 223 } |
| OLD | NEW |