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

Unified Diff: lib/utf/utf16.dart

Issue 9835072: Fix UTF library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/utf/utf16.dart
diff --git a/lib/utf/utf16.dart b/lib/utf/utf16.dart
index 35772dec1d0722a55d726e6e69f39fd1d9b3ff28..89c92096ca18d2c71833eb989476da451c205592 100644
--- a/lib/utf/utf16.dart
+++ b/lib/utf/utf16.dart
@@ -65,11 +65,11 @@ String decodeUtf16(List<int> bytes, [int offset = 0, int length,
// TODO is16BitCodeUnit() is used to work around a bug with frog/dartc
// (http://code.google.com/p/dart/issues/detail?id=1357). Consider
// removing after this issue is resolved.
- if (is16BitCodeUnit()) {
+ if (_is16BitCodeUnit()) {
return new String.fromCharCodes(codeunits);
} else {
return new String.fromCharCodes(
- utf16CodeUnitsToCodepoints(codeunits, 0, null, replacementCodepoint));
+ _utf16CodeUnitsToCodepoints(codeunits, 0, null, replacementCodepoint));
}
}
@@ -88,11 +88,11 @@ String decodeUtf16be(List<int> bytes, [int offset = 0, int length,
// TODO is16BitCodeUnit() is used to work around a bug with frog/dartc
// (http://code.google.com/p/dart/issues/detail?id=1357). Consider
// removing after this issue is resolved.
- if (is16BitCodeUnit()) {
+ if (_is16BitCodeUnit()) {
return new String.fromCharCodes(codeunits);
} else {
return new String.fromCharCodes(
- utf16CodeUnitsToCodepoints(codeunits, 0, null, replacementCodepoint));
+ _utf16CodeUnitsToCodepoints(codeunits, 0, null, replacementCodepoint));
}
}
@@ -111,11 +111,11 @@ String decodeUtf16le(List<int> bytes, [int offset = 0, int length,
// TODO is16BitCodeUnit() is used to work around a bug with frog/dartc
// (http://code.google.com/p/dart/issues/detail?id=1357). Consider
// removing after this issue is resolved.
- if (is16BitCodeUnit()) {
+ if (_is16BitCodeUnit()) {
return new String.fromCharCodes(codeunits);
} else {
return new String.fromCharCodes(
- utf16CodeUnitsToCodepoints(codeunits, 0, null, replacementCodepoint));
+ _utf16CodeUnitsToCodepoints(codeunits, 0, null, replacementCodepoint));
}
}
@@ -201,10 +201,10 @@ List<int> _stringToUtf16CodeUnits(String str) {
// TODO is16BitCodeUnit() is used to work around a bug with frog/dartc
// (http://code.google.com/p/dart/issues/detail?id=1357). Consider
// removing after this issue is resolved.
- if (is16BitCodeUnit()) {
+ if (_is16BitCodeUnit()) {
return str.charCodes();
} else {
- return codepointsToUtf16CodeUnits(str.charCodes());
+ return _codepointsToUtf16CodeUnits(str.charCodes());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698