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

Unified Diff: runtime/lib/string_patch.dart

Issue 11368138: Add some support for the code-point code-unit distinction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: New version integrates feedback, adds less to standard String class. Created 8 years, 1 month 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
Index: runtime/lib/string_patch.dart
diff --git a/runtime/lib/string_patch.dart b/runtime/lib/string_patch.dart
index df0393db3f40a345623dddd1bf941d3eabc94e35..2a33692bcb9a3df12578581e6ce56d13ba2e26e2 100644
--- a/runtime/lib/string_patch.dart
+++ b/runtime/lib/string_patch.dart
@@ -3,8 +3,8 @@
// BSD-style license that can be found in the LICENSE file.
patch class String {
- /* patch */ factory String.fromCharCodes(List<int> charCodes) {
- return _StringBase.createFromCharCodes(charCodes);
+ /* patch */ factory String.fromCodeUnits(List<int> codeUnits) {
+ return _StringBase.createFromCodeUnits(codeUnits);
}
}

Powered by Google App Engine
This is Rietveld 408576698