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

Unified Diff: runtime/lib/string_base.dart

Issue 12185027: Revert "Adapt String interface for Utf16." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/js_string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string_base.dart
diff --git a/runtime/lib/string_base.dart b/runtime/lib/string_base.dart
index 39f4518eb159c77dfe0456bb266d1d0fad211137..1f6d9fe7bfd28d5fc6cb0b00bd53f13943978722 100644
--- a/runtime/lib/string_base.dart
+++ b/runtime/lib/string_base.dart
@@ -38,11 +38,7 @@ class _StringBase {
String operator [](int index) native "String_charAt";
- int charCodeAt(int index) {
- return codeUnitAt(index);
- }
-
- int codeUnitAt(int index) native "String_charCodeAt";
+ int charCodeAt(int index) native "String_charCodeAt";
int get length native "String_getLength";
@@ -433,14 +429,6 @@ class _StringBase {
return result;
}
- Iterable<int> get codeUnits {
- throw new UnimplementedError("String.codeUnits");
- }
-
- Iterable<int> get runes {
- throw new UnimplementedError("String.runes");
- }
-
String toUpperCase() native "String_toUpperCase";
String toLowerCase() native "String_toLowerCase";
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/js_string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698