#include "lookup_key.h"
#include <libaddressinput/address_data.h>
#include <libaddressinput/address_field.h>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <functional>
#include <string>
#include "language.h"
#include "region_data_constants.h"
#include "rule.h"
#include "util/cctype_tolower_equal.h"
#include "util/size.h"
namespace i18n {
namespace addressinput {
namespace {
const char kSlashDelim[] = …;
const char kDashDelim[] = …;
const char kData[] = …;
const char kUnknown[] = …;
bool ShouldSetLanguageForKey(const std::string& language_tag,
const std::string& region_code) { … }
}
const AddressField LookupKey::kHierarchy[] = …;
LookupKey::LookupKey() = default;
LookupKey::~LookupKey() = default;
void LookupKey::FromAddress(const AddressData& address) { … }
void LookupKey::FromLookupKey(const LookupKey& parent,
const std::string& child_node) { … }
std::string LookupKey::ToKeyString(size_t max_depth) const { … }
const std::string& LookupKey::GetRegionCode() const { … }
size_t LookupKey::GetDepth() const { … }
}
}