Skip to content

Commit

Permalink
Upstream metadata changes from Google for v7.3.2
Browse files Browse the repository at this point in the history
Metadata changes:
 - Updated phone metadata for region code(s):
   AU, BR, ET, IN, KH, ML, NO, SB, TJ, US
 - Updated short number metadata for region code(s): CA, ML, US
 - New geocoding data for country calling code(s): 223 (en)
 - Updated geocoding data for country calling code(s):
   27 (en), 55 (en, pt), 1 (en)
 - Updated carrier data for country calling code(s):
   61 (en), 91 (en), 223 (en), 251 (en), 677 (en), 992 (en)
  • Loading branch information
giggsey committed May 4, 2016
1 parent bc982d7 commit 0681962
Show file tree
Hide file tree
Showing 29 changed files with 16,632 additions and 862 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.3.1
libphonenumber-7.3.2
2 changes: 1 addition & 1 deletion Tests/libphonenumber/Tests/core/ShortNumberInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ public function testOverlappingNANPANumber()
);
$this->assertFalse($this->shortInfo->isEmergencyNumber("211", RegionCode::CA));
$this->assertEquals(
ShortNumberCost::UNKNOWN_COST,
ShortNumberCost::TOLL_FREE,
$this->shortInfo->getExpectedCostForRegion($this->parse("211", RegionCode::CA), RegionCode::CA)
);
}
Expand Down
16 changes: 16 additions & 0 deletions src/libphonenumber/carrier/data/en/223.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,21 @@
*/

return array (
2232079 => 'Sotelma',
22321 => 'Sotelma',
2236 => 'Sotelma',
2237 => 'Orange',
22382 => 'Orange',
22383 => 'Orange',
22389 => 'Sotelma',
22390 => 'Orange',
22391 => 'Orange',
22392 => 'Orange',
22393 => 'Orange',
22394 => 'Orange',
22395 => 'Sotelma',
22396 => 'Sotelma',
22397 => 'Sotelma',
22398 => 'Sotelma',
22399 => 'Sotelma',
);
2 changes: 1 addition & 1 deletion src/libphonenumber/carrier/data/en/251.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@
25193 => 'Ethio Telecom',
25194 => 'Ethio Telecom',
25195 => 'Ethio Telecom',
251966 => 'Ethio Telecom',
25196 => 'Ethio Telecom',
);
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 @@ -45,6 +45,7 @@
61433 => 'Vodafone',
61434 => 'Optus',
61435 => 'Optus',
61436 => 'Telstra',
61437 => 'Telstra',
61438 => 'Telstra',
61439 => 'Telstra',
Expand Down
1 change: 1 addition & 0 deletions src/libphonenumber/carrier/data/en/677.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
67786 => 'BMobile',
67787 => 'BMobile',
67788 => 'BMobile',
67789 => 'BMobile',
67791 => 'Satsol',
67792 => 'Satsol',
677930 => 'Satsol',
Expand Down
21 changes: 20 additions & 1 deletion src/libphonenumber/carrier/data/en/91.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,18 @@
917308 => 'Reliance',
917309 => 'Idea',
917310 => 'Vodafone',
9173175 => 'Airtel',
9173176 => 'Airtel',
9173177 => 'Airtel',
9173178 => 'Airtel',
917318 => 'Airtel',
917319 => 'Airtel',
9173200 => 'Airtel',
9173208 => 'Airtel',
9173209 => 'Airtel',
9173210 => 'Airtel',
9173218 => 'Airtel',
9173219 => 'Airtel',
9173258 => 'Airtel',
9173259 => 'Airtel',
9173260 => 'Airtel',
Expand Down Expand Up @@ -359,6 +370,8 @@
917408 => 'Vodafone',
917409 => 'Vodafone',
917411 => 'Tata Docomo',
9174140 => 'Vodafone',
9174148 => 'Vodafone',
917415 => 'Tata Docomo',
917416 => 'Tata Docomo',
917417 => 'Tata Docomo',
Expand Down Expand Up @@ -739,6 +752,12 @@
917897 => 'AirTel',
917898 => 'AirTel',
917899 => 'Airtel',
917994 => 'Airtel',
917995 => 'Airtel',
917996 => 'Idea',
917997 => 'Idea',
917998 => 'Dishnet',
917999 => 'Videocon',
9180000 => 'Reliance',
918000 => 'Reliance',
9180010 => 'Vodafone',
Expand Down Expand Up @@ -1787,7 +1806,7 @@
919104 => 'Telewings',
919105 => 'Loop Mobile',
919106 => 'Tata Docomo',
919107 => 'Loop Mobile',
919107 => 'Dishnet',
919108 => 'Airtel',
919109 => 'Loop Mobile',
919110 => 'Loop Mobile',
Expand Down
3 changes: 3 additions & 0 deletions src/libphonenumber/carrier/data/en/992.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
*/

