Skip to content

Commit

Permalink
Upstream changes from Google (r708)
Browse files Browse the repository at this point in the history
* Metadata changes:
 - Updated phone metadata for region code(s):
   AC, AU, CR, DE, IL, MR, NO, SA, SR, UG
 - Updated short number metadata for region code(s): CR
 - Updated carrier data for country calling code(s):
   61 (en), 256 (en), 506 (en), 597 (en), 966 (en), 972 (en)
  • Loading branch information
giggsey committed Oct 14, 2014
1 parent bd51310 commit 9dd4077
Show file tree
Hide file tree
Showing 17 changed files with 75 additions and 37 deletions.
2 changes: 2 additions & 0 deletions src/libphonenumber/carrier/data/en/256.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
*/

return array (
2562030 => 'Afrimax',
25670 => 'Warid',
25671 => 'UTL',
256720 => 'Smile',
256723 => 'Afrimax',
256730 => 'K2',
25674 => 'Sure Telecom',
25675 => 'Airtel',
Expand Down
2 changes: 2 additions & 0 deletions src/libphonenumber/carrier/data/en/506.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/

return array (
506500 => 'OMV',
506501 => 'OMV',
506570 => 'OMV',
506571 => 'OMV',
506572 => 'OMV',
Expand Down
15 changes: 7 additions & 8 deletions src/libphonenumber/carrier/data/en/597.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
return array (
59771 => 'Digicel',
59772 => 'Digicel',
59773 => 'Uniqa',
597740 => 'Digicel',
597741 => 'Digicel',
597742 => 'Digicel',
597743 => 'Digicel',
597744 => 'Digicel',
597745 => 'Digicel',
59774 => 'Digicel',
59775 => 'Telesur',
59777 => 'Telesur',
59776 => 'Digicel',
597770 => 'Telesur',
597771 => 'Telesur',
597772 => 'Telesur',
597773 => 'Telesur',
597774 => 'Telesur',
59781 => 'Digicel',
59782 => 'Digicel',
59783 => 'Uniqa',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/61.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
61487 => 'Telstra',
61488 => 'Telstra',
61490 => 'Telstra',
61491 => 'Telstra',
61497 => 'Telstra',
61498 => 'Telstra',
61499 => 'Telstra',
Expand Down
6 changes: 6 additions & 0 deletions src/libphonenumber/carrier/data/en/966.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@
96654 => 'Mobily',
96655 => 'Al Jawal (STC)',
96656 => 'Mobily',
966570 => 'Virgin',
966571 => 'Virgin',
966572 => 'Virgin',
966576 => 'Lebara',
966577 => 'Lebara',
966578 => 'Lebara',
96658 => 'Zain',
96659 => 'Zain',
);
3 changes: 3 additions & 0 deletions src/libphonenumber/carrier/data/en/972.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
9725567 => 'Rami Levy',
9725588 => 'Alon',
9725589 => 'Alon',
9725597 => 'Azi Communications',
9725598 => 'Azi Communications',
9725599 => 'Azi Communications',
97256 => 'Wataniya',
97257 => 'Mirs - Hot Mobile',
97258 => 'Golan Telecom',
Expand Down
9 changes: 5 additions & 4 deletions src/libphonenumber/data/PhoneNumberMetadata_AC.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[2-467]\\d{3}',
'PossibleNumberPattern' => '\\d{4}',
'NationalNumberPattern' => '[2-7]\\d{3,5}',
'PossibleNumberPattern' => '\\d{4,6}',
),
'fixedLine' =>
array (
Expand All @@ -25,8 +25,9 @@
),
'mobile' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'NationalNumberPattern' => '5\\d{5}',
'PossibleNumberPattern' => '\\d{6}',
'ExampleNumber' => '501234',
),
'tollFree' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_AU.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
6[6-9]|
7[0457-9]|
8[17-9]|
9[07-9]
9[017-9]
)\\d{6}
',
'PossibleNumberPattern' => '\\d{9}',
Expand Down
13 changes: 10 additions & 3 deletions src/libphonenumber/data/PhoneNumberMetadata_CR.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
'mobile' =>
array (
'NationalNumberPattern' => '
57[0-3]\\d{5}|
5(?:
0[01]|
7[0-3]
)\\d{5}|
6(?:
[0-2]\\d|
30
Expand Down Expand Up @@ -61,10 +64,14 @@
0(?:
0[01]\\d{4}|
10[0-3]\\d{3}|
2900\\d{2}|
2(?:
00\\d{3}|
900\\d{2}
)|
3[01]\\d{4}|
40\\d{4}|
5\\d{5}|
60\\d{4}|
70[01]\\d{3}|
8[0-2]\\d{4}
)|
Expand Down Expand Up @@ -121,7 +128,7 @@
'id' => 'CR',
'countryCode' => 506,
'internationalPrefix' => '00',
'nationalPrefixForParsing' => '(19(?:0[01468]|19|20|66|77))',
'nationalPrefixForParsing' => '(19(?:0[012468]|1[09]|20|66|77|99))',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_DE.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)|
5\\d{1,2}|
6[1-8]\\d?
)\\d{2,7}
)\\d{2,8}
)
',
'PossibleNumberPattern' => '\\d{2,15}',
Expand Down
3 changes: 2 additions & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_IL.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
5[5689]|
6[67]|
7[78]|
8[89]
8[89]|
9[7-9]
)|
6[2-9]\\d
)\\d{5}
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_MR.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
7[1-3]
)|
4(?:
4\\d|
[49]\\d|
6[0457-9]|
7[4-9]|
8[01346-8]
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_NO.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
)\\d{6}
',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '41234567',
'ExampleNumber' => '40612345',
),
'tollFree' =>
array (
Expand Down
9 changes: 6 additions & 3 deletions src/libphonenumber/data/PhoneNumberMetadata_SA.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@
array (
'NationalNumberPattern' => '
(?:
5[013-689]|
811
)\\d{7}
5(?:
[013-689]\\d|
7[0-26-8]
)|
811\\d
)\\d{6}
',
'PossibleNumberPattern' => '\\d{9,10}',
'ExampleNumber' => '512345678',
Expand Down
23 changes: 14 additions & 9 deletions src/libphonenumber/data/PhoneNumberMetadata_SR.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@
array (
'NationalNumberPattern' => '
(?:
7(?:
[1-357]\\d|
4[0-5]
)|
8[1-9]\\d
)\\d{4}
7[124-7]|
8[1-9]
)\\d{5}
',
'PossibleNumberPattern' => '\\d{7}',
'ExampleNumber' => '7412345',
Expand All @@ -61,8 +58,13 @@
),
'voip' =>
array (
'NationalNumberPattern' => '56\\d{4}',
'PossibleNumberPattern' => '\\d{6}',
'NationalNumberPattern' => '
5(?:
6\\d{4}|
90[0-4]\\d{3}
)
',
'PossibleNumberPattern' => '\\d{6,7}',
'ExampleNumber' => '561234',
),
'pager' =>
Expand Down Expand Up @@ -142,7 +144,10 @@
'format' => '$1-$2',
'leadingDigitsPatterns' =>
array (
0 => '[6-8]',
0 => '
59|
[6-8]
',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
4 changes: 3 additions & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_UG.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,12 @@
'mobile' =>
array (
'NationalNumberPattern' => '
2030\\d{5}|
7(?:
0[0-7]|
[15789]\\d|
[23]0|
2[03]|
30|
[46][0-4]
)\\d{6}
',
Expand Down
14 changes: 10 additions & 4 deletions src/libphonenumber/data/ShortNumberMetadata_CR.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,18 @@
34|
55
)|
333|
3(?:
21|
33
)|
4(?:
00|
1[56]
0[06]|
1[4-6]
)|
5(?:
15|
5[15]
)|
515|
693|
7(?:
00|
Expand Down

0 comments on commit 9dd4077

Please sign in to comment.