Skip to content

Commit

Permalink
Upstream changes from google/libphonenumber@d480f21
Browse files Browse the repository at this point in the history
* Metadata changes:
 - Updated phone metadata for region code(s): CA, HU, IL, JO, LU, SG, SL, US
 - Updated short number metadata for region code(s): BI
 - New geocoding data for country calling code(s):
   1220 (en), 1628 (en), 1629 (en)
 - Updated carrier data for country calling code(s):
   65 (en), 232 (en), 972 (en)
  • Loading branch information
giggsey committed Mar 25, 2015
1 parent 1d28ae5 commit f992e78
Show file tree
Hide file tree
Showing 16 changed files with 1,033 additions and 793 deletions.
8 changes: 8 additions & 0 deletions src/libphonenumber/carrier/data/en/232.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
*/

return array (
23221 => 'Sierratel',
23225 => 'Sierratel',
23230 => 'Africell',
23233 => 'Comium',
23234 => 'Comium',
23240 => 'Datatel/Cellcom',
23244 => 'Intergroup',
23250 => 'Datatel/Cellcom',
23255 => 'Ambitel',
23276 => 'Airtel',
23277 => 'Africell',
23278 => 'Airtel',
23279 => 'Airtel',
23288 => 'Africell',
23299 => 'Africell',
);
188 changes: 188 additions & 0 deletions src/libphonenumber/carrier/data/en/65.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,194 @@
658538 => 'StarHub',
658539 => 'M1',
65854 => 'M1',
658559 => 'StarHub',
65856 => 'StarHub',
658570 => 'StarHub',
658571 => 'StarHub',
658572 => 'StarHub',
658592 => 'StarHub',
658593 => 'StarHub',
658594 => 'StarHub',
658600 => 'M1',
658601 => 'StarHub',
658602 => 'StarHub',
658603 => 'StarHub',
658604 => 'StarHub',
658605 => 'StarHub',
658606 => 'StarHub',
658607 => 'StarHub',
658608 => 'StarHub',
658609 => 'StarHub',
658610 => 'SingTel',
658611 => 'M1',
658612 => 'M1',
658613 => 'M1',
658614 => 'M1',
658615 => 'SingTel',
658616 => 'SingTel',
658617 => 'SingTel',
658618 => 'SingTel',
658619 => 'SingTel',
658620 => 'SingTel',
658621 => 'SingTel',
658622 => 'SingTel',
658623 => 'M1',
658624 => 'M1',
658625 => 'M1',
658626 => 'M1',
658627 => 'M1',
658628 => 'M1',
658629 => 'M1',
658630 => 'M1',
658631 => 'SingTel',
658633 => 'SingTel',
658634 => 'SingTel',
658635 => 'SingTel',
658636 => 'SingTel',
658637 => 'SingTel',
658638 => 'SingTel',
658639 => 'SingTel',
658640 => 'SingTel',
658641 => 'M1',
658642 => 'M1',
658643 => 'M1',
658644 => 'M1',
658645 => 'M1',
658646 => 'SingTel',
658647 => 'SingTel',
658648 => 'SingTel',
658649 => 'SingTel',
658650 => 'SingTel',
658651 => 'SingTel',
658652 => 'SingTel',
658653 => 'SingTel',
658654 => 'SingTel',
658655 => 'SingTel',
658656 => 'SingTel',
658657 => 'SingTel',
658658 => 'StarHub',
658659 => 'StarHub',
658660 => 'StarHub',
658661 => 'StarHub',
658662 => 'SingTel',
658663 => 'SingTel',
658664 => 'SingTel',
658665 => 'SingTel',
658666 => 'M1',
658667 => 'SingTel',
658668 => 'M1',
658669 => 'SingTel',
658670 => 'SingTel',
658671 => 'SingTel',
658672 => 'SingTel',
658673 => 'SingTel',
658674 => 'SingTel',
658675 => 'SingTel',
658676 => 'SingTel',
658677 => 'SingTel',
658678 => 'SingTel',
658679 => 'SingTel',
658680 => 'StarHub',
658681 => 'StarHub',
658682 => 'StarHub',
658683 => 'M1',
658684 => 'M1',
658685 => 'M1',
658686 => 'M1',
658687 => 'M1',
658688 => 'M1',
658689 => 'StarHub',
658690 => 'StarHub',
658691 => 'M1',
658692 => 'M1',
658693 => 'M1',
658694 => 'SingTel',
658695 => 'SingTel',
658696 => 'SingTel',
658697 => 'SingTel',
658698 => 'SingTel',
658699 => 'M1',
658700 => 'StarHub',
658701 => 'SingTel',
658702 => 'SingTel',
658703 => 'SingTel',
658704 => 'SingTel',
658705 => 'SingTel',
658706 => 'SingTel',
658707 => 'SingTel',
658708 => 'SingTel',
658709 => 'SingTel',
658710 => 'SingTel',
658711 => 'M1',
658712 => 'SingTel',
658713 => 'SingTel',
658714 => 'M1',
658715 => 'M1',
658716 => 'M1',
658717 => 'M1',
658718 => 'M1',
658719 => 'M1',
658720 => 'M1',
658721 => 'M1',
658722 => 'StarHub',
658723 => 'M1',
658724 => 'StarHub',
658725 => 'StarHub',
658726 => 'StarHub',
658727 => 'StarHub',
658728 => 'StarHub',
658729 => 'StarHub',
658730 => 'SingTel',
658731 => 'SingTel',
658732 => 'SingTel',
658733 => 'M1',
658734 => 'SingTel',
658735 => 'SingTel',
658736 => 'SingTel',
658738 => 'M1',
658765 => 'StarHub',
658766 => 'M1',
658777 => 'M1',
658778 => 'M1',
658781 => 'M1',
658782 => 'M1',
658783 => 'M1',
658786 => 'M1',
658787 => 'M1',
658788 => 'M1',
658789 => 'StarHub',
658790 => 'StarHub',
658797 => 'M1',
658798 => 'SingTel',
658799 => 'SingTel',
658800 => 'M1',
658809 => 'StarHub',
658811 => 'M1',
658812 => 'M1',
658813 => 'M1',
658816 => 'M1',
658818 => 'M1',
658820 => 'M1',
658821 => 'M1',
658822 => 'M1',
658823 => 'M1',
658826 => 'M1',
658828 => 'M1',
658829 => 'StarHub',
658830 => 'StarHub',
658831 => 'StarHub',
658833 => 'M1',
658838 => 'M1',
658844 => 'M1',
658848 => 'M1',
658855 => 'M1',
658858 => 'M1',
658862 => 'M1',
658866 => 'M1',
658868 => 'M1',
658869 => 'SingTel',
658876 => 'SingTel',
658877 => 'M1',
659001 => 'StarHub',
659002 => 'StarHub',
659003 => 'StarHub',
Expand Down
2 changes: 2 additions & 0 deletions src/libphonenumber/carrier/data/en/972.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
9725523 => 'Home Cellular',
9725566 => 'Rami Levy',
9725567 => 'Rami Levy',
9725570 => 'Cellact',
9725571 => 'Cellact',
9725588 => 'Alon',
9725589 => 'Alon',
9725597 => 'Azi Communications',
Expand Down
2 changes: 2 additions & 0 deletions src/libphonenumber/data/PhoneNumberMetadata_CA.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
5(?:
06|
1[49]|
48|
79|
8[17]
)|
Expand Down Expand Up @@ -88,6 +89,7 @@
5(?:
06|
1[49]|
48|
79|
8[17]
)|
Expand Down
7 changes: 5 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_HU.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@
1\\d|
[2-9]
)|
3[2-7]|
3(?:
[2-7]|
8\\d
)|
4[24-9]|
5[2-79]|
6[23689]|
Expand All @@ -39,7 +42,7 @@
array (
'NationalNumberPattern' => '
(?:
[27]0|
[257]0|
3[01]
)\\d{7}
',
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_IL.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
4[45]|
5[5689]|
6[67]|
7[78]|
7[0178]|
8[89]|
9[7-9]
)|
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_JO.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
55|
7[25-9]|
8[05-9]|
9[015-9]
9[0-25-9]
)\\d{6}
',
'PossibleNumberPattern' => '\\d{9}',
Expand Down
13 changes: 9 additions & 4 deletions src/libphonenumber/data/PhoneNumberMetadata_LU.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
),
'premiumRate' =>
array (
'NationalNumberPattern' => '90[01]\\d{5}',
'NationalNumberPattern' => '90[015]\\d{5}',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '90012345',
),
Expand Down Expand Up @@ -232,9 +232,13 @@
)|
[3-5]|
7[1-9]|
[89](?:
8(?:
[1-9]|
0[2-9]
)|
9(?:
[1-9]|
0[2-46-9]
)
',
),
Expand All @@ -248,8 +252,9 @@
'leadingDigitsPatterns' =>
array (
0 => '
[89]0[01]|
70
70|
80[01]|
90[015]
',
),
'nationalPrefixFormattingRule' => '',
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_SG.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
array (
'NationalNumberPattern' => '
(?:
8[1-7]|
8[1-8]|
9[0-8]
)\\d{6}
',
Expand Down
5 changes: 3 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_SL.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[2-578]\\d{7}',
'NationalNumberPattern' => '[2-57-9]\\d{7}',
'PossibleNumberPattern' => '\\d{6,8}',
),
'fixedLine' =>
Expand All @@ -26,7 +26,8 @@
4[04]|
5[05]|
7[6-9]|
88
88|
99
)\\d{6}
',
'PossibleNumberPattern' => '\\d{6,8}',
Expand Down
8 changes: 4 additions & 4 deletions src/libphonenumber/data/PhoneNumberMetadata_US.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
2(?:
0[1-35-9]|
1[02-9]|
2[4589]|
2[04589]|
3[149]|
4[08]|
5[1-46]|
Expand Down Expand Up @@ -61,7 +61,7 @@
6(?:
0[1-35-9]|
1[024-9]|
2[036]|
2[03689]|
3[016]|
4[16]|
5[017]|
Expand Down Expand Up @@ -112,7 +112,7 @@
2(?:
0[1-35-9]|
1[02-9]|
2[4589]|
2[04589]|
3[149]|
4[08]|
5[1-46]|
Expand Down Expand Up @@ -155,7 +155,7 @@
6(?:
0[1-35-9]|
1[024-9]|
2[036]|
2[03689]|
3[016]|
4[16]|
5[017]|
Expand Down
Loading

0 comments on commit f992e78

Please sign in to comment.