Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Side by Side Diff: packages/html/lib/src/char_encodings.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « packages/html/lib/parser_console.dart ('k') | packages/html/lib/src/constants.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « packages/html/lib/parser_console.dart ('k') | packages/html/lib/src/constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698