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

Side by Side Diff: sdk/lib/utf/utf16.dart

Issue 11612020: Revert "Switch libraries to using new tags." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « sdk/lib/utf/utf.dart ('k') | sdk/lib/utf/utf32.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 part of dart.utf;
6 5
7 /** 6 /**
8 * Decodes the UTF-16 bytes as an iterable. Thus, the consumer can only convert 7 * Decodes the UTF-16 bytes as an iterable. Thus, the consumer can only convert
9 * as much of the input as needed. Determines the byte order from the BOM, 8 * as much of the input as needed. Determines the byte order from the BOM,
10 * or uses big-endian as a default. This method always strips a leading BOM. 9 * or uses big-endian as a default. This method always strips a leading BOM.
11 * Set the [replacementCodepoint] to null to throw an ArgumentError 10 * Set the [replacementCodepoint] to null to throw an ArgumentError
12 * rather than replace the bad value. The default value for 11 * rather than replace the bad value. The default value for
13 * [replacementCodepoint] is U+FFFD. 12 * [replacementCodepoint] is U+FFFD.
14 */ 13 */
15 IterableUtf16Decoder decodeUtf16AsIterable(List<int> bytes, [int offset = 0, 14 IterableUtf16Decoder decodeUtf16AsIterable(List<int> bytes, [int offset = 0,
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 skip(); 315 skip();
317 } 316 }
318 } 317 }
319 318
320 int decode() { 319 int decode() {
321 int lo = utf16EncodedBytesIterator.next(); 320 int lo = utf16EncodedBytesIterator.next();
322 int hi = utf16EncodedBytesIterator.next(); 321 int hi = utf16EncodedBytesIterator.next();
323 return (hi << 8) + lo; 322 return (hi << 8) + lo;
324 } 323 }
325 } 324 }
OLDNEW
« no previous file with comments | « sdk/lib/utf/utf.dart ('k') | sdk/lib/utf/utf32.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698