#include <libaddressinput/address_ui.h>
#include <libaddressinput/address_field.h>
#include <libaddressinput/address_ui_component.h>
#include <libaddressinput/localization.h>
#include <cassert>
#include <cstddef>
#include <set>
#include <string>
#include <vector>
#include "format_element.h"
#include "grit.h"
#include "language.h"
#include "messages.h"
#include "region_data_constants.h"
#include "rule.h"
namespace i18n {
namespace addressinput {
namespace {
std::string GetLabelForField(const Localization& localization,
AddressField field,
int admin_area_name_message_id,
int postal_code_name_message_id,
int locality_name_message_id,
int sublocality_name_message_id) { … }
std::vector<AddressUiComponent> BuildComponents(
const std::string& region_code, const Localization& localization,
const std::string& ui_language_tag, bool include_literals,
std::string* best_address_language_tag) { … }
}
const std::vector<std::string>& GetRegionCodes() { … }
std::vector<AddressUiComponent> BuildComponents(
const std::string& region_code, const Localization& localization,
const std::string& ui_language_tag,
std::string* best_address_language_tag) { … }
std::vector<AddressUiComponent> BuildComponentsWithLiterals(
const std::string& region_code, const Localization& localization,
const std::string& ui_language_tag,
std::string* best_address_language_tag) { … }
}
}