Skip to content

Commit

Permalink
Generated files for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddrysdale committed Aug 9, 2024
1 parent 7b73bb3 commit 88b7d53
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 30 deletions.
20 changes: 10 additions & 10 deletions python/phonenumbers/carrierdata/data0.py
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@
'23676':{'en': 'Telecel'},
'23677':{'en': 'Nationlink'},
'23762':{'en': 'Camtel'},
'23764':{'en': 'Orange'},
'237650':{'en': 'MTN Cameroon'},
'237651':{'en': 'MTN Cameroon'},
'237652':{'en': 'MTN Cameroon'},
Expand All @@ -1136,7 +1137,7 @@
'237686':{'en': 'Orange'},
'237687':{'en': 'Orange'},
'237688':{'en': 'Orange'},
'237689':{'en': 'NEXTTEL'},
'237689':{'en': 'Orange'},
'23769':{'en': 'Orange'},
'23836':{'en': 'CVMOVEL'},
'23851':{'en': 'T+'},
Expand Down Expand Up @@ -1198,6 +1199,7 @@
'24493':{'en': 'UNITEL'},
'24494':{'en': 'UNITEL'},
'24495':{'en': 'Africell'},
'24496':{'en': 'Africell'},
'24497':{'en': 'UNITEL'},
'24499':{'en': 'Movicel'},
'24595':{'en': 'Orange'},
Expand Down Expand Up @@ -1623,6 +1625,7 @@
'2772':{'en': 'Vodacom'},
'2773':{'en': 'MTN'},
'2774':{'en': 'Cell C'},
'2775':{'en': 'Telkom Mobile'},
'2776':{'en': 'Vodacom'},
'2778':{'en': 'MTN'},
'2779':{'en': 'Vodacom'},
Expand Down Expand Up @@ -2079,8 +2082,8 @@
'3375075':{'en': 'Alphalink'},
'3375076':{'en': 'Globalstar Europe'},
'3375077':{'en': 'Globalstar Europe'},
'3375078':{'en': 'China Telecom (France) Limited'},
'3375079':{'en': 'China Telecom (France) Limited'},
'3375078':{'en': 'Bouygues'},
'3375079':{'en': 'Bouygues'},
'337508':{'en': 'SFR'},
'337509':{'en': 'SFR'},
'33751':{'en': 'Lycamobile'},
Expand Down Expand Up @@ -2180,6 +2183,8 @@
'3375759':{'en': 'Twilio Ireland Limited'},
'3375760':{'en': 'Twilio Ireland Limited'},
'3375763':{'en': 'Euroinformation Telecom'},
'3375764':{'en': 'Bouygues'},
'3375765':{'en': 'Bouygues'},
'3375767':{'en': 'Euroinformation Telecom'},
'3375770':{'en': 'SFR'},
'3375771':{'en': 'SFR'},
Expand Down Expand Up @@ -2545,6 +2550,7 @@
'3474448':{'en': 'Aire Networks'},
'3474449':{'en': 'Alai'},
'347446':{'en': 'PTV'},
'347449':{'en': 'Alai'},
'347477':{'en': 'Orange'},
'347478':{'en': 'Orange'},
'35051':{'en': 'Gibfibre'},
Expand Down Expand Up @@ -3512,13 +3518,7 @@
'4178461':{'en': 'Tismi'},
'4178462':{'en': 'Tismi'},
'4178463':{'en': 'Tismi'},
'4178470':{'en': 'MTEL'},
'4178471':{'en': 'MTEL'},
'4178472':{'en': 'MTEL'},
'4178473':{'en': 'MTEL'},
'4178474':{'en': 'MTEL'},
'4178475':{'en': 'MTEL'},
'4178476':{'en': 'MTEL'},
'417847':{'en': 'MTEL'},
'4178480':{'en': 'Nexphone'},
'4178481':{'en': 'Nexphone'},
'4178482':{'en': 'Nexphone'},
Expand Down
2 changes: 2 additions & 0 deletions python/phonenumbers/carrierdata/data2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4055,6 +4055,7 @@
'852446':{'en': 'Hutchison Telecom', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'852447':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'852448':{'en': 'Hutchison Telecom', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'852449':{'en': 'Hutchison Telecom', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'852460':{'en': 'China Unicom', 'zh': u('\u4e2d\u56fd\u8054\u901a'), 'zh_Hant': u('\u4e2d\u570b\u79fb\u52d5')},
'8524607':{'en': 'Multibyte', 'zh': 'Multibyte'},
'8524608':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
Expand Down Expand Up @@ -4340,6 +4341,7 @@
'852840':{'en': 'China Mobile', 'zh': u('\u4e2d\u56fd\u79fb\u52a8')},
'852841':{'en': 'Hutchison Telecom', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'852842':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
'852843':{'en': 'Hutchison Telecom', 'zh': u('\u548c\u8a18\u96fb\u8a71\u6709\u9650\u516c\u53f8')},
'8528480':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': 'Handy'},
'8528481':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf'), 'zh_Hant': u('\u65b0\u79fb\u52d5\u901a\u8a0a')},
'8528482':{'en': 'HKT', 'zh': u('\u9999\u6e2f\u79fb\u52a8\u901a\u8baf')},
Expand Down
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_AO.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
PHONE_METADATA_AO = PhoneMetadata(id='AO', country_code=244, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[29]\\d{8}', possible_length=(9,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2\\d(?:[0134][25-9]|[25-9]\\d)\\d{5}', example_number='222123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='9[1-579]\\d{7}', example_number='923123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='9[1-79]\\d{7}', example_number='923123456', possible_length=(9,)),
number_format=[NumberFormat(pattern='(\\d{3})(\\d{3})(\\d{3})', format='\\1 \\2 \\3', leading_digits_pattern=['[29]'])])
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_BD.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@

PHONE_METADATA_BD = PhoneMetadata(id='BD', country_code=880, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[1-469]\\d{9}|8[0-79]\\d{7,8}|[2-79]\\d{8}|[2-9]\\d{7}|[3-9]\\d{6}|[57-9]\\d{5}', possible_length=(6, 7, 8, 9, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:2\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}', example_number='27111234', possible_length=(6, 7, 8, 9, 10)),
fixed_line=PhoneNumberDesc(national_number_pattern='(?:4(?:31\\d\\d|423)|5222)\\d{3}(?:\\d{2})?|8332[6-9]\\d\\d|(?:3(?:03[56]|224)|4(?:22[25]|653))\\d{3,4}|(?:3(?:42[47]|529|823)|4(?:027|525|65(?:28|8))|562|6257|7(?:1(?:5[3-5]|6[12]|7[156]|89)|22[589]56|32|42675|52(?:[25689](?:56|8)|[347]8)|71(?:6[1267]|75|89)|92374)|82(?:2[59]|32)56|9(?:03[23]56|23(?:256|373)|31|5(?:1|2[4589]56)))\\d{3}|(?:3(?:02[348]|22[35]|324|422)|4(?:22[67]|32[236-9]|6(?:2[46]|5[57])|953)|5526|6(?:024|6655)|81)\\d{4,5}|(?:2(?:7(?:1[0-267]|2[0-289]|3[0-29]|4[01]|5[1-3]|6[013]|7[0178]|91)|8(?:0[125]|1[1-6]|2[0157-9]|3[1-69]|41|6[1-35]|7[1-5]|8[1-8]|9[0-6])|9(?:0[0-2]|1[0-4]|2[568]|3[3-6]|5[5-7]|6[0136-9]|7[0-7]|8[014-9]))|3(?:0(?:2[025-79]|3[2-4])|181|22[12]|32[2356]|824)|4(?:02[09]|22[348]|32[045]|523|6(?:27|54))|666(?:22|53)|7(?:22[57-9]|42[56]|82[35])8|8(?:0[124-9]|2(?:181|2[02-4679]8)|4[12]|[5-7]2)|9(?:[04]2|2(?:2|328)|81))\\d{4}|(?:2(?:[23]\\d|[45])\\d\\d|3(?:1(?:2[5-7]|[5-7])|425|822)|4(?:033|1\\d|[257]1|332|4(?:2[246]|5[25])|6(?:2[35]|56|62)|8(?:23|54)|92[2-5])|5(?:02[03489]|22[457]|32[35-79]|42[46]|6(?:[18]|53)|724|826)|6(?:023|2(?:2[2-5]|5[3-5]|8)|32[3478]|42[34]|52[47]|6(?:[18]|6(?:2[34]|5[24]))|[78]2[2-5]|92[2-6])|7(?:02|21\\d|[3-589]1|6[12]|72[24])|8(?:217|3[12]|[5-7]1)|9[24]1)\\d{5}|(?:(?:3[2-8]|5[2-57-9]|6[03-589])1|4[4689][18])\\d{5}|[59]1\\d{5}', example_number='27111234', possible_length=(6, 7, 8, 9, 10)),
mobile=PhoneNumberDesc(national_number_pattern='(?:1[13-9]\\d|644)\\d{7}|(?:3[78]|44|66)[02-9]\\d{7}', example_number='1812345678', possible_length=(10,)),
toll_free=PhoneNumberDesc(national_number_pattern='80[03]\\d{7}', example_number='8001234567', possible_length=(10,)),
voip=PhoneNumberDesc(national_number_pattern='96(?:0[469]|1[0-47]|3[389]|43|6[69]|7[78])\\d{6}', example_number='9604123456', possible_length=(10,)),
national_prefix='0',
national_prefix_for_parsing='0',
number_format=[NumberFormat(pattern='(\\d{2})(\\d{4,6})', format='\\1-\\2', leading_digits_pattern=['31[5-8]|[459]1'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{3})(\\d{3,7})', format='\\1-\\2', leading_digits_pattern=['3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28|4[14])|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{4})(\\d{3,6})', format='\\1-\\2', leading_digits_pattern=['[13-9]|22'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d{4})(\\d{3,6})', format='\\1-\\2', leading_digits_pattern=['[13-9]|2[23]'], national_prefix_formatting_rule='0\\1'),
NumberFormat(pattern='(\\d)(\\d{7,8})', format='\\1-\\2', leading_digits_pattern=['2'], national_prefix_formatting_rule='0\\1')])
4 changes: 2 additions & 2 deletions python/phonenumbers/data/region_BJ.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

