#include "components/autofill/core/browser/geo/autofill_country.h"
#include <stddef.h>
#include <array>
#include "base/containers/contains.h"
#include "base/containers/fixed_flat_map.h"
#include "base/containers/fixed_flat_set.h"
#include "base/feature_list.h"
#include "base/strings/string_util.h"
#include "components/autofill/core/browser/geo/address_i18n.h"
#include "components/autofill/core/browser/geo/country_data.h"
#include "components/autofill/core/browser/geo/country_names.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/autofill_internals/log_message.h"
#include "components/autofill/core/common/logging/log_buffer.h"
#include "components/strings/grit/components_strings.h"
#include "third_party/icu/source/common/unicode/locid.h"
#include "third_party/libaddressinput/messages.h"
#include "third_party/libaddressinput/src/cpp/include/libaddressinput/address_metadata.h"
#include "ui/base/l10n/l10n_util.h"
namespace autofill {
namespace {
constexpr size_t kLocaleCapacity = …;
constexpr auto kRequiredFieldMapping = …;
}
AutofillCountry::AutofillCountry(const std::string& country_code,
const std::optional<std::string>& locale) { … }
AutofillCountry::~AutofillCountry() = default;
const std::string AutofillCountry::CountryCodeForLocale(
const std::string& locale) { … }
AutofillCountry::AutofillCountry(const std::string& country_code,
const std::u16string& name,
const std::u16string& postal_code_label,
const std::u16string& state_label)
: … { … }
LogBuffer& operator<<(LogBuffer& buffer, const AutofillCountry& country) { … }
base::span<const AutofillCountry::AddressFormatExtension>
AutofillCountry::address_format_extensions() const { … }
bool AutofillCountry::IsAddressFieldSettingAccessible(
FieldType field_type) const { … }
bool AutofillCountry::IsAddressFieldRequired(FieldType field_type) const { … }
}