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

Unified Diff: base/i18n/case_conversion.cc

Issue 7549003: Optimize phishing page term feature extraction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Brian's comments Created 9 years, 4 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 | « base/i18n/case_conversion.h ('k') | base/memory/mru_cache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
}
« no previous file with comments | « base/i18n/case_conversion.h ('k') | base/memory/mru_cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698