• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2012 The Libphonenumber Authors
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // This file is generated automatically, do not edit it manually.
16 
17 #include "phonenumbers/geocoding/geocoding_test_data.h"
18 
19 #include "phonenumbers/base/basictypes.h"
20 
21 namespace i18n {
22 namespace phonenumbers {
23 namespace {
24 
25 const int32 prefix_1_de_prefixes[] = {
26   1201,
27   1650,
28 };
29 
30 const char* prefix_1_de_descriptions[] = {
31   "New Jersey",
32   "Kalifornien",
33 };
34 
35 const int32 prefix_1_de_possible_lengths[] = {
36   4,
37 };
38 
39 const PrefixDescriptions prefix_1_de = {
40   prefix_1_de_prefixes,
41   sizeof(prefix_1_de_prefixes)/sizeof(*prefix_1_de_prefixes),
42   prefix_1_de_descriptions,
43   prefix_1_de_possible_lengths,
44   sizeof(prefix_1_de_possible_lengths)/sizeof(*prefix_1_de_possible_lengths),
45 };
46 
47 const int32 prefix_1_en_prefixes[] = {
48   1201,
49   1212,
50   1650,
51   1989,
52   1212812,
53   1617423,
54   1650960,
55 };
56 
57 const char* prefix_1_en_descriptions[] = {
58   "NJ",
59   "NY",
60   "CA",
61   "MA",
62   "New York, NY",
63   "Boston, MA",
64   "Mountain View, CA",
65 };
66 
67 const int32 prefix_1_en_possible_lengths[] = {
68   4, 7,
69 };
70 
71 const PrefixDescriptions prefix_1_en = {
72   prefix_1_en_prefixes,
73   sizeof(prefix_1_en_prefixes)/sizeof(*prefix_1_en_prefixes),
74   prefix_1_en_descriptions,
75   prefix_1_en_possible_lengths,
76   sizeof(prefix_1_en_possible_lengths)/sizeof(*prefix_1_en_possible_lengths),
77 };
78 
79 const int32 prefix_54_en_prefixes[] = {
80   542214,
81 };
82 
83 const char* prefix_54_en_descriptions[] = {
84   "La Plata",
85 };
86 
87 const int32 prefix_54_en_possible_lengths[] = {
88   6,
89 };
90 
91 const PrefixDescriptions prefix_54_en = {
92   prefix_54_en_prefixes,
93   sizeof(prefix_54_en_prefixes)/sizeof(*prefix_54_en_prefixes),
94   prefix_54_en_descriptions,
95   prefix_54_en_possible_lengths,
96   sizeof(prefix_54_en_possible_lengths)/sizeof(*prefix_54_en_possible_lengths),
97 };
98 
99 const int32 prefix_82_en_prefixes[] = {
100   822,
101   8210,
102   8231,
103   8232,
104   8233,
105   8241,
106   8242,
107   8243,
108   8251,
109   8252,
110   8253,
111   8254,
112   8255,
113   8261,
114   8262,
115   8263,
116   8264,
117 };
118 
119 const char* prefix_82_en_descriptions[] = {
120   "Seoul",
121   "Mobile prefix, should not be geocoded.",
122   "Gyeonggi",
123   "Incheon",
124   "Gangwon",
125   "Chungnam",
126   "Daejeon",
127   "Chungbuk",
128   "Busan",
129   "Ulsan",
130   "Daegu",
131   "Gyeongbuk",
132   "Gyeongnam",
133   "Jeonnam",
134   "Gwangju",
135   "Jeonbuk",
136   "Jeju",
137 };
138 
139 const int32 prefix_82_en_possible_lengths[] = {
140   3, 4,
141 };
142 
143 const PrefixDescriptions prefix_82_en = {
144   prefix_82_en_prefixes,
145   sizeof(prefix_82_en_prefixes)/sizeof(*prefix_82_en_prefixes),
146   prefix_82_en_descriptions,
147   prefix_82_en_possible_lengths,
148   sizeof(prefix_82_en_possible_lengths)/sizeof(*prefix_82_en_possible_lengths),
149 };
150 
151 const int32 prefix_82_ko_prefixes[] = {
152   822,
153   8231,
154   8232,
155   8233,
156   8241,
157   8242,
158   8243,
159   8251,
160   8252,
161   8253,
162   8254,
163   8255,
164   8261,
165   8262,
166   8263,
167 };
168 
169 const char* prefix_82_ko_descriptions[] = {
170   "\xec""\x84""\x9c""\xec""\x9a""\xb8",
171   "\xea""\xb2""\xbd""\xea""\xb8""\xb0",
172   "\xec""\x9d""\xb8""\xec""\xb2""\x9c",
173   "\xea""\xb0""\x95""\xec""\x9b""\x90",
174   "\xec""\xb6""\xa9""\xeb""\x82""\xa8",
175   "\xeb""\x8c""\x80""\xec""\xa0""\x84",
176   "\xec""\xb6""\xa9""\xeb""\xb6""\x81",
177   "\xeb""\xb6""\x80""\xec""\x82""\xb0",
178   "\xec""\x9a""\xb8""\xec""\x82""\xb0",
179   "\xeb""\x8c""\x80""\xea""\xb5""\xac",
180   "\xea""\xb2""\xbd""\xeb""\xb6""\x81",
181   "\xea""\xb2""\xbd""\xeb""\x82""\xa8",
182   "\xec""\xa0""\x84""\xeb""\x82""\xa8",
183   "\xea""\xb4""\x91""\xec""\xa3""\xbc",
184   "\xec""\xa0""\x84""\xeb""\xb6""\x81",
185 };
186 
187 const int32 prefix_82_ko_possible_lengths[] = {
188   3, 4,
189 };
190 
191 const PrefixDescriptions prefix_82_ko = {
192   prefix_82_ko_prefixes,
193   sizeof(prefix_82_ko_prefixes)/sizeof(*prefix_82_ko_prefixes),
194   prefix_82_ko_descriptions,
195   prefix_82_ko_possible_lengths,
196   sizeof(prefix_82_ko_possible_lengths)/sizeof(*prefix_82_ko_possible_lengths),
197 };
198 
199 const char* prefix_language_code_pairs[] = {
200   "1_de",
201   "1_en",
202   "54_en",
203   "82_en",
204   "82_ko",
205 };
206 
207 const PrefixDescriptions* prefixes_descriptions[] = {
208   &prefix_1_de,
209   &prefix_1_en,
210   &prefix_54_en,
211   &prefix_82_en,
212   &prefix_82_ko,
213 };
214 
215 const char* country_1[] = {
216   "de",
217   "en",
218 };
219 
220 const CountryLanguages country_1_languages = {
221   country_1,
222   sizeof(country_1)/sizeof(*country_1),
223 };
224 
225 const char* country_54[] = {
226   "en",
227 };
228 
229 const CountryLanguages country_54_languages = {
230   country_54,
231   sizeof(country_54)/sizeof(*country_54),
232 };
233 
234 const char* country_82[] = {
235   "en",
236   "ko",
237 };
238 
239 const CountryLanguages country_82_languages = {
240   country_82,
241   sizeof(country_82)/sizeof(*country_82),
242 };
243 
244 
245 const CountryLanguages* countries_languages[] = {
246   &country_1_languages,
247   &country_54_languages,
248   &country_82_languages,
249 };
250 
251 const int country_calling_codes[] = {
252   1,
253   54,
254   82,
255 };
256 
257 }  // namespace
258 
get_test_country_calling_codes()259 const int* get_test_country_calling_codes() {
260   return country_calling_codes;
261 }
262 
get_test_country_calling_codes_size()263 int get_test_country_calling_codes_size() {
264   return sizeof(country_calling_codes)
265       /sizeof(*country_calling_codes);
266 }
267 
get_test_country_languages(int index)268 const CountryLanguages* get_test_country_languages(int index) {
269   return countries_languages[index];
270 }
271 
get_test_prefix_language_code_pairs()272 const char** get_test_prefix_language_code_pairs() {
273   return prefix_language_code_pairs;
274 }
275 
get_test_prefix_language_code_pairs_size()276 int get_test_prefix_language_code_pairs_size() {
277   return sizeof(prefix_language_code_pairs)
278       /sizeof(*prefix_language_code_pairs);
279 }
280 
get_test_prefix_descriptions(int index)281 const PrefixDescriptions* get_test_prefix_descriptions(int index) {
282   return prefixes_descriptions[index];
283 }
284 }  // namespace phonenumbers
285 }  // namespace i18n
286