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

Unified Diff: sdk/lib/_internal/compiler/implementation/lib/js_string.dart

Issue 12094056: Runes, a bi-directional code-point iterator/iterable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Make rawIndex return null if there is no current rune. 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
Index: sdk/lib/_internal/compiler/implementation/lib/js_string.dart
diff --git a/sdk/lib/_internal/compiler/implementation/lib/js_string.dart b/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
index 381a690564ac2c86ee075b4d996308cbc0bd2828..dcb5b4ef98aee34ac33caa11216fccc145b6ff9d 100644
--- a/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
+++ b/sdk/lib/_internal/compiler/implementation/lib/js_string.dart
@@ -153,9 +153,7 @@ class JSString implements String {
throw new UnimplementedError("String.codeUnits");
}
- Iterable<int> get runes {
- throw new UnimplementedError("String.runes");
- }
+ Runes get runes => new Runes(this);
int indexOf(String other, [int start = 0]) {
checkNull(other);

Powered by Google App Engine
This is Rietveld 408576698