3 * Copyright (C) 2010 The Libphonenumber Authors
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
19 * @fileoverview Generated metadata for file
20 * ../resources/PhoneNumberMetadataForTesting.xml
21 * @author Nikolaos Trogkanis
24 goog.provide('i18n.phonenumbers.metadata');
27 * A mapping from a country calling code to the region codes which denote the
28 * region represented by that country calling code. In the case of multiple
29 * countries sharing a calling code, such as the NANPA regions, the one
30 * indicated with "isMainCountryForCode" in the metadata should be first.
31 * @type {Object.<number, Array.<string>>}
33 i18n.phonenumbers.metadata.countryCodeToRegionCodeMap = {
58 * A mapping from a region code to the PhoneMetadata for that region.
59 * @type {Object.<string, Array>}
61 i18n.phonenumbers.metadata.countryToMetadata = {
70 ,"AD",376,"00",,,,,,,1,,,[,,"NA","NA"]
75 ,"AE":[,[,,"[1-9]\\d{8}","\\d{9}"]
76 ,[,,"[1-9]\\d{8}","\\d{9}"]
77 ,[,,"[1-9]\\d{8}","\\d{9}"]
83 ,"AE",971,"00",,,,,,,1,,,[,,"NA","NA"]
85 ,[,,"600\\d{6}","\\d{9}",,,"600123456"]
88 ,"AO":[,[,,"[29]\\d{8}","\\d{9}"]
89 ,[,,"2\\d(?:[26-9]\\d|\\d[26-9])\\d{5}","\\d{9}",,,"222123456"]
90 ,[,,"9[1-3]\\d{7}","\\d{9}",,,"923123456"]
96 ,"AO",244,"00","0~0",,,"0~0",,,,[[,"(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3",,"","",0]
103 ,"AR":[,[,,"[1-3689]\\d{9,10}","\\d{6,11}"]
104 ,[,,"[1-3]\\d{9}","\\d{6,10}"]
105 ,[,,"9\\d{10}|[1-3]\\d{9}","\\d{10,11}"]
106 ,[,,"80\\d{8}","\\d{10}"]
107 ,[,,"6(0\\d|10)\\d{7}","\\d{10}"]
111 ,"AR",54,"00","0",,,"0(?:(11|343|3715)15)?","9$1",,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["11"]
113 ,[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["1[02-9]|[23]"]
115 ,[,"(9)(11)(\\d{4})(\\d{4})","$2 15 $3-$4",["911"]
117 ,[,"(9)(\\d{4})(\\d{2})(\\d{4})","$2 $3-$4",["9(?:1[02-9]|[23])"]
119 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]"]
122 ,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2-$3",["11","11"]
124 ,[,"(\\d{4})(\\d{2})(\\d{4})","$1 $2-$3",["1[02-9]|[23]","1[02-9]|[23]"]
126 ,[,"(9)(11)(\\d{4})(\\d{4})","$1 $2 $3 $4",["911"]
128 ,[,"(9)(\\d{4})(\\d{2})(\\d{4})","$1 $2 $3 $4",["9(?:1[02-9]|[23])"]
130 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["[68]","[68]"]
138 ,"AU":[,[,,"[1-578]\\d{4,14}","\\d{5,15}"]
139 ,[,,"[2378]\\d{8}","\\d{9}"]
140 ,[,,"4\\d{8}","\\d{9}"]
141 ,[,,"1800\\d{6}","\\d{10}"]
142 ,[,,"190[0126]\\d{6}","\\d{10}"]
146 ,"AU",61,"001[12]","0",,,"0",,"0011",,[[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["1"]
148 ,[,"(\\d{1})(\\d{4})(\\d{4})","$1 $2 $3",["[2-478]"]
164 ,"BR",55,"",,,,,,,1,,,[,,"NA","NA"]
169 ,"BS":[,[,,"(242|8(00|66|77|88)|900)\\d{7}","\\d{7,10}"]
170 ,[,,"242(?:3(?:02|[236][1-9]|4[0-24-9]|5[0-68]|7[3-57]|9[2-5])|4(?:2[237]|51|64|77)|502|636|702)\\d{4}","\\d{7,10}"]
171 ,[,,"242(357|359|457|557)\\d{4}","\\d{10}"]
172 ,[,,"8(00|66|77|88)\\d{7}","\\d{10}"]
173 ,[,,"900\\d{7}","\\d{10}"]
177 ,"BS",1,"011","1",,,"1",,,,,,[,,"NA","NA"]
182 ,"BY":[,[,,"[1-9]\\d{5}","\\d{6}"]
183 ,[,,"[1-9]\\d{5}","\\d{6}",,,"112345"]
184 ,[,,"[1-9]\\d{5}","\\d{6}"]
190 ,"BY",375,"810","8",,,"80?|99999",,,1,[[,"(\\d{4})","$1",["[1-8]"]
192 ,[,"(\\d{2})(\\d{3})","$1 $2",["[1-8]"]
194 ,[,"(\\d{3})(\\d{3})","$1 $2",["[1-8]"]
210 ,"FR",33,"",,,,,,,1,,,[,,"NA","NA"]
215 ,"DE":[,[,,"\\d{4,14}","\\d{2,14}"]
216 ,[,,"(?:[24-6]\\d{2}|3[03-9]\\d|[789](?:[1-9]\\d|0[2-9]))\\d{1,8}","\\d{2,14}",,,"30123456"]
217 ,[,,"1(5\\d{9}|7\\d{8}|6[02]\\d{8}|63\\d{7})","\\d{10,11}"]
218 ,[,,"800\\d{7}","\\d{10}"]
219 ,[,,"900([135]\\d{6}|9\\d{7})","\\d{10,11}"]
223 ,"DE",49,"00","0",,,"0",,,,[[,"(\\d{3})(\\d{3,8})","$1 $2",["2|3[3-9]|906|[4-9][1-9]1"]
225 ,[,"(\\d{2})(\\d{4,11})","$1/$2",["[34]0|[68]9"]
227 ,[,"([4-9]\\d)(\\d{2})","$1 $2",["[4-9]","[4-6]|[7-9](?:\\d[1-9]|[1-9]\\d)"]
229 ,[,"([4-9]\\d{3})(\\d{2,7})","$1 $2",["[4-9]","[4-6]|[7-9](?:\\d[1-9]|[1-9]\\d)"]
231 ,[,"(\\d{3})(\\d{1})(\\d{6})","$1 $2 $3",["800"]
233 ,[,"(\\d{3})(\\d{3,4})(\\d{4})","$1 $2 $3",["900"]
241 ,"GB":[,[,,"\\d{10}","\\d{6,10}"]
242 ,[,,"[1-6]\\d{9}","\\d{6,10}"]
243 ,[,,"7[1-57-9]\\d{8}","\\d{10}"]
244 ,[,,"80\\d{8}","\\d{10}"]
245 ,[,,"9[018]\\d{8}","\\d{10}"]
246 ,[,,"8(?:4[3-5]|7[0-2])\\d{7}","\\d{10}"]
247 ,[,,"70\\d{8}","\\d{10}"]
248 ,[,,"56\\d{8}","\\d{10}"]
249 ,"GB",44,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[1-59]|[78]0"]
251 ,[,"(\\d)(\\d{3})(\\d{3})(\\d{3})","$1 $2 $3 $4",["6"]
253 ,[,"(\\d{4})(\\d{3})(\\d{3})","$1 $2 $3",["7[1-57-9]"]
255 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["8[47]"]
271 ,"GG",44,"",,,,,,,1,,,[,,"NA","NA"]
276 ,"IT":[,[,,"[0389]\\d{5,10}","\\d{6,11}"]
277 ,[,,"0\\d{9,10}","\\d{10,11}"]
278 ,[,,"3\\d{8,9}","\\d{9,10}"]
279 ,[,,"80(?:0\\d{6}|3\\d{3})","\\d{6,9}"]
280 ,[,,"89(?:2\\d{3}|9\\d{6})","\\d{6,9}"]
284 ,"IT",39,"00",,,,,,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["0[26]"]
286 ,[,"(\\d{3})(\\d{4})(\\d{3,4})","$1 $2 $3",["0[13-57-9]"]
288 ,[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["3"]
290 ,[,"(\\d{3})(\\d{3,6})","$1 $2",["8"]
298 ,"JP":[,[,,"07\\d{5}|[1-357-9]\\d{3,10}","\\d{4,11}"]
299 ,[,,"07\\d{5}|[1-357-9]\\d{3,10}","\\d{4,11}"]
300 ,[,,"07\\d{5}|[1-357-9]\\d{3,10}","\\d{4,11}"]
301 ,[,,"0777[01]\\d{2}","\\d{7}",,,"0777012"]
306 ,"JP",81,"010","0",,,"0",,,1,[[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["[57-9]0"]
308 ,[,"(\\d{2})(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3 $4",["[57-9]0"]
310 ,[,"(\\d{2})(\\d{3})(\\d{4})","$1 $2 $3",["111|222|333","(?:111|222|333)1","(?:111|222|333)11"]
312 ,[,"(\\d{4})(\\d)(\\d{4})","$1 $2 $3",["222|333","2221|3332","22212|3332","222120|3332"]
314 ,[,"(\\d{3})(\\d{2})(\\d{4})","$1 $2 $3",["[23]"]
316 ,[,"(\\d{3})(\\d{4})","$1-$2",["077"]
318 ,[,"(\\d{4})","*$1",["[23]"]
322 ,,,[,,"[23]\\d{3}","\\d{4}"]
326 ,"KR":[,[,,"[1-7]\\d{3,9}|8\\d{8}","\\d{4,10}"]
327 ,[,,"(?:2|[34][1-3]|5[1-5]|6[1-4])(?:1\\d{2,3}|[2-9]\\d{6,7})","\\d{4,10}",,,"22123456"]
328 ,[,,"1[0-25-9]\\d{7,8}","\\d{9,10}",,,"1023456789"]
329 ,[,,"80\\d{7}","\\d{9}",,,"801234567"]
330 ,[,,"60[2-9]\\d{6}","\\d{9}",,,"602345678"]
332 ,[,,"50\\d{8}","\\d{10}",,,"5012345678"]
333 ,[,,"70\\d{8}","\\d{10}",,,"7012345678"]
334 ,"KR",82,"00(?:[124-68]|[37]\\d{2})","0",,,"0(8[1-46-8]|85\\d{2})?",,,,[[,"(\\d{2})(\\d{4})(\\d{4})","$1-$2-$3",["1(?:0|1[19]|[69]9|5[458])|[57]0","1(?:0|1[19]|[69]9|5(?:44|59|8))|[57]0"]
336 ,[,"(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3",["1(?:[169][2-8]|[78]|5[1-4])|[68]0|[3-6][1-9][2-9]","1(?:[169][2-8]|[78]|5(?:[1-3]|4[56]))|[68]0|[3-6][1-9][2-9]"]
338 ,[,"(\\d{3})(\\d)(\\d{4})","$1-$2-$3",["131","1312"]
340 ,[,"(\\d{3})(\\d{2})(\\d{4})","$1-$2-$3",["131","131[13-9]"]
342 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1-$2-$3",["13[2-9]"]
344 ,[,"(\\d{2})(\\d{2})(\\d{3})(\\d{4})","$1-$2-$3-$4",["30"]
346 ,[,"(\\d)(\\d{4})(\\d{4})","$1-$2-$3",["2(?:[26]|3[0-467])","2(?:[26]|3(?:01|1[45]|2[17-9]|39|4|6[67]|7[078]))"]
348 ,[,"(\\d)(\\d{3})(\\d{4})","$1-$2-$3",["2(?:3[0-35-9]|[457-9])","2(?:3(?:0[02-9]|1[0-36-9]|2[02-6]|3[0-8]|6[0-589]|7[1-69]|[589])|[457-9])"]
350 ,[,"(\\d)(\\d{3})","$1-$2",["21[0-46-9]","21(?:[0-247-9]|3[124]|6[1269])"]
352 ,[,"(\\d)(\\d{4})","$1-$2",["21[36]","21(?:3[035-9]|6[03-578])"]
354 ,[,"(\\d{2})(\\d{3})","$1-$2",["[3-6][1-9]1","[3-6][1-9]1(?:[0-46-9])","[3-6][1-9]1(?:[0-247-9]|3[124]|6[1269])"]
356 ,[,"(\\d{2})(\\d{4})","$1-$2",["[3-6][1-9]1","[3-6][1-9]1[36]","[3-6][1-9]1(?:3[035-9]|6[03-578])"]
364 ,"MX":[,[,,"[1-9]\\d{9,10}","\\d{7,11}"]
365 ,[,,"[2-9]\\d{9}","\\d{7,10}"]
366 ,[,,"1\\d{10}","\\d{11}"]
367 ,[,,"800\\d{7}","\\d{10}"]
368 ,[,,"900\\d{7}","\\d{10}"]
372 ,"MX",52,"00","01",,,"01|04[45](\\d{10})","1$1",,,[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]00"]
374 ,[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|55|81"]
376 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2467]|3[0-24-9]|5[0-46-9]|8[2-9]|9[1-9]"]
378 ,[,"(1)(\\d{2})(\\d{4})(\\d{4})","045 $2 $3 $4",["1(?:33|55|81)"]
380 ,[,"(1)(\\d{3})(\\d{3})(\\d{4})","045 $2 $3 $4",["1(?:[124579]|3[0-24-9]|5[0-46-9]|8[02-9])"]
383 ,[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[89]00","[89]00"]
385 ,[,"(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3",["33|55|81","33|55|81"]
387 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["[2467]|3[0-24-9]|5[0-46-9]|8[2-9]|9[1-9]","[2467]|3[0-24-9]|5[0-46-9]|8[2-9]|9[1-9]"]
389 ,[,"(1)(\\d{2})(\\d{4})(\\d{4})","$1 $2 $3 $4",["1(?:33|55|81)"]
391 ,[,"(1)(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3 $4",["1(?:[124579]|3[0-24-9]|5[0-46-9]|8[02-9])"]
399 ,"NZ":[,[,,"[289]\\d{7,9}|[3-7]\\d{7}","\\d{7,10}"]
400 ,[,,"24099\\d{3}|(?:3[2-79]|[479][2-689]|6[235-9])\\d{6}","\\d{7,8}"]
401 ,[,,"2(?:[027]\\d{7}|9\\d{6,7}|1(?:0\\d{5,7}|[12]\\d{5,6}|[3-9]\\d{5})|4[1-9]\\d{6}|8\\d{7,8})","\\d{8,10}"]
402 ,[,,"800\\d{6,7}","\\d{9,10}"]
403 ,[,,"900\\d{6,7}","\\d{9,10}"]
407 ,"NZ",64,"00","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{4})","$1-$2 $3",["24|[34679]"]
409 ,[,"(\\d)(\\d{3})(\\d{3,5})","$1-$2 $3",["2[179]"]
411 ,[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["[89]"]
419 ,"PL":[,[,,"[1-9]\\d{8}","\\d{9}"]
420 ,[,,"[1-9]\\d{8}","\\d{9}"]
421 ,[,,"(?:5[01]|6[069]|7[289]|88)\\d{7}","\\d{9}"]
422 ,[,,"800\\d{6}","\\d{9}"]
423 ,[,,"70\\d{7}","\\d{9}"]
427 ,"PL",48,"00","0",,,"0",,,,[[,"(\\d{2})(\\d{3})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]
434 ,"RE":[,[,,"[268]\\d{8}","\\d{9}"]
435 ,[,,"262\\d{6}","\\d{9}",,,"262161234"]
436 ,[,,"6(?:9[23]|47)\\d{6}","\\d{9}",,,"692123456"]
437 ,[,,"80\\d{7}","\\d{9}",,,"801234567"]
438 ,[,,"8(?:1[01]|2[0156]|84|9[0-37-9])\\d{6}","\\d{9}",,,"810123456"]
442 ,"RE",262,"00","0",,,"0",,,,[[,"([268]\\d{2})(\\d{2})(\\d{2})(\\d{2})","$1 $2 $3 $4",,"0$1","",0]
445 ,,"262|6(?:9[23]|47)|8",[,,"NA","NA"]
449 ,"SG":[,[,,"[13689]\\d{7,10}","\\d{8}|\\d{10,11}"]
450 ,[,,"[36]\\d{7}","\\d{8}"]
451 ,[,,"[89]\\d{7}","\\d{8}"]
452 ,[,,"1?800\\d{7}","\\d{10,11}"]
453 ,[,,"1900\\d{7}","\\d{11}"]
457 ,"SG",65,"0[0-3][0-9]",,,,"777777",,,,[[,"(\\d{4})(\\d{4})","$1 $2",["[369]|8[1-9]"]
459 ,[,"(\\d{4})(\\d{3})(\\d{4})","$1 $2 $3",["1[89]"]
461 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",["800"]
469 ,"US":[,[,,"[13-689]\\d{9}|2[0-35-9]\\d{8}","\\d{7}(?:\\d{3})?",,,"1234567890"]
470 ,[,,"[13-689]\\d{9}|2[0-35-9]\\d{8}","\\d{7}(?:\\d{3})?",,,"1234567890"]
471 ,[,,"[13-689]\\d{9}|2[0-35-9]\\d{8}","\\d{7}(?:\\d{3})?",,,"1234567890"]
472 ,[,,"8(?:00|66|77|88)\\d{7}","\\d{10}",,,"1234567890"]
473 ,[,,"900\\d{7}","\\d{10}",,,"1234567890"]
477 ,"US",1,"011","1"," extn. ",,"1",,,1,[[,"(\\d{3})(\\d{4})","$1 $2",,"","",1]
478 ,[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",,"","",1]
480 ,[[,"(\\d{3})(\\d{3})(\\d{4})","$1 $2 $3",,"","",1]
483 ,1,,[,,"800\\d{7}","\\d{10}",,,"1234567890"]
487 ,"YT":[,[,,"[268]\\d{8}","\\d{9}"]
488 ,[,,"2696[0-4]\\d{4}","\\d{9}",,,"269601234"]
489 ,[,,"639\\d{6}","\\d{9}",,,"639123456"]
490 ,[,,"80\\d{7}","\\d{9}",,,"801234567"]
495 ,"YT",262,"00","0",,,"0",,,,,,[,,"NA","NA"]
496 ,,"269|639",[,,"NA","NA"]
500 ,"800":[,[,,"\\d{8}","\\d{8}",,,"12345678"]
501 ,[,,"NA","NA",,,"12345678"]
502 ,[,,"NA","NA",,,"12345678"]
503 ,[,,"\\d{8}","\\d{8}",,,"12345678"]
508 ,"001",800,"",,,,,,,1,[[,"(\\d{4})(\\d{4})","$1 $2",,"","",0]
515 ,"979":[,[,,"\\d{9}","\\d{9}",,,"123456789"]
516 ,[,,"NA","NA",,,"123456789"]
517 ,[,,"NA","NA",,,"123456789"]
519 ,[,,"\\d{9}","\\d{9}",,,"123456789"]
523 ,"001",979,"",,,,,,,1,[[,"(\\d)(\\d{4})(\\d{4})","$1 $2 $3",,"","",0]