| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Support for encoding and decoding Unicode characters in UTF-8, UTF-16, and | 6 * Support for encoding and decoding Unicode characters in UTF-8, UTF-16, and |
| 7 * UTF-32. | 7 * UTF-32. |
| 8 */ | 8 */ |
| 9 library dart.utf; | 9 library utf; |
| 10 import "dart:async"; | 10 import "dart:async"; |
| 11 import "dart:collection"; | 11 import "dart:collection"; |
| 12 part "utf_stream.dart"; | 12 part "utf_stream.dart"; |
| 13 part "utf8.dart"; | 13 part "utf8.dart"; |
| 14 part "utf16.dart"; | 14 part "utf16.dart"; |
| 15 part "utf32.dart"; | 15 part "utf32.dart"; |
| 16 | 16 |
| 17 // TODO(jmesserly): would be nice to have this on String (dartbug.com/6501). | 17 // TODO(jmesserly): would be nice to have this on String (dartbug.com/6501). |
| 18 /** | 18 /** |
| 19 * Provide a list of Unicode codepoints for a given string. | 19 * Provide a list of Unicode codepoints for a given string. |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 _offset -= by; | 260 _offset -= by; |
| 261 } | 261 } |
| 262 | 262 |
| 263 int get remaining => _end - _offset - 1; | 263 int get remaining => _end - _offset - 1; |
| 264 | 264 |
| 265 void skip([int count = 1]) { | 265 void skip([int count = 1]) { |
| 266 _offset += count; | 266 _offset += count; |
| 267 } | 267 } |
| 268 } | 268 } |
| 269 | 269 |
| OLD | NEW |