#include "components/autofill/core/browser/geo/country_names_for_locale.h"
#include <map>
#include <string>
#include <utility>
#include "base/check_op.h"
#include "components/autofill/core/browser/geo/country_data.h"
#include "components/autofill/core/common/autofill_l10n_util.h"
#include "third_party/icu/source/common/unicode/locid.h"
#include "ui/base/l10n/l10n_util.h"
namespace autofill {
namespace {
const std::string GetSortKey(const icu::Collator& collator,
const std::u16string& str,
std::unique_ptr<uint8_t[]>* buffer,
int32_t* buffer_size) { … }
std::unique_ptr<icu::Collator> CreateCollator(const icu::Locale& locale) { … }
std::map<std::string, std::string> GetLocalizedNames(
const std::string& locale,
const icu::Collator* collator) { … }
}
CountryNamesForLocale::CountryNamesForLocale(const std::string& locale_name)
: … { … }
CountryNamesForLocale::~CountryNamesForLocale() = default;
CountryNamesForLocale::CountryNamesForLocale(CountryNamesForLocale&& source)
: … { … }
const std::string CountryNamesForLocale::GetCountryCode(
const std::u16string& country_name) const { … }
}