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

Unified Diff: base/i18n/rtl.cc

Issue 448143008: Move StringToUpperASCII and LowerCaseEqualsASCII to the base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/files/file_path.cc ('k') | base/strings/string_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/rtl.cc
diff --git a/base/i18n/rtl.cc b/base/i18n/rtl.cc
index 392cb13bdb78c112be17c8ee2c17ee69faf2d0fb..30737d6478c13a4e2ed530455c15719070d619d9 100644
--- a/base/i18n/rtl.cc
+++ b/base/i18n/rtl.cc
@@ -84,17 +84,17 @@ std::string ICULocaleName(const std::string& locale_string) {
if (locale_string.substr(0, 2) != "es")
return locale_string;
// Expand es to es-ES.
- if (LowerCaseEqualsASCII(locale_string, "es"))
+ if (base::LowerCaseEqualsASCII(locale_string, "es"))
return "es-ES";
// Map es-419 (Latin American Spanish) to es-FOO depending on the system
// locale. If it's es-RR other than es-ES, map to es-RR. Otherwise, map
// to es-MX (the most populous in Spanish-speaking Latin America).
- if (LowerCaseEqualsASCII(locale_string, "es-419")) {
+ if (base::LowerCaseEqualsASCII(locale_string, "es-419")) {
const icu::Locale& locale = icu::Locale::getDefault();
std::string language = locale.getLanguage();
const char* country = locale.getCountry();
- if (LowerCaseEqualsASCII(language, "es") &&
- !LowerCaseEqualsASCII(country, "es")) {
+ if (base::LowerCaseEqualsASCII(language, "es") &&
+ !base::LowerCaseEqualsASCII(country, "es")) {
language += '-';
language += country;
return language;
« no previous file with comments | « base/files/file_path.cc ('k') | base/strings/string_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698