chromium/third_party/libaddressinput/src/cpp/src/region_data_constants.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.

// AUTOMATICALLY GENERATED FILE - DO NOT EDIT

#include "region_data_constants.h"

#include <libaddressinput/address_field.h>

#include <algorithm>
#include <cassert>
#include <cstddef>
#include <map>
#include <string>
#include <vector>

#include "address_field_util.h"
#include "format_element.h"
#include "lookup_key.h"
#include "util/size.h"

namespace i18n {
namespace addressinput {
namespace {

struct RegionData {};

const RegionData kRegionData[] =;

}  // namespace

// static
const std::string& RegionDataConstants::GetDefaultRegionData() {}

namespace {

// Binary search over kRegionData[i].region_code values. If a match is found,
// returns true and sets |position_out| to the position of |region_code| in
// kRegionData. If a match is not found, returns false.
bool FindPositionOfRegionCode(const std::string& region_code,
                              size_t* position_out) {}

std::vector<std::string> InitRegionCodes() {}

const std::map<std::string, size_t> InitMaxLookupKeyDepth() {}

}  // namespace

// static
bool RegionDataConstants::IsSupported(const std::string& region_code) {}

// static
const std::vector<std::string>& RegionDataConstants::GetRegionCodes() {}

// static
std::string RegionDataConstants::GetRegionData(
    const std::string& region_code) {}

// static
size_t RegionDataConstants::GetMaxLookupKeyDepth(
    const std::string& region_code) {}

}  // namespace addressinput
}  // namespace i18n