Skip to content

Commit b83b60c

Browse files
committed
Generated Python files for metadata
1 parent 4f278a2 commit b83b60c

21 files changed

Lines changed: 109 additions & 37 deletions

python/phonenumbers/carrierdata/__init__.py

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,10 @@
336336
'180997':{'en': 'Orange'},
337337
'180998':{'en': 'Orange'},
338338
'180999':{'en': 'Tricom'},
339+
'1868285':{'en': 'Digicel'},
340+
'1868286':{'en': 'Digicel'},
341+
'1868287':{'en': 'Digicel'},
342+
'1868289':{'en': 'Digicel'},
339343
'186829':{'en': 'Digicel'},
340344
'18683':{'en': 'Digicel'},
341345
'18684':{'en': 'bmobile'},
@@ -413,6 +417,8 @@
413417
'212603':{'en': 'Inwi'},
414418
'212605':{'en': 'Inwi'},
415419
'212606':{'en': 'Inwi'},
420+
'212607':{'en': 'Inwi'},
421+
'212608':{'en': 'Inwi'},
416422
'212610':{'en': 'Maroc Telecom'},
417423
'212611':{'en': 'Maroc Telecom'},
418424
'212612':{'en': u('M\u00e9ditel')},
@@ -424,21 +430,29 @@
424430
'212618':{'en': 'Maroc Telecom'},
425431
'212619':{'en': u('M\u00e9ditel')},
426432
'212620':{'en': u('M\u00e9ditel')},
433+
'212621':{'en': u('M\u00e9ditel')},
427434
'212622':{'en': 'Maroc Telecom'},
428435
'212623':{'en': 'Maroc Telecom'},
429436
'212624':{'en': 'Maroc Telecom'},
437+
'212625':{'en': u('M\u00e9ditel')},
430438
'212626':{'en': 'Inwi'},
431439
'212627':{'en': 'Inwi'},
432440
'212628':{'en': 'Maroc Telecom'},
433441
'212629':{'en': 'Inwi'},
434442
'212630':{'en': 'Inwi'},
443+
'212631':{'en': u('M\u00e9ditel')},
444+
'212632':{'en': u('M\u00e9ditel')},
435445
'212633':{'en': 'Inwi'},
436446
'212634':{'en': 'Inwi'},
437447
'212635':{'en': 'Inwi'},
448+
'212636':{'en': 'Maroc Telecom'},
449+
'212637':{'en': 'Maroc Telecom'},
438450
'212638':{'en': 'Inwi'},
451+
'212639':{'en': 'Maroc Telecom'},
439452
'212640':{'en': 'Inwi'},
440453
'212641':{'en': 'Maroc Telecom'},
441454
'212642':{'en': 'Maroc Telecom'},
455+
'212643':{'en': 'Maroc Telecom'},
442456
'212644':{'en': u('M\u00e9ditel')},
443457
'212645':{'en': u('M\u00e9ditel')},
444458
'212646':{'en': 'Inwi'},
@@ -475,6 +489,10 @@
475489
'212677':{'en': 'Maroc Telecom'},
476490
'212678':{'en': 'Maroc Telecom'},
477491
'212679':{'en': u('M\u00e9ditel')},
492+
'212680':{'en': 'Inwi'},
493+
'212681':{'en': 'Inwi'},
494+
'212692':{'en': 'GlobalStar'},
495+
'212697':{'en': 'Maroc Telecom'},
478496
'212698':{'en': 'Inwi'},
479497
'212699':{'en': 'Inwi'},
480498
'21355':{'en': 'Nedjma'},
@@ -494,8 +512,11 @@
494512
'2207':{'en': 'Africell'},
495513
'2209':{'en': 'Gamcel'},
496514
'22170':{'en': 'Expresso'},
515+
'22172':{'en': 'HAYO'},
497516
'22176':{'en': 'Tigo'},
498517
'22177':{'en': 'Orange'},
518+
'22178':{'en': 'Orange'},
519+
'22179':{'en': 'ADIE'},
499520
'2222':{'en': 'Chinguitel'},
500521
'2223':{'en': 'Mattel'},
501522
'2224':{'en': 'Mauritel'},
@@ -523,6 +544,7 @@
523544
'22547':{'en': 'Orange'},
524545
'22548':{'en': 'Orange'},
525546
'22549':{'en': 'Orange'},
547+
'22554':{'en': 'MTN'},
526548
'22555':{'en': 'MTN'},
527549
'22556':{'en': 'MTN'},
528550
'22557':{'en': 'Orange'},
@@ -545,6 +567,7 @@
545567
'22664':{'en': 'Airtel'},
546568
'22665':{'en': 'Airtel'},
547569
'22666':{'en': 'Airtel'},
570+
'226670':{'en': 'Airtel'},
548571
'226680':{'en': 'Telecel Faso'},
549572
'226681':{'en': 'Telecel Faso'},
550573
'226682':{'en': 'Telecel Faso'},
@@ -870,6 +893,7 @@
870893
'2348885':{'en': 'Starcomms'},
871894
'2348886':{'en': 'Starcomms'},
872895
'2348887':{'en': 'Starcomms'},
896+
'2349091':{'en': 'Etisalat'},
873897
'234980':{'en': 'Starcomms'},
874898
'234987':{'en': 'Starcomms'},
875899
'2356':{'en': 'Airtel'},
@@ -1210,6 +1234,19 @@
12101234
'35567':{'en': 'Eagle Mobile'},
12111235
'35568':{'en': 'AMC'},
12121236
'35569':{'en': 'Vodafone'},
1237+
'3567210':{'en': 'GO Mobile'},
1238+
'35677':{'en': 'Melita Mobile'},
1239+
'35679':{'en': 'GO Mobile'},
1240+
'3569210':{'en': 'Vodafone'},
1241+
'3569211':{'en': 'Vodafone'},
1242+
'3569231':{'en': 'Vodafone'},
1243+
'3569696':{'en': 'YOM'},
1244+
'3569811':{'en': 'Redtouch Fone'},
1245+
'3569812':{'en': 'Redtouch Fone'},
1246+
'3569813':{'en': 'Redtouch Fone'},
1247+
'3569889':{'en': 'GO Mobile'},
1248+
'3569897':{'en': 'Vodafone'},
1249+
'35699':{'en': 'Vodafone'},
12131250
'357123':{'en': 'Cytamobile-Vodafone'},
12141251
'35795':{'en': 'PrimeTel'},
12151252
'35796':{'en': 'MTN'},
@@ -12722,7 +12759,14 @@
1272212759
'59771':{'en': 'Digicel'},
1272312760
'59772':{'en': 'Digicel'},
1272412761
'59773':{'en': 'Uniqa'},
12762+
'597740':{'en': 'Digicel'},
12763+
'597741':{'en': 'Digicel'},
12764+
'597742':{'en': 'Digicel'},
12765+
'597743':{'en': 'Digicel'},
12766+
'597744':{'en': 'Digicel'},
12767+
'597745':{'en': 'Digicel'},
1272512768
'59775':{'en': 'Telesur'},
12769+
'59777':{'en': 'Telesur'},
1272612770
'59781':{'en': 'Digicel'},
1272712771
'59782':{'en': 'Digicel'},
1272812772
'59783':{'en': 'Uniqa'},
@@ -14321,6 +14365,23 @@
1432114365
'67676':{'en': 'U-Call'},
1432214366
'67677':{'en': 'U-Call'},
1432314367
'67678':{'en': 'U-Call'},
14368+
'67774':{'en': 'Solomon Telekom'},
14369+
'67775':{'en': 'Solomon Telekom'},
14370+
'67776':{'en': 'Solomon Telekom'},
14371+
'67777':{'en': 'Solomon Telekom'},
14372+
'67778':{'en': 'Solomon Telekom'},
14373+
'677790':{'en': 'Solomon Telekom'},
14374+
'67784':{'en': 'BMobile'},
14375+
'67785':{'en': 'BMobile'},
14376+
'67786':{'en': 'BMobile'},
14377+
'67787':{'en': 'BMobile'},
14378+
'67788':{'en': 'BMobile'},
14379+
'67794':{'en': 'Smile'},
14380+
'67795':{'en': 'Smile'},
14381+
'67796':{'en': 'Smile'},
14382+
'67797':{'en': 'Smile'},
14383+
'67798':{'en': 'Smile'},
14384+
'67799':{'en': 'Smile'},
1432414385
'67853':{'en': 'Digicel'},
1432514386
'67854':{'en': 'Digicel'},
1432614387
'67855':{'en': 'Digicel'},

