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

Side by Side Diff: utils/string_encoding/utf16.dart

Issue 9310038: Fix mac/git renaming case failure. Aaarrrrgggghhhh. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « utils/string_encoding/unicode.dart ('k') | utils/string_encoding/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 #library("utf16"); 5 #library("utf16");
6 #import("unicode_core.dart"); 6 #import("unicode_core.dart");
7 #import("unicode.dart"); 7 #import("unicode.dart");
8 8
9 /** 9 /**
10 * Produce a String from a sequence of UTF-16 encoded bytes. The parameters 10 * Produce a String from a sequence of UTF-16 encoded bytes. The parameters
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 return _utf16beToUtf16CodeUnits(utf16EncodedBytes, offset + 2, 264 return _utf16beToUtf16CodeUnits(utf16EncodedBytes, offset + 2,
265 end - (offset + 2), false); 265 end - (offset + 2), false);
266 } else if (hasUtf16leBom(utf16EncodedBytes, offset, length)) { 266 } else if (hasUtf16leBom(utf16EncodedBytes, offset, length)) {
267 return _utf16leToUtf16CodeUnits(utf16EncodedBytes, offset + 2, 267 return _utf16leToUtf16CodeUnits(utf16EncodedBytes, offset + 2,
268 end - (offset + 2), false); 268 end - (offset + 2), false);
269 } else { 269 } else {
270 return _utf16beToUtf16CodeUnits( 270 return _utf16beToUtf16CodeUnits(
271 utf16EncodedBytes, offset, end - offset, false); 271 utf16EncodedBytes, offset, end - offset, false);
272 } 272 }
273 } 273 }
OLDNEW
« no previous file with comments | « utils/string_encoding/unicode.dart ('k') | utils/string_encoding/utf32.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698