Home | History | Annotate | Download | only in autofill

Lines Matching refs:Locale

39 // The maximum capacity needed to store a locale up to the country code.
322 for (const char* const* country_pointer = icu::Locale::getISOCountries();
357 // country code or country name localized to |locale|.
359 const std::string& locale);
367 // localized to |locale| to their corresponding country codes.
368 void AddLocalizedNamesForLocale(const std::string& locale);
371 // |locale| and returns the corresponding country code stored in
374 const std::string& locale);
377 // given |locale|.
378 icu::Collator* GetCollatorForLocale(const std::string& locale);
395 // The outer map keys are ICU locale identifiers.
402 // Maps ICU locale names to their corresponding collators.
420 icu::Locale(NULL, country_code.c_str()).getISO3Country();
440 const std::string& locale) {
448 // Next, check country names localized to |locale|.
449 std::string country_code = GetCountryCodeForLocalizedName(country, locale);
457 void CountryNames::AddLocalizedNamesForLocale(const std::string& locale) {
459 // |locale|.
460 if (locales_to_localized_names_.count(locale))
465 icu::Locale icu_locale(locale.c_str());
466 const icu::Collator* collator = GetCollatorForLocale(locale);
476 icu::Locale country_locale(NULL, country_code.c_str());
487 locales_to_localized_names_.insert(std::make_pair(locale, localized_names));
492 const std::string& locale) {
493 AddLocalizedNamesForLocale(locale);
495 icu::Collator* collator = GetCollatorForLocale(locale);
508 locales_to_localized_names_[locale];
518 icu::Collator* CountryNames::GetCollatorForLocale(const std::string& locale) {
519 if (!collators_.count(locale)) {
520 icu::Locale icu_locale(locale.c_str());
530 collators_.insert(std::make_pair(locale, collator));
533 return collators_[locale];
560 const icu::Locale& display_locale) {
561 icu::Locale country_locale(NULL, country_code.c_str());
572 const std::string& locale) {
578 name_ = GetDisplayName(country_code, icu::Locale(locale.c_str()));
600 const std::string& locale) {
601 // Add likely subtags to the locale. In particular, add any likely country
605 uloc_addLikelySubtags(locale.c_str(),
611 std::string country_code = icu::Locale(likely_locale.c_str()).getCountry();
623 const std::string& locale) {
624 return CountryNames::GetInstance()->GetCountryCode(country, locale);