return array (
992411 => 'Megafon',
992418 => 'Megafon',
992501 => 'Tcell',
992502 => 'Tcell',
99288 => 'Megafon',
99290 => 'Megafon',
992917 => 'Tacom',
992918 => 'Babilon-M',
Expand Down
30 changes: 18 additions & 12 deletions src/libphonenumber/data/PhoneNumberMetadata_AU.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
'NationalNumberPattern' => '
[237]\\d{8}|
8(?:
[68]\\d{3}|
7[0-69]\\d{2}|
[6-8]\\d{3}|
9(?:
[02-9]\\d{2}|
1(?:
Expand All @@ -38,8 +37,7 @@
71
)\\d{5}|
4(?:
[0-2]\\d|
3[0-57-9]|
[0-3]\\d|
4[47-9]|
5[0-25-9]|
6[6-9]|
Expand All @@ -64,16 +62,23 @@
),
'premiumRate' =>
array (
'NationalNumberPattern' => '190[0126]\\d{6}',
'PossibleNumberPattern' => '\\d{10}',
'NationalNumberPattern' => '
19(?:
0[0126]\\d|
[679]
)\\d{5}
',
'PossibleNumberPattern' => '\\d{8,10}',
'ExampleNumber' => '1900123456',
),
'sharedCost' =>
array (
'NationalNumberPattern' => '
13(?:
00\\d{2}
)?\\d{4}
00\\d{3}|
45[0-4]|
\\d
)\\d{3}
',
'PossibleNumberPattern' => '\\d{6,10}',
'ExampleNumber' => '1300123456',
Expand Down Expand Up @@ -131,9 +136,10 @@
'NationalNumberPattern' => '
1(?:
3(?:
\\d{4}|
00\\d{6}
)|
00\\d{3}|
45[0-4]|
\\d
)\\d{3}|
80(?:
0\\d{6}|
2\\d{3}
Expand Down Expand Up @@ -239,7 +245,7 @@
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
0 => '19[67]',
0 => '19[679]',
),
'nationalPrefixFormattingRule' => '$1',
'domesticCarrierCodeFormattingRule' => '',
Expand Down
41 changes: 24 additions & 17 deletions src/libphonenumber/data/PhoneNumberMetadata_BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,8 @@
'fixedLine' =>
array (
'NationalNumberPattern' => '
1[1-9][2-5]\\d{7}|
(?:
[4689][1-9]|
[14689][1-9]|
2[12478]|
3[1-578]|
5[1-5]|
Expand All @@ -39,11 +38,14 @@
(?:
2[12478]|
3[1-578]|
7[13-579]|
[89][1-9]
)9?[6-9]\\d{7}|
[689][1-9]|
7[13-579]
)(?:
[6-8]|
9\\d?
)\\d{7}|
(?:
[46][1-9]|
4[1-9]|
5[1-5]
)[6-9]\\d{7}
',
Expand All @@ -58,22 +60,27 @@
),
'premiumRate' =>
array (
'NationalNumberPattern' => '[359]00\\d{6,7}',
'NationalNumberPattern' => '
(?:
300|
[59]00\\d?
)\\d{6}
',
'PossibleNumberPattern' => '\\d{8,11}',
'ExampleNumber' => '300123456',
),
'sharedCost' =>
array (
'NationalNumberPattern' => '
(?:
300\\d|
300\\d(?:\\d{2})?|
40(?:
0\\d|
20
)
)\\d{4}
',
'PossibleNumberPattern' => '\\d{8}',
'PossibleNumberPattern' => '\\d{8,10}',
'ExampleNumber' => '40041234',
),
'personalNumber' =>
Expand Down Expand Up @@ -195,7 +202,7 @@
array (
0 => '
(?:
[189][1-9]|
[1689][1-9]|
2[12478]|
3[1-578]|
7[13-579]
Expand Down Expand Up @@ -224,11 +231,11 @@
array (
0 => '
(?:
300|
40(?:
300|
40(?:
0|
20
)
)
)
',
),
Expand Down Expand Up @@ -257,7 +264,7 @@
array (
0 => '
(?:
[189][1-9]|
[1689][1-9]|
2[12478]|
3[1-578]|
7[13-579]
Expand Down Expand Up @@ -286,11 +293,11 @@
array (
0 => '
(?:
300|
40(?:
300|
40(?:
0|
20
)
)
)
',
),
Expand Down
5 changes: 2 additions & 3 deletions src/libphonenumber/data/PhoneNumberMetadata_ET.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@
array (
'NationalNumberPattern' => '
9(?:
[1-4]\\d|
5[89]|
66
[1-46]\\d|
5[89]
)\\d{6}
',
'PossibleNumberPattern' => '\\d{9}',
Expand Down
Loading

0 comments on commit 0681962

Please sign in to comment.