PHONE_METADATA_BJ = PhoneMetadata(id='BJ', country_code=229, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[24-689]\\d{7}', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}', example_number='20211234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4[0-7]|[56]\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)),
fixed_line=PhoneNumberDesc(national_number_pattern='2090\\d{4}|2(?:02|1[037]|2[45]|3[68]|4\\d)\\d{5}', example_number='20211234', possible_length=(8,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:4[0-8]|[56]\\d|9[013-9])\\d{6}', example_number='90011234', possible_length=(8,)),
voip=PhoneNumberDesc(national_number_pattern='857[58]\\d{4}', example_number='85751234', possible_length=(8,)),
uan=PhoneNumberDesc(national_number_pattern='81\\d{6}', example_number='81123456', possible_length=(8,)),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['[24-689]'])])
2 changes: 1 addition & 1 deletion python/phonenumbers/data/region_CM.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
PHONE_METADATA_CM = PhoneMetadata(id='CM', country_code=237, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='[26]\\d{8}|88\\d{6,7}', possible_length=(8, 9)),
fixed_line=PhoneNumberDesc(national_number_pattern='2(?:22|33)\\d{6}', example_number='222123456', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:24[23]|6[25-9]\\d)\\d{6}', example_number='671234567', possible_length=(9,)),
mobile=PhoneNumberDesc(national_number_pattern='(?:24[23]|6(?:[25-9]\\d|40))\\d{6}', example_number='671234567', possible_length=(9,)),
toll_free=PhoneNumberDesc(national_number_pattern='88\\d{6,7}', example_number='88012345', possible_length=(8, 9)),
number_format=[NumberFormat(pattern='(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4', leading_digits_pattern=['88']),
NumberFormat(pattern='(\\d)(\\d{2})(\\d{2})(\\d{2})(\\d{2})', format='\\1 \\2 \\3 \\4 \\5', leading_digits_pattern=['[26]|88'])],
Expand Down
Loading

0 comments on commit 88b7d53

Please sign in to comment.