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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/dartstring.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: 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: sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart b/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
index 08ed05ac67967bddb1daf5b18a924bd05a8241f2..2efed24e16db3210beca7d18768fb6d1e6ef84cf 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/dartstring.dart
@@ -99,7 +99,8 @@ class EscapedSourceDartString extends SourceBasedDartString {
StringBuffer buffer = new StringBuffer();
StringEscapeIterator it = new StringEscapeIterator(source);
while (it.hasNext) {
- buffer.addCharCode(it.next());
+ int code = it.next();
floitsch 2012/11/08 15:28:21 leave as is?
erikcorry 2012/11/15 13:28:25 Done.
+ buffer.addCharCode(code);
}
toStringCache = buffer.toString();
return toStringCache;

Powered by Google App Engine
This is Rietveld 408576698