#include "components/autofill/core/browser/geo/country_data.h"
#include <array>
#include <utility>
#include "base/memory/singleton.h"
#include "components/strings/grit/components_strings.h"
#include "third_party/icu/source/common/unicode/locid.h"
namespace autofill {
namespace {
struct StaticCountryAddressImportRequirementsData { … };
struct StaticCountryCodeAliasData { … };
constexpr auto kCountryCodeAliases = …;
constexpr auto kCountryAddressImportRequirementsData = …;
std::vector<std::string> GetCountryCodes() { … }
std::map<std::string, RequiredFieldsForAddressImport> GetCountryDataMap() { … }
std::map<std::string, std::string> GetCountryCodeAliasMap() { … }
}
CountryDataMap* CountryDataMap::GetInstance() { … }
CountryDataMap::CountryDataMap()
: … { … }
CountryDataMap::~CountryDataMap() = default;
bool CountryDataMap::HasRequiredFieldsForAddressImport(
const std::string& country_code) const { … }
RequiredFieldsForAddressImport
CountryDataMap::GetRequiredFieldsForAddressImport(
const std::string& country_code) const { … }
bool CountryDataMap::HasCountryCodeAlias(
const std::string& country_code_alias) const { … }
const std::string CountryDataMap::GetCountryCodeForAlias(
const std::string& country_code_alias) const { … }
}