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

// Copyright (C) 2013 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_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) {}

}  // namespace

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

}  // namespace addressinput
}  // namespace i18n