Skip to content

Commit

Permalink
Metadata changes from Google (r5.7.2)
Browse files Browse the repository at this point in the history
 - New alternate formatting data for country calling code(s):
   352, 359, 372, 373, 595, 7, 855
 - Updated phone metadata for region code(s):
   AR, BF, BH, BR, BY, CH, CM, CN, GE, GW, HN, JM, KH, LT, LU, MU, NP,
   RO, SO
 - New short number metadata for region code(s): BR
 - Updated short number metadata for region code(s):
   CH, FJ, GB, GG, IM, IT, JE, SH
  • Loading branch information
giggsey committed Aug 13, 2013
1 parent 06233b7 commit 994e207
Show file tree
Hide file tree
Showing 37 changed files with 1,580 additions and 207 deletions.
28 changes: 18 additions & 10 deletions src/libphonenumber/AlternateFormatsCountryCodeSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,24 @@ class AlternateFormatsCountryCodeSet {
// A set of all country codes for which data is available.

public static $alternateFormatsCountryCodeSet = array (
0 => 34,
1 => 43,
2 => 44,
3 => 49,
4 => 55,
5 => 61,
6 => 81,
7 => 90,
8 => 351,
9 => 380,
0 => 7,
1 => 34,
2 => 43,
3 => 44,
4 => 49,
5 => 55,
6 => 61,
7 => 81,
8 => 90,
9 => 351,
10 => 352,
11 => 359,
12 => 372,
13 => 373,
14 => 375,
15 => 380,
16 => 595,
17 => 855,
);

}
Expand Down
95 changes: 48 additions & 47 deletions src/libphonenumber/ShortNumbersRegionCodeSet.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,53 +13,54 @@ class ShortNumbersRegionCodeSet {
0 => 'AM',
1 => 'AR',
2 => 'BD',
3 => 'CH',
4 => 'CR',
5 => 'CU',
6 => 'CZ',
7 => 'DE',
8 => 'EE',
9 => 'FR',
10 => 'FJ',
11 => 'FK',
12 => 'FO',
13 => 'GB',
14 => 'GG',
15 => 'GI',
16 => 'GT',
17 => 'GY',
18 => 'HT',
19 => 'IL',
20 => 'IM',
21 => 'IT',
22 => 'JE',
23 => 'JO',
24 => 'KE',
25 => 'KI',
26 => 'KW',
27 => 'LI',
28 => 'LU',
29 => 'MD',
30 => 'ME',
31 => 'MU',
32 => 'MV',
33 => 'MZ',
34 => 'NA',
35 => 'NC',
36 => 'NL',
37 => 'NR',
38 => 'PA',
39 => 'PY',
40 => 'QA',
41 => 'RS',
42 => 'SA',
43 => 'SB',
44 => 'SC',
45 => 'SG',
46 => 'SH',
47 => 'SR',
48 => 'TL',
49 => 'UY',
3 => 'BR',
4 => 'CH',
5 => 'CR',
6 => 'CU',
7 => 'CZ',
8 => 'DE',
9 => 'EE',
10 => 'FR',
11 => 'FJ',
12 => 'FK',
13 => 'FO',
14 => 'GB',
15 => 'GG',
16 => 'GI',
17 => 'GT',
18 => 'GY',
19 => 'HT',
20 => 'IL',
21 => 'IM',
22 => 'IT',
23 => 'JE',
24 => 'JO',
25 => 'KE',
26 => 'KI',
27 => 'KW',
28 => 'LI',
29 => 'LU',
30 => 'MD',
31 => 'ME',
32 => 'MU',
33 => 'MV',
34 => 'MZ',
35 => 'NA',
36 => 'NC',
37 => 'NL',
38 => 'NR',
39 => 'PA',
40 => 'PY',
41 => 'QA',
42 => 'RS',
43 => 'SA',
44 => 'SB',
45 => 'SC',
46 => 'SG',
47 => 'SH',
48 => 'SR',
49 => 'TL',
50 => 'UY',
);

}
Expand Down
121 changes: 121 additions & 0 deletions src/libphonenumber/data/PhoneNumberAlternateFormats_352.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?php
/* This file is automatically generated by {@link BuildMetadataPHPFromXml}.
* Please don't modify it directly.
*/


return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '',
'PossibleNumberPattern' => '',
'ExampleNumber' => '',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '',
'PossibleNumberPattern' => '',
'ExampleNumber' => '',
),
'mobile' =>
array (
'NationalNumberPattern' => '',
'PossibleNumberPattern' => '',
'ExampleNumber' => '',
),
'tollFree' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'premiumRate' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'sharedCost' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'personalNumber' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'voip' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'pager' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'uan' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'emergency' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'voicemail' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'shortCode' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'standardRate' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'noInternationalDialling' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'id' => '',
'countryCode' => 352,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
array (
0 =>
array (
'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
),
'intlNumberFormat' =>
array (
),
'mainCountryForCode' => NULL,
'leadingZeroPossible' => NULL,
);
/* EOF */
126 changes: 126 additions & 0 deletions src/libphonenumber/data/PhoneNumberAlternateFormats_359.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<?php
/* This file is automatically generated by {@link BuildMetadataPHPFromXml}.
* Please don't modify it directly.
*/


return array (
'generalDesc' =>
array (
'NationalNumberPattern' => '',
'PossibleNumberPattern' => '',
'ExampleNumber' => '',
),
'fixedLine' =>
array (
'NationalNumberPattern' => '',
'PossibleNumberPattern' => '',
'ExampleNumber' => '',
),
'mobile' =>
array (
'NationalNumberPattern' => '',
'PossibleNumberPattern' => '',
'ExampleNumber' => '',
),
'tollFree' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'premiumRate' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'sharedCost' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'personalNumber' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'voip' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'pager' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'uan' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'emergency' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'voicemail' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'shortCode' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'standardRate' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'noInternationalDialling' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
'ExampleNumber' => '',
),
'id' => '',
'countryCode' => 359,
'internationalPrefix' => '',
'sameMobileAndFixedLinePattern' => true,
'numberFormat' =>
array (
0 =>
array (
'pattern' => '(\\d{3})(\\d{3})(\\d{3})',
'format' => '$1 $2 $3',
'leadingDigitsPatterns' =>
array (
0 => '
48|
8[7-9]|
9[08]
',
),
'nationalPrefixFormattingRule' => '',
'domesticCarrierCodeFormattingRule' => '',
),
),
'intlNumberFormat' =>
array (
),
'mainCountryForCode' => NULL,
'leadingZeroPossible' => NULL,
);
/* EOF */
Loading

0 comments on commit 994e207

Please sign in to comment.