Lines Matching defs:country

39 // The maximum capacity needed to store a locale up to the country code.
43 // Maps country codes to localized label string identifiers.
288 // A singleton class that encapsulates a map from country codes to country data.
350 // A singleton class that encapsulates mappings from country names to their
351 // corresponding country codes.
356 // Returns the country code corresponding to |country|, which should be a
357 // country code or country name localized to |locale|.
358 const std::string GetCountryCode(const string16& country,
366 // Populates |locales_to_localized_names_| with the mapping of country names
367 // localized to |locale| to their corresponding country codes.
370 // Interprets |country_name| as a full country name localized to the given
371 // |locale| and returns the corresponding country code stored in
390 // Maps from common country names, including 2- and 3-letter country codes,
391 // to the corresponding 2-letter country codes. The keys are uppercase ASCII
396 // The inner maps map from localized country names to their corresponding
397 // country codes. The inner map keys are ICU collation sort keys corresponding
398 // to the target localized country name.
414 // Add 2- and 3-letter ISO country codes.
439 const std::string CountryNames::GetCountryCode(const string16& country,
441 // First, check common country names, including 2- and 3-letter country codes.
442 std::string country_utf8 = UTF16ToUTF8(StringToUpperASCII(country));
448 // Next, check country names localized to |locale|.
449 std::string country_code = GetCountryCodeForLocalizedName(country, locale);
453 // Finally, check country names localized to US English.
454 return GetCountryCodeForLocalizedName(country, "en_US");
557 // Returns the country name corresponding to |country_code|, localized to the
601 // Add likely subtags to the locale. In particular, add any likely country
610 // Extract the country code.
622 const std::string AutofillCountry::GetCountryCode(const string16& country,
624 return CountryNames::GetInstance()->GetCountryCode(country, locale);