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

Unified Diff: trunk/src/base/i18n/rtl.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
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 | « trunk/src/base/files/file_path.cc ('k') | trunk/src/base/strings/string_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/base/i18n/rtl.cc
===================================================================
--- trunk/src/base/i18n/rtl.cc (revision 289319)
+++ trunk/src/base/i18n/rtl.cc (working copy)
@@ -84,17 +84,17 @@
if (locale_string.substr(0, 2) != "es")
return locale_string;
// Expand es to es-ES.
- if (base::LowerCaseEqualsASCII(locale_string, "es"))
+ if (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 (base::LowerCaseEqualsASCII(locale_string, "es-419")) {
+ if (LowerCaseEqualsASCII(locale_string, "es-419")) {
const icu::Locale& locale = icu::Locale::getDefault();
std::string language = locale.getLanguage();
const char* country = locale.getCountry();
- if (base::LowerCaseEqualsASCII(language, "es") &&
- !base::LowerCaseEqualsASCII(country, "es")) {
+ if (LowerCaseEqualsASCII(language, "es") &&
+ !LowerCaseEqualsASCII(country, "es")) {
language += '-';
language += country;
return language;
« no previous file with comments | « trunk/src/base/files/file_path.cc ('k') | trunk/src/base/strings/string_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698