Skip to content

Commit

Permalink
Upstream metadata changes from Google for v7.2.4
Browse files Browse the repository at this point in the history
Metadata changes:
 - Updated phone metadata for region code(s):
   BW, CA, CI, CK, GM, IN, NA, NG, PG, TD, TM
 - Updated short number metadata for region code(s): PT
 - New geocoding data for country calling code(s): 1825 (en)
 - Updated carrier data for country calling code(s):
   91 (en), 225 (en), 234 (en), 235 (en), 675 (en), 993 (en)
  • Loading branch information
giggsey committed Jan 28, 2016
1 parent a702265 commit 0c9608d
Show file tree
Hide file tree
Showing 21 changed files with 639 additions and 595 deletions.
2 changes: 1 addition & 1 deletion METADATA-VERSION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# It can be a commit, branch or tag of the https://github.com/googlei18n/libphonenumber project
#
# For more information, look at the phing tasks in build.xml
libphonenumber-7.2.3
libphonenumber-7.2.4
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/225.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@
22575 => 'MTN',
22577 => 'Orange',
22578 => 'Orange',
22587 => 'Orange',
);
16 changes: 12 additions & 4 deletions src/libphonenumber/carrier/data/en/234.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,23 @@
2346987 => 'Starcomms',
2346988 => 'Starcomms',
2346989 => 'Starcomms',
2347021 => 'M-Tel',
2347022 => 'M-Tel',
234701 => 'Airtel',
2347020 => 'Smile',
2347021 => 'Ntel',
2347022 => 'Ntel',
2347023 => 'Zoom',
2347024 => 'Prestel',
2347025 => 'Visafone',
2347026 => 'Visafone',
2347027 => 'Multilinks',
2347028 => 'Starcomms',
2347029 => 'Starcomms',
234703 => 'MTN',
234704 => 'Visafone',
234705 => 'Glo',
234706 => 'MTN',
234707 => 'Glo',
234708 => 'Airtel',
234709 => 'Multilinks',
2347380 => 'Starcomms',
2347381 => 'Starcomms',
2347382 => 'Starcomms',
Expand All @@ -160,9 +165,11 @@
2347782 => 'Starcomms',
2347783 => 'Starcomms',
2347784 => 'Starcomms',
2348010 => 'Megatech',
2348011 => 'Megatech',
234802 => 'Airtel',
234803 => 'MTN',
234804 => 'M-Tel',
234804 => 'Ntel',
234805 => 'Glo',
234806 => 'MTN',
234807 => 'Glo',
Expand Down Expand Up @@ -234,6 +241,7 @@
234902 => 'Airtel',
234903 => 'MTN',
234905 => 'Glo',
234908 => 'Etisalat',
234909 => 'Etisalat',
234980 => 'Starcomms',
234987 => 'Starcomms',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/235.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@

return array (
2356 => 'Airtel',
23577 => 'Sotel',
2359 => 'Millicom',
);
3 changes: 3 additions & 0 deletions src/libphonenumber/carrier/data/en/675.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
67571 => 'Digicel',
67572 => 'Digicel',
67573 => 'Digicel',
67574 => 'Digicel',
67575 => 'bmobile',
67576 => 'bmobile',
675775 => 'Telikom',
67578 => 'Telikom',
67579 => 'Digicel',
);
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/91.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@
917308 => 'Reliance',
917309 => 'Idea',
917310 => 'Vodafone',
917319 => 'Airtel',
917350 => 'Idea',
917351 => 'Idea',
917352 => 'Idea',
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 @@ -5,6 +5,7 @@
*/

