153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Copyright (C) 2012 The Libphonenumber Authors
253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com//
353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Licensed under the Apache License, Version 2.0 (the "License");
453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// you may not use this file except in compliance with the License.
553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// You may obtain a copy of the License at
653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com//
753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// http://www.apache.org/licenses/LICENSE-2.0
853e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com//
953e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Unless required by applicable law or agreed to in writing, software
1053e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// distributed under the License is distributed on an "AS IS" BASIS,
1153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// See the License for the specific language governing permissions and
1353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// limitations under the License.
1453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com//
1553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// This file is generated automatically, do not edit it manually.
1653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
1753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com#ifndef I18N_PHONENUMBERS_GEOCODING_DATA
1853e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com#define I18N_PHONENUMBERS_GEOCODING_DATA
1953e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
20af4a2ce290b619b39c2cb2a682ea4d7746d3fb21philip.liard@gmail.com#include "phonenumbers/base/basictypes.h"
2153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
2253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comnamespace i18n {
2353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comnamespace phonenumbers {
2453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
2553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comstruct CountryLanguages {
2653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // Sorted array of language codes.
2753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  const char** available_languages;
2853e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
2953e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // Number of elements in available_languages.
3053e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  const int available_languages_size;
3153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com};
3253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
3353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comstruct PrefixDescriptions {
3453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // Sorted array of phone number prefixes.
3553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  const int32* prefixes;
3653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
3753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // Number of elements in prefixes.
3853e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  const int prefixes_size;
3953e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
4053e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // Array of phone number prefix descriptions, mapped one to one
4153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // to prefixes.
4253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  const char** descriptions;
4353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
4453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // Sorted array of unique prefix lengths in base 10.
4553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  const int32* possible_lengths;
4653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
4753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  // Number of elements in possible_lengths.
4853e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com  const int possible_lengths_size;
4953e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com};
5053e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
5153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Returns a sorted array of country calling codes.
5253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comconst int* get_country_calling_codes();
5353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
5453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Returns the number of country calling codes in
5553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// get_country_calling_codes() array.
5653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comint get_country_calling_codes_size();
5753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
5853e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Returns the CountryLanguages record for country at index, index
5953e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// being in [0, get_country_calling_codes_size()).
6053e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comconst CountryLanguages* get_country_languages(int index);
6153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
6253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Returns a sorted array of prefix language code pairs like
6353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// "1_de" or "82_ko".
6453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comconst char** get_prefix_language_code_pairs();
6553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
6653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Returns the number of elements in
6753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// get_prefix_language_code_pairs()
6853e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comint get_prefix_language_code_pairs_size();
6953e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
7053e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// Returns the PrefixDescriptions for language/code pair at index,
7153e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com// index being in [0, get_prefix_language_code_pairs_size()).
7253e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.comconst PrefixDescriptions* get_prefix_descriptions(int index);
7353e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
7453e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com}  // namespace phonenumbers
7553e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com}  // namespace i18n
7653e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com
7753e7036f57652f13e0b69e50dbaa1c80a7b6bd5bphilip.liard@gmail.com#endif  // I18N_PHONENUMBERS_GEOCODING_DATA
78