#include <libaddressinput/address_formatter.h>
#include <libaddressinput/address_data.h>
#include <libaddressinput/address_field.h>
#include <algorithm>
#include <cassert>
#include <cstddef>
#include <functional>
#include <string>
#include <vector>
#include "format_element.h"
#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 kCommaSeparator[] = …;
const char kSpaceSeparator[] = …;
const char kArabicCommaSeparator[] = …;
const char kLanguagesThatUseSpace[][3] = …;
const char kLanguagesThatHaveNoSeparator[][3] = …;
const char kLanguagesThatUseAnArabicComma[][3] = …;
std::string GetLineSeparatorForLanguage(const std::string& language_tag) { … }
void CombineLinesForLanguage(const std::vector<std::string>& lines,
const std::string& language_tag,
std::string* line) { … }
}
void GetFormattedNationalAddress(
const AddressData& address_data, std::vector<std::string>* lines) { … }
void GetFormattedNationalAddressLine(
const AddressData& address_data, std::string* line) { … }
void GetStreetAddressLinesAsSingleLine(
const AddressData& address_data, std::string* line) { … }
}
}