Skip to content

Commit

Permalink
Merge pull request #39 from giggsey/google-6.2.2
Browse files Browse the repository at this point in the history
Metadata updates from Google v6.2.2 (r685)
  • Loading branch information
giggsey committed Aug 22, 2014
2 parents 61a4145 + e6cab5e commit 5ef9415
Show file tree
Hide file tree
Showing 15 changed files with 102 additions and 51 deletions.
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/252.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
25268 => 'Nationlink',
25269 => 'Nationlink',
25279 => 'Somtel',
252907 => 'Golis Telecom',
);
/* EOF */
43 changes: 42 additions & 1 deletion src/libphonenumber/carrier/data/en/27.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,54 @@
*/

return array (
27603 => 'MTN',
27604 => 'MTN',
27605 => 'MTN',
27606 => 'Vodacom',
27607 => 'Vodacom',
27608 => 'Vodacom',
27609 => 'Vodacom',
27610 => 'Cell C',
27611 => 'Cell C',
27612 => 'Cell C',
27613 => 'Cell C',
27614 => 'Telkom Mobile',
27615 => 'Cell C',
27618 => 'Cell C',
27619 => 'Cell C',
27620 => 'Cell C',
27621 => 'Cell C',
27622 => 'Cell C',
27623 => 'Cell C',
27624 => 'Cell C',
27710 => 'MTN',
27711 => 'Vodacom',
27712 => 'Vodacom',
27713 => 'Vodacom',
27714 => 'Vodacom',
27715 => 'Vodacom',
27716 => 'Vodacom',
27717 => 'MTN',
27718 => 'MTN',
27719 => 'MTN',
2772 => 'Vodacom',
2773 => 'MTN',
2774 => 'Cell C',
27741 => 'Virgin Mobile',
2776 => 'Vodacom',
2778 => 'MTN',
2781 => 'Telkom Mobile / 8.ta / Telekom SA',
2779 => 'Vodacom',
27810 => 'MTN',
27811 => 'Telkom Mobile',
27812 => 'Telkom Mobile',
27813 => 'Telkom Mobile',
27814 => 'Telkom Mobile',
27815 => 'Telkom Mobile',
27816 => 'WBS Mobile',
27817 => 'Telkom Mobile',
27818 => 'Vodacom',
2782 => 'Vodacom',
2783 => 'MTN',
2784 => 'Cell C',
);
/* EOF */
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/57.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
57319 => 'Virgin Mobile',
57320 => 'Claro',
57321 => 'Claro',
57322 => 'Claro',
57350 => 'Avantel',
57351 => 'Avantel',
);
Expand Down
2 changes: 2 additions & 0 deletions src/libphonenumber/carrier/data/en/677.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/

