OLD | NEW |
1 library encoding_parser; | 1 library encoding_parser; |
2 | 2 |
3 import 'constants.dart'; | 3 import 'constants.dart'; |
4 import 'inputstream.dart'; | 4 import 'inputstream.dart'; |
5 | 5 |
6 // TODO(jmesserly): I converted StopIteration to StateError("No more elements"). | 6 // TODO(jmesserly): I converted StopIteration to StateError("No more elements"). |
7 // Seems strange to throw this from outside of an iterator though. | 7 // Seems strange to throw this from outside of an iterator though. |
8 /// String-like object with an associated position and various extra methods | 8 /// String-like object with an associated position and various extra methods |
9 /// If the position is ever greater than the string length then an exception is | 9 /// If the position is ever greater than the string length then an exception is |
10 /// raised. | 10 /// raised. |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 return null; | 361 return null; |
362 } | 362 } |
363 } | 363 } |
364 } | 364 } |
365 | 365 |
366 bool isSpaceOrAngleBracket(String char) { | 366 bool isSpaceOrAngleBracket(String char) { |
367 return char == ">" || char == "<" || isWhitespace(char); | 367 return char == ">" || char == "<" || isWhitespace(char); |
368 } | 368 } |
369 | 369 |
370 typedef bool CharPreciate(String char); | 370 typedef bool CharPreciate(String char); |
OLD | NEW |