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

Unified Diff: runtime/lib/string.cc

Issue 8333001: Implement case mapping using the Unicode default case mapping algorithm. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Renamed result string variables. Created 9 years, 2 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 | runtime/lib/string.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/string.cc
diff --git a/runtime/lib/string.cc b/runtime/lib/string.cc
index f6941d5e896ee35e60f4f5d6550727eb96c9c247..66d8513f92ca7411b1736cb42e9706ff9e30f4cd 100644
--- a/runtime/lib/string.cc
+++ b/runtime/lib/string.cc
@@ -140,6 +140,22 @@ DEFINE_NATIVE_ENTRY(String_concat, 2) {
}
+DEFINE_NATIVE_ENTRY(String_toLowerCase, 1) {
+ const String& str = String::CheckedHandle(arguments->At(0));
+ ASSERT(!str.IsNull());
+ const String& result = String::Handle(String::ToLowerCase(str));
+ arguments->SetReturn(result);
+}
+
+
+DEFINE_NATIVE_ENTRY(String_toUpperCase, 1) {
+ const String& str = String::CheckedHandle(arguments->At(0));
+ ASSERT(!str.IsNull());
+ const String& result = String::Handle(String::ToUpperCase(str));
+ arguments->SetReturn(result);
+}
+
+
DEFINE_NATIVE_ENTRY(Strings_concatAll, 1) {
const Array& strings = Array::CheckedHandle(arguments->At(0));
ASSERT(!strings.IsNull());
« no previous file with comments | « no previous file | runtime/lib/string.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698