return array (
67770 => 'Satsol',
67771 => 'Satsol',
67774 => 'Solomon Telekom',
67775 => 'Solomon Telekom',
67776 => 'Solomon Telekom',
Expand Down
7 changes: 7 additions & 0 deletions src/libphonenumber/carrier/data/en/91.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@
917069 => 'Vodafone',
917070 => 'AirTel',
917071 => 'Dishnet Wireless',
917072 => 'Vodafone',
917073 => 'Bharti Hexacom',
917074 => 'Idea',
917075 => 'Telewings',
917076 => 'Vodafone',
917077 => 'AirTel',
917078 => 'Telewings',
917200 => 'TATA DOCOMO',
917204 => 'TATA DOCOMO',
917205 => 'TATA DOCOMO',
Expand Down
13 changes: 11 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_BN.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,22 @@
),
'fixedLine' =>
array (
'NationalNumberPattern' => '[2-5]\\d{6}',
'NationalNumberPattern' => '
2(?:
[013-9]\\d|
2[0-7]
)\\d{4}|
[3-5]\\d{6}
',
'PossibleNumberPattern' => '\\d{7}',
'ExampleNumber' => '2345678',
),
'mobile' =>
array (
'NationalNumberPattern' => '[78]\\d{6}',
'NationalNumberPattern' => '
22[89]\\d{4}|
[78]\\d{6}
',
'PossibleNumberPattern' => '\\d{7}',
'ExampleNumber' => '7123456',
),
Expand Down
53 changes: 15 additions & 38 deletions src/libphonenumber/data/PhoneNumberMetadata_CL.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
123
)\\d{7,8}
',
'PossibleNumberPattern' => '\\d{6,11}',
'PossibleNumberPattern' => '\\d{7,11}',
),
'fixedLine' =>
array (
Expand All @@ -28,11 +28,10 @@
3[2-5]|
[47][1-35]|
5[1-3578]|
6[1347]
)\\d{7}|
65\\d{6,7}
6[13-57]
)\\d{7}
',
'PossibleNumberPattern' => '\\d{6,9}',
'PossibleNumberPattern' => '\\d{7,9}',
'ExampleNumber' => '221234567',
),
'mobile' =>
Expand Down Expand Up @@ -148,17 +147,6 @@
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
),
2 =>
array (
'pattern' => '(\\d{2})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '65',
),
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
),
3 =>
array (
'pattern' => '(9)([5-9]\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -169,7 +157,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
4 =>
3 =>
array (
'pattern' => '(44)(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -180,7 +168,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
5 =>
4 =>
array (
'pattern' => '([68]00)(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
Expand All @@ -194,7 +182,7 @@
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
6 =>
5 =>
array (
'pattern' => '(600)(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3 $4',
Expand All @@ -205,7 +193,7 @@
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
7 =>
6 =>
array (
'pattern' => '(1230)(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -216,7 +204,7 @@
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
8 =>
7 =>
array (
'pattern' => '(\\d{5})(\\d{4})',
'format' => '$1 $2',
Expand All @@ -227,7 +215,7 @@
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
),
9 =>
8 =>
array (
'pattern' => '(\\d{4,5})',
'format' => '$1',
Expand Down Expand Up @@ -268,17 +256,6 @@
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
),
2 =>
array (
'pattern' => '(\\d{2})(\\d{2})(\\d{4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '65',
),
'nationalPrefixFormattingRule' => '($1)',
'domesticCarrierCodeFormattingRule' => '$CC ($1)',
),
3 =>
array (
'pattern' => '(9)([5-9]\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -289,7 +266,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
4 =>
3 =>
array (
'pattern' => '(44)(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -300,7 +277,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
5 =>
4 =>
array (
'pattern' => '([68]00)(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
Expand All @@ -314,7 +291,7 @@
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
6 =>
5 =>
array (
'pattern' => '(600)(\\d{3})(\\d{2})(\\d{3})',
'format' => '$1 $2 $3 $4',
Expand All @@ -325,7 +302,7 @@
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
7 =>
6 =>
array (
'pattern' => '(1230)(\\d{3})(\\d{4})',
'format' => '$1 $2 $3',
Expand All @@ -336,7 +313,7 @@
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
),
8 =>
7 =>
array (
'pattern' => '(\\d{5})(\\d{4})',
'format' => '$1 $2',
Expand Down
3 changes: 2 additions & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_CO.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
3(?:
0[0-5]|
1\\d|
[25][01]
2[0-2]|
5[01]
)\\d{7}
',
'PossibleNumberPattern' => '\\d{10}',
Expand Down
4 changes: 2 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_DK.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
(?:
[2-7]\\d|
8[126-9]|
9[126-9]
9[1-36-9]
)\\d{6}
',
'PossibleNumberPattern' => '\\d{8}',
Expand All @@ -29,7 +29,7 @@
(?:
[2-7]\\d|
8[126-9]|
9[126-9]
9[1-36-9]
)\\d{6}
',
'PossibleNumberPattern' => '\\d{8}',
Expand Down
4 changes: 2 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_IN.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
0(?:
2[2-9]|
[3-6]\\d|
7[01]
7[0-8]
)|
2(?:
0[04-9]|
Expand Down Expand Up @@ -415,7 +415,7 @@
0(?:
2[2-9]|
[3-6]|
7[01]
7[0-8]
)|
2(?:
0[04-9]|
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_SB.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
'NationalNumberPattern' => '
48\\d{3}|
7(?:
[46-8]\\d|
[0146-8]\\d|
5[025-9]|
90
)\\d{4}|
Expand Down
14 changes: 13 additions & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_SO.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
8
)|
6[137-9]?\\d{2}|
7[1-9]\\d
7[1-9]\\d|
907\\d
)\\d{5}
',
'PossibleNumberPattern' => '\\d{7,9}',
Expand Down Expand Up @@ -168,6 +169,17 @@
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
4 =>
array (
'pattern' => '(90\\d)(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '90',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
),
'intlNumberFormat' =>
array (
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/ShortNumberMetadata_FR.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
'premiumRate' =>
array (
'NationalNumberPattern' => '
118(
118(?:
[0-68]\\d{2}|
7(?:
0\\d|
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/ShortNumberMetadata_SA.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
)
)
)|
9(
9(?:
0[24-79]|
11|
3[379]|
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/ShortNumberMetadata_US.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
33669|
611
',
'PossibleNumberPattern' => '\\d{5}',
'PossibleNumberPattern' => '\\d{3,5}',
'ExampleNumber' => '33669',
),
'noInternationalDialling' =>
Expand Down

0 comments on commit 5ef9415

Please sign in to comment.