python/phonenumbers/data/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def _load_region(code):
4545
from .alt_format_43 import PHONE_ALT_FORMAT_43
4646
from .alt_format_44 import PHONE_ALT_FORMAT_44
4747
from .alt_format_49 import PHONE_ALT_FORMAT_49
48+
from .alt_format_505 import PHONE_ALT_FORMAT_505
4849
from .alt_format_55 import PHONE_ALT_FORMAT_55
4950
from .alt_format_58 import PHONE_ALT_FORMAT_58
5051
from .alt_format_595 import PHONE_ALT_FORMAT_595
@@ -53,6 +54,7 @@ def _load_region(code):
5354
from .alt_format_63 import PHONE_ALT_FORMAT_63
5455
from .alt_format_66 import PHONE_ALT_FORMAT_66
5556
from .alt_format_675 import PHONE_ALT_FORMAT_675
57+
from .alt_format_679 import PHONE_ALT_FORMAT_679
5658
from .alt_format_7 import PHONE_ALT_FORMAT_7
5759
from .alt_format_81 import PHONE_ALT_FORMAT_81
5860
from .alt_format_84 import PHONE_ALT_FORMAT_84
@@ -62,7 +64,7 @@ def _load_region(code):
6264
from .alt_format_971 import PHONE_ALT_FORMAT_971
6365
from .alt_format_972 import PHONE_ALT_FORMAT_972
6466
from .alt_format_995 import PHONE_ALT_FORMAT_995
65-
_ALT_NUMBER_FORMATS = {30: PHONE_ALT_FORMAT_30, 31: PHONE_ALT_FORMAT_31, 34: PHONE_ALT_FORMAT_34, 350: PHONE_ALT_FORMAT_350, 351: PHONE_ALT_FORMAT_351, 352: PHONE_ALT_FORMAT_352, 358: PHONE_ALT_FORMAT_358, 359: PHONE_ALT_FORMAT_359, 36: PHONE_ALT_FORMAT_36, 372: PHONE_ALT_FORMAT_372, 373: PHONE_ALT_FORMAT_373, 380: PHONE_ALT_FORMAT_380, 385: PHONE_ALT_FORMAT_385, 43: PHONE_ALT_FORMAT_43, 44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 55: PHONE_ALT_FORMAT_55, 58: PHONE_ALT_FORMAT_58, 595: PHONE_ALT_FORMAT_595, 61: PHONE_ALT_FORMAT_61, 62: PHONE_ALT_FORMAT_62, 63: PHONE_ALT_FORMAT_63, 66: PHONE_ALT_FORMAT_66, 675: PHONE_ALT_FORMAT_675, 7: PHONE_ALT_FORMAT_7, 81: PHONE_ALT_FORMAT_81, 84: PHONE_ALT_FORMAT_84, 855: PHONE_ALT_FORMAT_855, 90: PHONE_ALT_FORMAT_90, 94: PHONE_ALT_FORMAT_94, 971: PHONE_ALT_FORMAT_971, 972: PHONE_ALT_FORMAT_972, 995: PHONE_ALT_FORMAT_995}
67+
_ALT_NUMBER_FORMATS = {30: PHONE_ALT_FORMAT_30, 31: PHONE_ALT_FORMAT_31, 34: PHONE_ALT_FORMAT_34, 350: PHONE_ALT_FORMAT_350, 351: PHONE_ALT_FORMAT_351, 352: PHONE_ALT_FORMAT_352, 358: PHONE_ALT_FORMAT_358, 359: PHONE_ALT_FORMAT_359, 36: PHONE_ALT_FORMAT_36, 372: PHONE_ALT_FORMAT_372, 373: PHONE_ALT_FORMAT_373, 380: PHONE_ALT_FORMAT_380, 385: PHONE_ALT_FORMAT_385, 43: PHONE_ALT_FORMAT_43, 44: PHONE_ALT_FORMAT_44, 49: PHONE_ALT_FORMAT_49, 505: PHONE_ALT_FORMAT_505, 55: PHONE_ALT_FORMAT_55, 58: PHONE_ALT_FORMAT_58, 595: PHONE_ALT_FORMAT_595, 61: PHONE_ALT_FORMAT_61, 62: PHONE_ALT_FORMAT_62, 63: PHONE_ALT_FORMAT_63, 66: PHONE_ALT_FORMAT_66, 675: PHONE_ALT_FORMAT_675, 679: PHONE_ALT_FORMAT_679, 7: PHONE_ALT_FORMAT_7, 81: PHONE_ALT_FORMAT_81, 84: PHONE_ALT_FORMAT_84, 855: PHONE_ALT_FORMAT_855, 90: PHONE_ALT_FORMAT_90, 94: PHONE_ALT_FORMAT_94, 971: PHONE_ALT_FORMAT_971, 972: PHONE_ALT_FORMAT_972, 995: PHONE_ALT_FORMAT_995}
6668

