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

Side by Side Diff: packages/html/lib/src/inputstream.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/src/encoding_parser.dart ('k') | packages/html/lib/src/list_proxy.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 library inputstream; 1 library inputstream;
2 2
3 import 'dart:collection'; 3 import 'dart:collection';
4 import 'package:utf/utf.dart'; 4 import 'package:utf/utf.dart';
5 import 'package:source_span/source_span.dart'; 5 import 'package:source_span/source_span.dart';
6 import 'char_encodings.dart'; 6 import 'char_encodings.dart';
7 import 'constants.dart'; 7 import 'constants.dart';
8 import 'utils.dart'; 8 import 'utils.dart';
9 import 'encoding_parser.dart'; 9 import 'encoding_parser.dart';
10 10
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 /// Return the python codec name corresponding to an encoding or null if the 309 /// Return the python codec name corresponding to an encoding or null if the
310 /// string doesn't correspond to a valid encoding. 310 /// string doesn't correspond to a valid encoding.
311 String codecName(String encoding) { 311 String codecName(String encoding) {
312 final asciiPunctuation = new RegExp( 312 final asciiPunctuation = new RegExp(
313 "[\u0009-\u000D\u0020-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u007E]"); 313 "[\u0009-\u000D\u0020-\u002F\u003A-\u0040\u005B-\u0060\u007B-\u007E]");
314 314
315 if (encoding == null) return null; 315 if (encoding == null) return null;
316 var canonicalName = encoding.replaceAll(asciiPunctuation, '').toLowerCase(); 316 var canonicalName = encoding.replaceAll(asciiPunctuation, '').toLowerCase();
317 return encodings[canonicalName]; 317 return encodings[canonicalName];
318 } 318 }
OLDNEW
« no previous file with comments | « packages/html/lib/src/encoding_parser.dart ('k') | packages/html/lib/src/list_proxy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698