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

Unified Diff: runtime/lib/regexp_jsc.cc

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
« no previous file with comments | « no previous file | runtime/lib/string.cc » ('j') | runtime/lib/string.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/regexp_jsc.cc
diff --git a/runtime/lib/regexp_jsc.cc b/runtime/lib/regexp_jsc.cc
index 31cee70a1f59e91044cb4d09853dbaa8e4b0a870..a81f2134868f5dfd9e1d3adce8e397a08350f88e 100644
--- a/runtime/lib/regexp_jsc.cc
+++ b/runtime/lib/regexp_jsc.cc
@@ -19,7 +19,7 @@ static uint16_t* GetTwoByteData(const String& str) {
Zone* zone = Isolate::Current()->current_zone();
uint16_t* two_byte_str = zone->Alloc<uint16_t>(str.Length());
for (intptr_t i = 0; i < str.Length(); i++) {
- two_byte_str[i] = str.CharAt(i);
+ two_byte_str[i] = str.CodeUnitAt(i);
cshapiro 2012/11/15 20:14:51 Please do not change the name of this method on th
erikcorry 2012/11/15 23:47:05 The strings are now made up of UTF16 code units, n
}
return two_byte_str;
}
« no previous file with comments | « no previous file | runtime/lib/string.cc » ('j') | runtime/lib/string.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698