6769
# A mapping from a country code to the region codes which
6870
# denote the country/region represented by that country code.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""Auto-generated file, do not edit by hand. 505 metadata"""
2+
from ..phonemetadata import NumberFormat
3+
4+
PHONE_ALT_FORMAT_505 = [NumberFormat(pattern='(\\d)(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['2'])]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"""Auto-generated file, do not edit by hand. 679 metadata"""
2+
from ..phonemetadata import NumberFormat
3+
4+
PHONE_ALT_FORMAT_679 = [NumberFormat(pattern='(7\\d)(\\d{3})(\\d{2})', format='\\1 \\2 \\3', leading_digits_pattern=['7'])]

python/phonenumbers/data/region_BF.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
PHONE_METADATA_BF = PhoneMetadata(id='BF', country_code=226, international_prefix='00',
55
general_desc=PhoneNumberDesc(national_number_pattern='[24-7]\\d{7}', possible_number_pattern='\\d{8}'),
6-
fixed_line=PhoneNumberDesc(national_number_pattern='(?:20(?:49|5[23]|9[016-9])|40(?:4[56]|5[4-6]|7[0179])|50[34]\\d)\\d{4}', possible_number_pattern='\\d{8}', example_number='20491234'),
7-
mobile=PhoneNumberDesc(national_number_pattern='6(?:[0-24-6]\\d|8[0-8]|3[0-3])\\d{5}|7\\d{7}', possible_number_pattern='\\d{8}', example_number='70123456'),
6+
fixed_line=PhoneNumberDesc(national_number_pattern='(?:20(?:49|5[23]|9[016-9])|40(?:4[569]|5[4-6]|7[0179])|50(?:[34]\\d|50))\\d{4}', possible_number_pattern='\\d{8}', example_number='20491234'),
7+
mobile=PhoneNumberDesc(national_number_pattern='6(?:[0-24-6]\\d|70|8[0-8]|3[0-3])\\d{5}|7\\d{7}', possible_number_pattern='\\d{8}', example_number='70123456'),
88
toll_free=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),

python/phonenumbers/data/region_CI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PHONE_METADATA_CI = PhoneMetadata(id='CI', country_code=225, international_prefix='00',
55
general_desc=PhoneNumberDesc(national_number_pattern='[02-7]\\d{7}', possible_number_pattern='\\d{8}'),
66
fixed_line=PhoneNumberDesc(national_number_pattern='(?:2(?:0[023]|1[02357]|[23][045]|4[03-5])|3(?:0[06]|1[069]|[2-4][07]|5[09]|6[08]))\\d{5}', possible_number_pattern='\\d{8}', example_number='21234567'),
7-
mobile=PhoneNumberDesc(national_number_pattern='(?:0[1-9]|4[0-24-9]|5[5-9]|6[015-79]|77)\\d{6}', possible_number_pattern='\\d{8}', example_number='01234567'),
7+
mobile=PhoneNumberDesc(national_number_pattern='(?:0[1-9]|4[0-24-9]|5[4-9]|6[015-79]|77)\\d{6}', possible_number_pattern='\\d{8}', example_number='01234567'),
88
toll_free=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),

python/phonenumbers/data/region_EG.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
PHONE_METADATA_EG = PhoneMetadata(id='EG', country_code=20, international_prefix='00',
55
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{4,9}|[2456]\\d{8}|3\\d{7}|[89]\\d{8,9}', possible_number_pattern='\\d{5,10}'),
6-
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(3[23]\\d|5[23])|2[2-4]\\d{2}|3\\d{2}|4(?:0[2-5]|[578][23]|64)\\d|5(?:0[2-7]|[57][23])\\d|6[24-689]3\\d|8(?:2[2-57]|4[26]|6[237]|8[2-4])\\d|9(?:2[27]|3[24]|52|6[2356]|7[2-4])\\d)\\d{5}|1[69]\\d{3}', possible_number_pattern='\\d{5,9}', example_number='234567890'),
6+
fixed_line=PhoneNumberDesc(national_number_pattern='(?:1(3[23]\\d|5(?:[23]|9\\d))|2[2-4]\\d{2}|3\\d{2}|4(?:0[2-5]|[578][23]|64)\\d|5(?:0[2-7]|[57][23])\\d|6[24-689]3\\d|8(?:2[2-57]|4[26]|6[237]|8[2-4])\\d|9(?:2[27]|3[24]|52|6[2356]|7[2-4])\\d)\\d{5}|1[69]\\d{3}', possible_number_pattern='\\d{5,9}', example_number='234567890'),
77
mobile=PhoneNumberDesc(national_number_pattern='1(?:0[0-269]|1[0-245]|2[0-278])\\d{7}', possible_number_pattern='\\d{10}', example_number='1001234567'),
88
toll_free=PhoneNumberDesc(national_number_pattern='800\\d{7}', possible_number_pattern='\\d{10}', example_number='8001234567'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='900\\d{7}', possible_number_pattern='\\d{10}', example_number='9001234567'),
@@ -18,5 +18,5 @@
1818
national_prefix_for_parsing='0',
1919
number_format=[NumberFormat(pattern='(\\d)(\\d{7,8})', format='\\1 \\2', leading_digits_pattern=['[23]'], national_prefix_formatting_rule='0\\1'),
2020
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['1[012]|[89]00'], national_prefix_formatting_rule='0\\1'),
21-
NumberFormat(pattern='(\\d{2})(\\d{6,7})', format='\\1 \\2', leading_digits_pattern=['1(?:3|5[23])|[4-6]|[89][2-9]'], national_prefix_formatting_rule='0\\1')],
21+
NumberFormat(pattern='(\\d{2})(\\d{6,7})', format='\\1 \\2', leading_digits_pattern=['1[35]|[4-6]|[89][2-9]'], national_prefix_formatting_rule='0\\1')],
2222
mobile_number_portable_region=True)

