Index: base/i18n/case_conversion.cc |
diff --git a/base/i18n/case_conversion.cc b/base/i18n/case_conversion.cc |
index 4aa90286a42519105d28608425705f620bb55ff5..d3b06c94e0fb536dc5f01e03b250d4ddc0d015e3 100644 |
--- a/base/i18n/case_conversion.cc |
+++ b/base/i18n/case_conversion.cc |
@@ -4,19 +4,20 @@ |
#include "base/i18n/case_conversion.h" |
+#include "base/string16.h" |
#include "unicode/unistr.h" |
namespace base { |
namespace i18n { |
-string16 ToLower(const string16& string) { |
- icu::UnicodeString unicode_string(string.c_str(), string.size()); |
+string16 ToLower(const StringPiece16& string) { |
+ icu::UnicodeString unicode_string(string.data(), string.size()); |
unicode_string.toLower(); |
return string16(unicode_string.getBuffer(), unicode_string.length()); |
} |
-string16 ToUpper(const string16& string) { |
- icu::UnicodeString unicode_string(string.c_str(), string.size()); |
+string16 ToUpper(const StringPiece16& string) { |
+ icu::UnicodeString unicode_string(string.data(), string.size()); |
unicode_string.toUpper(); |
return string16(unicode_string.getBuffer(), unicode_string.length()); |
} |