// Otherwise, try parsing the |month| as a named month, e.g. "January" or
// "Jan".
- base::string16 lowercased_month = StringToLowerASCII(month);
+ base::string16 lowercased_month = base::StringToLowerASCII(month);
UErrorCode status = U_ZERO_ERROR;
icu::Locale locale(app_locale.c_str());
for (int32_t i = 0; i < num_months; ++i) {
const base::string16 icu_month = base::string16(months[i].getBuffer(),
months[i].length());
- if (lowercased_month == StringToLowerASCII(icu_month)) {
+ if (lowercased_month == base::StringToLowerASCII(icu_month)) {
*num = i + 1; // Adjust from 0-indexed to 1-indexed.
return true;
}
for (int32_t i = 0; i < num_months; ++i) {
const base::string16 icu_month = base::string16(months[i].getBuffer(),
months[i].length());
- if (lowercased_month == StringToLowerASCII(icu_month)) {
+ if (lowercased_month == base::StringToLowerASCII(icu_month)) {
*num = i + 1; // Adjust from 0-indexed to 1-indexed.
return true;
}
}
// static
-std::string CreditCard::GetCreditCardType(const base::string16& number) {
+const char* CreditCard::GetCreditCardType(const base::string16& number) {
// Credit card number specifications taken from:
// http://en.wikipedia.org/wiki/Credit_card_numbers,
// http://en.wikipedia.org/wiki/List_of_Issuer_Identification_Numbers,