python/phonenumbers/data/region_EH.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PHONE_METADATA_EH = PhoneMetadata(id='EH', country_code=212, international_prefix='00',
55
general_desc=PhoneNumberDesc(national_number_pattern='[5689]\\d{8}', possible_number_pattern='\\d{9}'),
66
fixed_line=PhoneNumberDesc(national_number_pattern='528[89]\\d{5}', possible_number_pattern='\\d{9}', example_number='528812345'),
7-
mobile=PhoneNumberDesc(national_number_pattern='6(?:0[0-8]|[124-7]\\d|3[03-8]|8[01]|99)\\d{6}', possible_number_pattern='\\d{9}', example_number='650123456'),
7+
mobile=PhoneNumberDesc(national_number_pattern='6(?:0[0-8]|[12-7]\\d|8[01]|9[27-9])\\d{6}', possible_number_pattern='\\d{9}', example_number='650123456'),
88
toll_free=PhoneNumberDesc(national_number_pattern='80\\d{7}', possible_number_pattern='\\d{9}', example_number='801234567'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='89\\d{7}', possible_number_pattern='\\d{9}', example_number='891234567'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),

python/phonenumbers/data/region_FJ.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PHONE_METADATA_FJ = PhoneMetadata(id='FJ', country_code=679, international_prefix='0(?:0|52)',
55
general_desc=PhoneNumberDesc(national_number_pattern='[36-9]\\d{6}|0\\d{10}', possible_number_pattern='\\d{7}(?:\\d{4})?'),
66
fixed_line=PhoneNumberDesc(national_number_pattern='(?:3[0-5]|6[25-7]|8[58])\\d{5}', possible_number_pattern='\\d{7}', example_number='3212345'),
7-
mobile=PhoneNumberDesc(national_number_pattern='(?:7[0-467]|8[3467]|9\\d)\\d{5}', possible_number_pattern='\\d{7}', example_number='7012345'),
7+
mobile=PhoneNumberDesc(national_number_pattern='(?:7[0-8]|8[03467]|9\\d)\\d{5}', possible_number_pattern='\\d{7}', example_number='7012345'),
88
toll_free=PhoneNumberDesc(national_number_pattern='0800\\d{7}', possible_number_pattern='\\d{11}', example_number='08001234567'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),

python/phonenumbers/data/region_IN.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
PHONE_METADATA_IN = PhoneMetadata(id='IN', country_code=91, international_prefix='00',
55
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{7,12}|[2-9]\\d{9,10}', possible_number_pattern='\\d{6,13}'),
66
fixed_line=PhoneNumberDesc(national_number_pattern='(?:11|2[02]|33|4[04]|79)[2-7]\\d{7}|80[2-467]\\d{7}|(?:1(?:2[0-249]|3[0-25]|4[145]|[59][14]|6[014]|7[1257]|8[01346])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[126-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:[136][25]|22|4[28]|5[12]|[78]1|9[15])|6(?:12|[2345]1|57|6[13]|7[14]|80)|7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)|8(?:16|2[014]|3[126]|6[136]|7[078]|8[34]|91))[2-7]\\d{6}|(?:(?:1(?:2[35-8]|3[346-9]|4[236-9]|[59][0235-9]|6[235-9]|7[34689]|8[257-9])|2(?:1[134689]|3[24-8]|4[2-8]|5[25689]|6[2-4679]|7[13-79]|8[2-479]|9[235-9])|3(?:01|1[79]|2[1-5]|4[25-8]|5[125689]|6[235-7]|7[157-9]|8[2-467])|4(?:1[14578]|2[5689]|3[2-467]|5[4-7]|6[35]|73|8[2689]|9[2389])|5(?:[16][146-9]|2[14-8]|3[1346]|4[14-69]|5[46]|7[2-4]|8[2-8]|9[246])|6(?:1[1358]|2[2457]|3[2-4]|4[235-7]|[57][2-689]|6[24-58]|8[1-6])|8(?:1[1357-9]|2[235-8]|3[03-57-9]|4[0-24-9]|5\\d|6[2457-9]|7[1-6]|8[1256]|9[2-4]))\\d|7(?:(?:1[013-9]|2[0235-9]|3[2679]|4[1-35689]|5[2-46-9]|[67][02-9]|9\\d)\\d|8(?:2[0-6]|[013-8]\\d)))[2-7]\\d{5}', possible_number_pattern='\\d{6,10}', example_number='1123456789'),
7-
mobile=PhoneNumberDesc(national_number_pattern='(?:7(?:2(?:0[04-9]|5[09]|7[5-8]|9[389])|3(?:0[1-9]|[58]\\d|7[3679]|9[689])|4(?:0[1-9]|1[15-9]|[29][89]|39|8[389])|5(?:[034678]\\d|2[03-9]|5[017-9]|9[7-9])|6(?:0[027]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[67]\\d|8[0-489]|9[0-46-9])|7(?:0[2-9]|[1-79]\\d|8[1-9])|8(?:[0-7]\\d|9[013-9]))|8(?:0(?:[01589]\\d|6[67])|1(?:[02-589]\\d|1[0135-9]|7[0-79])|2(?:[236-9]\\d|5[1-9])|3(?:[0357-9]\\d|4[1-9])|[45]\\d{2}|6[02457-9]\\d|7[1-69]\\d|8(?:[0-26-9]\\d|44|5[2-9])|9(?:[035-9]\\d|2[2-9]|4[0-8]))|9\\d{3})\\d{6}', possible_number_pattern='\\d{10}', example_number='9123456789'),
7+
mobile=PhoneNumberDesc(national_number_pattern='(?:7(?:2(?:0[04-9]|5[09]|7[5-8]|9[389])|3(?:0[1-9]|[58]\\d|7[3679]|9[689])|4(?:0[1-9]|1[15-9]|[29][89]|39|8[389])|5(?:[034678]\\d|2[03-9]|5[017-9]|9[7-9])|6(?:0[027]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[679]\\d|8[0-589])|7(?:0[2-9]|[1-79]\\d|8[1-9])|8(?:[0-7]\\d|9[013-9]))|8(?:0(?:[01589]\\d|6[67])|1(?:[02-589]\\d|1[0135-9]|7[0-79])|2(?:[236-9]\\d|5[1-9])|3(?:[0357-9]\\d|4[1-9])|[45]\\d{2}|6[02457-9]\\d|7[1-69]\\d|8(?:[0-26-9]\\d|44|5[2-9])|9(?:[035-9]\\d|2[2-9]|4[0-8]))|9\\d{3})\\d{6}', possible_number_pattern='\\d{10}', example_number='9123456789'),
88
toll_free=PhoneNumberDesc(national_number_pattern='1(?:600\\d{6}|80(?:0\\d{4,8}|3\\d{9}))', possible_number_pattern='\\d{8,13}', example_number='1800123456'),
99
premium_rate=PhoneNumberDesc(national_number_pattern='186[12]\\d{9}', possible_number_pattern='\\d{13}', example_number='1861123456789'),
1010
shared_cost=PhoneNumberDesc(national_number_pattern='NA', possible_number_pattern='NA'),
@@ -16,7 +16,7 @@
1616
no_international_dialling=PhoneNumberDesc(national_number_pattern='1(?:600\\d{6}|8(?:0(?:0\\d{4,8}|3\\d{9})|6(?:0\\d{7}|[12]\\d{9})))', possible_number_pattern='\\d{8,13}', example_number='1800123456'),
1717
national_prefix='0',
1818
national_prefix_for_parsing='0',
19-
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{6})', format='\\1 \\2 \\3', leading_digits_pattern=['7(?:2[0579]|3[057-9]|4[0-389]|6[0-35-9]|[57]|8[0-79])|8(?:0[015689]|1[0-57-9]|2[2356-9]|3[0-57-9]|[45]|6[02457-9]|7[1-69]|8[0124-9]|9[02-9])|9', '7(?:2(?:0[04-9]|5[09]|7[5-8]|9[389])|3(?:0[1-9]|[58]|7[3679]|9[689])|4(?:0[1-9]|1[15-9]|[29][89]|39|8[389])|5(?:[034678]|2[03-9]|5[017-9]|9[7-9])|6(?:0[027]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[67]|8[0-489]|9[0-46-9])|7(?:0[2-9]|[1-79]|8[1-9])|8(?:[0-7]|9[013-9]))|8(?:0(?:[01589]|6[67])|1(?:[02-589]|1[0135-9]|7[0-79])|2(?:[236-9]|5[1-9])|3(?:[0357-9]|4[1-9])|[45]|6[02457-9]|7[1-69]|8(?:[0-26-9]|44|5[2-9])|9(?:[035-9]|2[2-9]|4[0-8]))|9'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),
19+
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{6})', format='\\1 \\2 \\3', leading_digits_pattern=['7(?:2[0579]|3[057-9]|4[0-389]|6[0-35-9]|[57]|8[0-79])|8(?:0[015689]|1[0-57-9]|2[2356-9]|3[0-57-9]|[45]|6[02457-9]|7[1-69]|8[0124-9]|9[02-9])|9', '7(?:2(?:0[04-9]|5[09]|7[5-8]|9[389])|3(?:0[1-9]|[58]|7[3679]|9[689])|4(?:0[1-9]|1[15-9]|[29][89]|39|8[389])|5(?:[034678]|2[03-9]|5[017-9]|9[7-9])|6(?:0[027]|1[0-257-9]|2[0-4]|3[19]|5[4589]|[679]|8[0-589])|7(?:0[2-9]|[1-79]|8[1-9])|8(?:[0-7]|9[013-9]))|8(?:0(?:[01589]|6[67])|1(?:[02-589]|1[0135-9]|7[0-79])|2(?:[236-9]|5[1-9])|3(?:[0357-9]|4[1-9])|[45]|6[02457-9]|7[1-69]|8(?:[0-26-9]|44|5[2-9])|9(?:[035-9]|2[2-9]|4[0-8]))|9'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),
2020
NumberFormat(pattern='(\\d{2})(\\d{4})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['11|2[02]|33|4[04]|79|80[2-46]'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),
2121
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['1(?:2[0-249]|3[0-25]|4[145]|[569][14]|7[1257]|8[1346]|[68][1-9])|2(?:1[257]|3[013]|4[01]|5[0137]|6[0158]|78|8[1568]|9[14])|3(?:26|4[1-3]|5[34]|6[01489]|7[02-46]|8[159])|4(?:1[36]|2[1-47]|3[15]|5[12]|6[126-9]|7[0-24-9]|8[013-57]|9[014-7])|5(?:[136][25]|22|4[28]|5[12]|[78]1|9[15])|6(?:12|[2345]1|57|6[13]|7[14]|80)'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),
2222
NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{4})', format='\\1 \\2 \\3', leading_digits_pattern=['7(?:12|2[14]|3[134]|4[47]|5[15]|[67]1|88)', '7(?:12|2[14]|3[134]|4[47]|5(?:1|5[2-6])|[67]1|88)'], national_prefix_formatting_rule='0\\1', national_prefix_optional_when_formatting=True),

0 commit comments

Comments
 (0)