Lines Matching refs:country_code
34 std::string country_code;
297 static const Iterator Find(const std::string& country_code);
317 country_data_.insert(std::make_pair(data.country_code, data));
325 std::string country_code = *country_pointer;
326 if (!country_data_.count(country_code)) {
328 country_code,
332 country_data_.insert(std::make_pair(country_code, data));
346 const std::string& country_code) {
347 return GetInstance()->country_data_.find(country_code);
418 const std::string& country_code = it->first;
420 icu::Locale(NULL, country_code.c_str()).getISO3Country();
422 common_names_.insert(std::make_pair(country_code, country_code));
423 common_names_.insert(std::make_pair(iso3_country_code, country_code));
449 std::string country_code = GetCountryCodeForLocalizedName(country, locale);
450 if (!country_code.empty())
451 return country_code;
474 const std::string& country_code = it->first;
476 icu::Locale country_locale(NULL, country_code.c_str());
484 localized_names.insert(std::make_pair(sort_key, country_code));
557 // Returns the country name corresponding to |country_code|, localized to the
559 string16 GetDisplayName(const std::string& country_code,
561 icu::Locale country_locale(NULL, country_code.c_str());
571 AutofillCountry::AutofillCountry(const std::string& country_code,
573 const CountryDataMap::Iterator result = CountryDataMap::Find(country_code);
577 country_code_ = country_code;
578 name_ = GetDisplayName(country_code, icu::Locale(locale.c_str()));
611 std::string country_code = icu::Locale(likely_locale.c_str()).getCountry();
615 if (CountryDataMap::Find(country_code) == CountryDataMap::End())
618 return country_code;
636 AutofillCountry::AutofillCountry(const std::string& country_code,
640 : country_code_(country_code),