chromium/third_party/libaddressinput/src/cpp/src/address_formatter.cc

// Copyright (C) 2014 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#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] =;

// This data is based on CLDR, for languages that are in official use in some
// country, where Arabic is the most likely script tag.
// TODO: Consider supporting variants such as tr-Arab by detecting the script
// code.
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) {}

}  // namespace

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) {}

}  // namespace addressinput
}  // namespace i18n