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

Side by Side Diff: pkg/utf/lib/utf.dart

Issue 23135020: Add utf package. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use similar wording as json package in README. Created 7 years, 3 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
« no previous file with comments | « pkg/utf/README.md ('k') | pkg/utf/lib/utf16.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 // 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
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
OLDNEW
« no previous file with comments | « pkg/utf/README.md ('k') | pkg/utf/lib/utf16.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698