#include "components/autofill/core/browser/geo/alternative_state_name_map.h"
#include "base/no_destructor.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
namespace autofill {
namespace {
constexpr int kMaxMapSize = …;
constexpr char16_t kCharsToStrip[] = …;
}
AlternativeStateNameMap* AlternativeStateNameMap::GetInstance() { … }
AlternativeStateNameMap::StateName AlternativeStateNameMap::NormalizeStateName(
const StateName& text) { … }
std::optional<AlternativeStateNameMap::CanonicalStateName>
AlternativeStateNameMap::GetCanonicalStateName(
const std::string& country_code,
const std::u16string& state_name) { … }
AlternativeStateNameMap::AlternativeStateNameMap() = default;
std::optional<AlternativeStateNameMap::CanonicalStateName>
AlternativeStateNameMap::GetCanonicalStateName(
const CountryCode& country_code,
const StateName& state_name,
bool is_state_name_normalized) const { … }
std::optional<StateEntry> AlternativeStateNameMap::GetEntry(
const CountryCode& country_code,
const StateName& state_string_from_profile) const { … }
void AlternativeStateNameMap::AddEntry(
const CountryCode& country_code,
const StateName& normalized_state_value_from_profile,
const StateEntry& state_entry,
const std::vector<StateName>& normalized_alternative_state_names,
const CanonicalStateName& normalized_canonical_state_name) { … }
bool AlternativeStateNameMap::IsLocalisedStateNamesMapEmpty() const { … }
void AlternativeStateNameMap::ClearAlternativeStateNameMap() { … }
}