return array (
99361 => 'TM-Cell',
99365 => 'TM-Cell',
99366 => 'MTS (BARASH Communication)',
99367 => 'MTS (BARASH Communication)',
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 @@ -23,9 +23,8 @@
3(?:
1[0235-9]|
55|
6\\d|
7[01]|
9[0-57]
[69]\\d|
7[01]
)|
4(?:
6[03]|
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 @@ -57,6 +57,7 @@
8(?:
[06]7|
19|
25|
73
)|
90[25]
Expand Down Expand Up @@ -109,6 +110,7 @@
8(?:
[06]7|
19|
25|
73
)|
90[25]
Expand Down
5 changes: 3 additions & 2 deletions src/libphonenumber/data/PhoneNumberMetadata_CI.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[02-7]\\d{7}',
'NationalNumberPattern' => '[02-8]\\d{7}',
'PossibleNumberPattern' => '\\d{8}',
),
'fixedLine' =>
Expand Down Expand Up @@ -41,7 +41,8 @@
4\\d|
5[4-9]|
6[015-79]|
7[578]
7[578]|
87
)\\d{6}
',
'PossibleNumberPattern' => '\\d{8}',
Expand Down
9 changes: 2 additions & 7 deletions src/libphonenumber/data/PhoneNumberMetadata_CK.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '[2-57]\\d{4}',
'NationalNumberPattern' => '[2-8]\\d{4}',
'PossibleNumberPattern' => '\\d{5}',
),
'fixedLine' =>
Expand All @@ -25,12 +25,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '
(?:
5[0-68]|
7\\d
)\\d{3}
',
'NationalNumberPattern' => '[5-8]\\d{4}',
'PossibleNumberPattern' => '\\d{5}',
'ExampleNumber' => '71234',
),
Expand Down
7 changes: 1 addition & 6 deletions src/libphonenumber/data/PhoneNumberMetadata_GM.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '
(?:
2[0-6]|
[3679]\\d
)\\d{5}
',
'NationalNumberPattern' => '[23679]\\d{6}',
'PossibleNumberPattern' => '\\d{7}',
'ExampleNumber' => '3012345',
),
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 @@ -205,7 +205,7 @@
)|
3(?:
[058]\\d|
10|
1[09]|
7[3679]|
9[689]
)|
Expand Down Expand Up @@ -415,7 +415,7 @@
)|
3(?:
[058]|
10|
1[09]|
7[3679]|
9[689]
)|
Expand Down
6 changes: 5 additions & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_NA.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
[01378]|
2\\d
)|
4[01]|
4(?:
[024]|
10?|
3[15]?
)|
69|
7[014]
)|
Expand Down
51 changes: 30 additions & 21 deletions src/libphonenumber/data/PhoneNumberMetadata_NG.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,18 @@
98[07]\\d
)\\d{4}|
(?:
70(?:
[13-9]\\d|
2[1-9]
)|
70[1-689]\\d|
8(?:
0[2-9]|
1\\d
)\\d|
90[2359]\\d
0(?:
1[01]|
[2-9]\\d
)|
1(?:
[0-8]\\d|
9[01]
)
)|
90[23589]\\d
)\\d{6}
',
'PossibleNumberPattern' => '\\d{8,10}',
Expand Down Expand Up @@ -212,43 +215,49 @@
array (
0 =>
array (
'pattern' => '([129])(\\d{3})(\\d{3,4})',
'pattern' => '(\\d{3})(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '[129]',
0 => '
70|
8[01]|
90[23589]
',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
1 =>
array (
'pattern' => '(\\d{2})(\\d{3})(\\d{2,3})',
'pattern' => '(\\d)(\\d{3})(\\d{3,4})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '
[3-6]|
7(?:
[1-79]|
0[1-9]
)|
8[2-9]
[12]|
9(?:
0[3-9]|
[1-9]
)
',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
2 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3,4})',
'pattern' => '(\\d{2})(\\d{3})(\\d{2,3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '
70|
8[01]|
90[2359]
[3-6]|
7(?:
[1-79]|
0[1-9]
)|
8[2-9]
',
),
'nationalPrefixFormattingRule' => '0$1',
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_PG.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
20150|
68\\d{2}|
7(?:
[0-369]\\d|
[0-689]\\d|
75
)\\d{2}
)\\d{3}
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_TD.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
array (
'NationalNumberPattern' => '
(?:
6[02368]\\d|
6[023568]\\d|
77\\d|
9\\d{2}
)\\d{5}
Expand Down
2 changes: 1 addition & 1 deletion src/libphonenumber/data/PhoneNumberMetadata_TM.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
),
'mobile' =>
array (
'NationalNumberPattern' => '6[2-9]\\d{6}',
'NationalNumberPattern' => '6[1-9]\\d{6}',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '66123456',
),
Expand Down
36 changes: 25 additions & 11 deletions src/libphonenumber/data/ShortNumberMetadata_PT.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,29 @@
return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '1\\d{2}',
'PossibleNumberPattern' => '\\d{3}',
'NationalNumberPattern' => '1\\d{2,5}',
'PossibleNumberPattern' => '\\d{3,6}',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '1\\d{2}',
'PossibleNumberPattern' => '\\d{3}',
'NationalNumberPattern' => '1\\d{2,5}',
'PossibleNumberPattern' => '\\d{3,6}',
),
'mobile' =>
array (
'NationalNumberPattern' => '1\\d{2}',
'PossibleNumberPattern' => '\\d{3}',
'NationalNumberPattern' => '1\\d{2,5}',
'PossibleNumberPattern' => '\\d{3,6}',
),
'tollFree' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'NationalNumberPattern' => '
116(?:
000|
111
)
',
'PossibleNumberPattern' => '\\d{6}',
'ExampleNumber' => '116000',
),
'premiumRate' =>
array (
Expand Down Expand Up @@ -59,7 +65,7 @@
'emergency' =>
array (
'NationalNumberPattern' => '11[25]',
'PossibleNumberPattern' => '\\d{3}',
'PossibleNumberPattern' => '\\d{3,6}',
'ExampleNumber' => '112',
),
'voicemail' =>
Expand All @@ -69,8 +75,16 @@
),
'shortCode' =>
array (
'NationalNumberPattern' => '11[25-8]',
'PossibleNumberPattern' => '\\d{3}',
'NationalNumberPattern' => '
11(?:
[2578]|
6(?:
000|
111
)
)
',
'PossibleNumberPattern' => '\\d{3,6}',
'ExampleNumber' => '112',
),
'standardRate' =>
Expand Down
Loading

0 comments on commit 0c9608d

Please sign in to comment.