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

Side by Side Diff: utils/string_encoding/unicode.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/Utf8_impl.dart ('k') | utils/string_encoding/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 #library("unicode"); 5 #library("unicode");
6 #import("unicode_core.dart"); 6 #import("unicode_core.dart");
7 7
8 /** 8 /**
9 * Provide Unicode codepoints for a given string. 9 * Provide Unicode codepoints for a given string.
10 */ 10 */
(...skipping 17 matching lines...) Expand all
28 // TODO is16BitCodeUnit() is used to work around a bug with frog/dartc 28 // TODO is16BitCodeUnit() is used to work around a bug with frog/dartc
29 // (http://code.google.com/p/dart/issues/detail?id=1357). Consider 29 // (http://code.google.com/p/dart/issues/detail?id=1357). Consider
30 // removing after this issue is resolved. 30 // removing after this issue is resolved.
31 if (is16BitCodeUnit()) { 31 if (is16BitCodeUnit()) {
32 return new String.fromCharCodes( 32 return new String.fromCharCodes(
33 codepointsToUtf16CodeUnits(codepoints)); 33 codepointsToUtf16CodeUnits(codepoints));
34 } else { 34 } else {
35 return new String.fromCharCodes(codepoints); 35 return new String.fromCharCodes(codepoints);
36 } 36 }
37 } 37 }
OLDNEW
« no previous file with comments | « utils/string_encoding/Utf8_impl.dart ('k') | utils/string_encoding/utf16.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698