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

Side by Side Diff: pkg/third_party/html5lib/lib/src/utils.dart

Issue 157983005: pkg/third_party/html5lib: lots of cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: const Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /** Misc things that were useful when porting the code from Python. */ 1 /** Misc things that were useful when porting the code from Python. */
2 library utils; 2 library utils;
3 3
4 import 'dart:collection';
5 import 'constants.dart'; 4 import 'constants.dart';
6 5
7 typedef bool Predicate(); 6 typedef bool Predicate();
8 7
9 class Pair<F, S> { 8 class Pair<F, S> {
10 final F first; 9 final F first;
11 final S second; 10 final S second;
12 11
13 const Pair(this.first, this.second); 12 const Pair(this.first, this.second);
14 13
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 114
116 last = match + 1; 115 last = match + 1;
117 } 116 }
118 117
119 result.write(format.substring(last, format.length)); 118 result.write(format.substring(last, format.length));
120 format = result.toString(); 119 format = result.toString();
121 }); 120 });
122 121
123 return format; 122 return format;
124 } 123 }
OLDNEW
« no previous file with comments | « pkg/third_party/html5lib/lib/src/treebuilder.dart ('k') | pkg/third_party/html5lib/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698