Skip to content

Commit

Permalink
Update metadata to libphonenumber v7.0.8
Browse files Browse the repository at this point in the history
Update LocaleTest to remove the Vatican City, as it's metadata has been
merged into Italy.
  • Loading branch information
giggsey committed Jul 14, 2015
1 parent d6dbec9 commit 8e44ae1
Show file tree
Hide file tree
Showing 36 changed files with 209 additions and 112 deletions.
1 change: 0 additions & 1 deletion Tests/libphonenumber/Tests/Issues/LocaleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ private function getCountryCodes()
'GW' => 'Guinea-Bissau',
'GY' => 'Guyana',
'HT' => 'Haiti',
'VA' => 'Vatican City',
'HN' => 'Honduras',
'HK' => 'Hong Kong SAR China',
'HU' => 'Hungary',
Expand Down
5 changes: 1 addition & 4 deletions src/libphonenumber/CountryCodeToRegionCodeMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ class CountryCodeToRegionCodeMap {
39 =>
array (
0 => 'IT',
1 => 'VA',
),
40 =>
array (
Expand Down Expand Up @@ -545,10 +546,6 @@ class CountryCodeToRegionCodeMap {
array (
0 => 'SM',
),
379 =>
array (
0 => 'VA',
),
380 =>
array (
0 => 'UA',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/212.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
212679 => 'Méditel',
212680 => 'Inwi',
212681 => 'Inwi',
212687 => 'Inwi',
212690 => 'Inwi',
212691 => 'Inwi',
212692 => 'GlobalStar',
Expand Down
4 changes: 3 additions & 1 deletion src/libphonenumber/carrier/data/en/232.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
23230 => 'Africell',
23233 => 'Comium',
23234 => 'Comium',
23235 => 'IPTEL',
23240 => 'Datatel/Cellcom',
23244 => 'Intergroup',
23250 => 'Datatel/Cellcom',
23255 => 'Ambitel',
23255 => 'AFCOM',
23266 => 'Onlime',
23276 => 'Airtel',
23277 => 'Africell',
23278 => 'Airtel',
Expand Down
3 changes: 3 additions & 0 deletions src/libphonenumber/carrier/data/en/267.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
267745 => 'Mascom',
267746 => 'Mascom',
267747 => 'Mascom',
267748 => 'Orange',
267749 => 'BTC Mobile',
267750 => 'Orange',
267751 => 'Orange',
267752 => 'Orange',
Expand All @@ -42,4 +44,5 @@
267775 => 'Orange',
267776 => 'Mascom',
267777 => 'Mascom',
267778 => 'Mascom',
);
13 changes: 12 additions & 1 deletion src/libphonenumber/carrier/data/en/380.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,16 @@
*/

return array (
38094 => 'IT',
38050 => 'MTS',
38063 => 'Life',
38066 => 'MTS',
38067 => 'Kyivstar',
38068 => 'Kyivstar',
38073 => 'Life',
38092 => 'PEOPLEnet',
38093 => 'Life',
38096 => 'Kyivstar',
38097 => 'Kyivstar',
38098 => 'Kyivstar',
38099 => 'MTS',
);
3 changes: 3 additions & 0 deletions src/libphonenumber/carrier/data/en/385.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
38591 => 'Vip',
38592 => 'Vip',
38595 => 'Tele2',
385976 => 'Bonbon',
385977 => 'Bonbon',
385979 => 'MultiPlus',
38598 => 'T-Mobile',
38599 => 'T-Mobile',
);
6 changes: 6 additions & 0 deletions src/libphonenumber/carrier/data/en/49.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,25 @@
*/

return array (
491502 => 'Interactive digital media',
491505 => 'NAKA AG',
491508 => 'Easy World',
49151 => 'T-Mobile',
491520 => 'Vodafone',
491521 => 'Vodafone/Lycamobile',
491522 => 'Vodafone',
491523 => 'Vodafone',
491525 => 'Vodafone',
491529 => 'Vodafone/Truphone',
491555 => 'Tismi BV',
491567 => 'Argon Networks',
491570 => 'Eplus/Telogic',
491573 => 'Eplus',
491575 => 'Eplus',
491577 => 'Eplus',
491578 => 'Eplus',
491579 => 'Eplus/Sipgate',
491588 => 'TelcoVillage',
491590 => 'O2',
49160 => 'T-Mobile',
49162 => 'Vodafone',
Expand Down
3 changes: 2 additions & 1 deletion src/libphonenumber/carrier/data/en/962.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
*/

return array (
96274 => 'XPress JO',
96274 => 'Mirsal',
96275 => 'Friendi',
96277 => 'Orange',
96278 => 'Umniah',
96279 => 'Zain JO',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/972.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
9725587 => 'Alon',
9725588 => 'Alon',
9725589 => 'Alon',
9725596 => 'Azi Communications',
9725597 => 'Azi Communications',
9725598 => 'Azi Communications',
9725599 => 'Azi Communications',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/977.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
977975 => 'NDCL',
977980 => 'NCell',
977981 => 'NCell',
977982 => 'NCell',
977984 => 'Nepal Telecom',
977985 => 'Nepal Telecom',
977986 => 'Nepal Telecom',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/993.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
99365 => 'TM-Cell',
99366 => 'MTS (BARASH Communication)',
99367 => 'MTS (BARASH Communication)',
99369 => 'MTS (BARASH Communication)',
);
12 changes: 3 additions & 9 deletions src/libphonenumber/data/PhoneNumberMetadata_AC.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,16 @@
array (
'NationalNumberPattern' => '
[46]\\d{4}|
[2-467]\\d{3}|
[01589]\\d{5}
',
'PossibleNumberPattern' => '\\d{4,6}',
'PossibleNumberPattern' => '\\d{5,6}',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '
6[2-467]\\d{3}|
(?:
[267]\\d|
3[0-5]|
4[4-69]
)\\d{2}
6[2-467]\\d{3}
',
'PossibleNumberPattern' => '\\d{4,5}',
'PossibleNumberPattern' => '\\d{5}',
'ExampleNumber' => '62889',
),
'mobile' =>
Expand Down
5 changes: 4 additions & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_BS.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
8[78]|
9[89]
)|
702
7(?:
02|
88
)
)\\d{4}
',
'PossibleNumberPattern' => '\\d{7}(?:\\d{3})?',
Expand Down
5 changes: 2 additions & 3 deletions src/libphonenumber/data/PhoneNumberMetadata_BW.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,8 @@
array (
'NationalNumberPattern' => '
7(?:
[1-356]\\d|
4[0-7]|
7[014-7]
[1-6]\\d|
7[014-8]
)\\d{5}
',
'PossibleNumberPattern' => '\\d{8}',
Expand Down
8 changes: 6 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_CL.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
'NationalNumberPattern' => '
2(?:
2\\d{7}|
3(?:
20|
22
)\\d{5}|
1962\\d{4}
)|
(?:
Expand Down Expand Up @@ -126,7 +130,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '22',
0 => '2[23]',
),
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
Expand Down Expand Up @@ -235,7 +239,7 @@
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '22',
0 => '2[23]',
),
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
Expand Down
39 changes: 25 additions & 14 deletions src/libphonenumber/data/PhoneNumberMetadata_DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
array (
'NationalNumberPattern' => '
1(?:
5[0-2579]\\d{8}|
5[0-25-9]\\d{8}|
6[023]\\d{7,8}|
7(?:
[0-57-9]\\d?|
Expand Down Expand Up @@ -189,6 +189,17 @@
'domesticCarrierCodeFormattingRule' => '',
),
1 =>
array (
'pattern' => '(15\\d{3})(\\d{6})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '15[0568]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
2 =>
array (
'pattern' => '(1\\d{3})(\\d{7})',
'format' => '$1 $2',
Expand All @@ -199,7 +210,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
2 =>
3 =>
array (
'pattern' => '(\\d{2})(\\d{3,11})',
'format' => '$1 $2',
Expand All @@ -214,7 +225,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
3 =>
4 =>
array (
'pattern' => '(\\d{3})(\\d{3,11})',
'format' => '$1 $2',
Expand Down Expand Up @@ -242,7 +253,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
4 =>
5 =>
array (
'pattern' => '(\\d{4})(\\d{2,11})',
'format' => '$1 $2',
Expand Down Expand Up @@ -336,7 +347,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
5 =>
6 =>
array (
'pattern' => '(3\\d{4})(\\d{1,10})',
'format' => '$1 $2',
Expand All @@ -347,7 +358,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
6 =>
7 =>
array (
'pattern' => '(800)(\\d{7,12})',
'format' => '$1 $2',
Expand All @@ -358,7 +369,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
7 =>
8 =>
array (
'pattern' => '(177)(99)(\\d{7,8})',
'format' => '$1 $2 $3',
Expand All @@ -371,7 +382,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
8 =>
9 =>
array (
'pattern' => '(\\d{3})(\\d)(\\d{4,10})',
'format' => '$1 $2 $3',
Expand All @@ -395,7 +406,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
9 =>
10 =>
array (
'pattern' => '(1\\d{2})(\\d{5,11})',
'format' => '$1 $2',
Expand All @@ -406,7 +417,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
10 =>
11 =>
array (
'pattern' => '(18\\d{3})(\\d{6})',
'format' => '$1 $2',
Expand All @@ -419,7 +430,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
11 =>
12 =>
array (
'pattern' => '(18\\d{2})(\\d{7})',
'format' => '$1 $2',
Expand All @@ -430,7 +441,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
12 =>
13 =>
array (
'pattern' => '(18\\d)(\\d{8})',
'format' => '$1 $2',
Expand All @@ -441,7 +452,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
13 =>
14 =>
array (
'pattern' => '(700)(\\d{4})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -452,7 +463,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
14 =>
15 =>
array (
'pattern' => '(138)(\\d{4})',
'format' => '$1 $2',
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_DZ.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
)\\d{7}|
6(?:
[569]\\d|
7[0-4]
7[0-6]
)\\d{6}
',
'PossibleNumberPattern' => '\\d{9}',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/data/PhoneNumberMetadata_HN.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
)|
6(?:
[056]\\d|
34|
4[0-378]|
[78][0-8]|
9[01]
Expand Down
Loading

0 comments on commit 8e44ae1

Please sign in to comment.