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

Unified Diff: runtime/vm/intermediate_language.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
Index: runtime/vm/intermediate_language.cc
diff --git a/runtime/vm/intermediate_language.cc b/runtime/vm/intermediate_language.cc
index 21d220d34bbd9eebe1fbbfadde59632187145523..78c8a099480024dca67f2023034d1e75ffe78c25 100644
--- a/runtime/vm/intermediate_language.cc
+++ b/runtime/vm/intermediate_language.cc
@@ -219,7 +219,7 @@ static bool CompareNames(const Library& lib,
const char* test_name,
const String& name) {
// If both names are private mangle test_name before comparison.
- if ((name.CharAt(0) == '_') && (test_name[0] == '_')) {
+ if ((name.CodeUnitAt(0) == '_') && (test_name[0] == '_')) {
const String& test_name_symbol = String::Handle(Symbols::New(test_name));
return String::Handle(lib.PrivateName(test_name_symbol)).Equals(name);
}

Powered by Google App Engine
This is Rietveld 408576698