Permalink
Browse files

Updated Metadata

  • Loading branch information...
davideme committed Sep 12, 2012
1 parent a77bbd2 commit 59f6745ab1b42ef21f9b9d63c9c1c1e86391bcfc
Showing with 951 additions and 602 deletions.
  1. +92 −0 data/PhoneNumberMetadataForTesting_BY.php
  2. +3 −3 data/PhoneNumberMetadata_882.php
  3. +33 −25 data/PhoneNumberMetadata_AR.php
  4. +36 −6 data/PhoneNumberMetadata_AT.php
  5. +39 −6 data/PhoneNumberMetadata_BA.php
  6. +124 −124 data/PhoneNumberMetadata_BD.php
  7. +6 −5 data/PhoneNumberMetadata_BF.php
  8. +7 −7 data/PhoneNumberMetadata_BG.php
  9. +2 −2 data/PhoneNumberMetadata_CL.php
  10. +9 −8 data/PhoneNumberMetadata_CN.php
  11. +1 −1 data/PhoneNumberMetadata_CR.php
  12. +37 −12 data/PhoneNumberMetadata_DE.php
  13. +1 −1 data/PhoneNumberMetadata_DJ.php
  14. +5 −2 data/PhoneNumberMetadata_DZ.php
  15. +7 −7 data/PhoneNumberMetadata_EC.php
  16. +9 −54 data/PhoneNumberMetadata_GA.php
  17. +17 −18 data/PhoneNumberMetadata_IL.php
  18. +28 −95 data/PhoneNumberMetadata_IN.php
  19. +124 −30 data/PhoneNumberMetadata_IT.php
  20. +4 −4 data/PhoneNumberMetadata_JO.php
  21. +76 −20 data/PhoneNumberMetadata_JP.php
  22. +4 −5 data/PhoneNumberMetadata_KH.php
  23. +9 −20 data/PhoneNumberMetadata_KR.php
  24. +1 −1 data/PhoneNumberMetadata_KW.php
  25. +7 −6 data/PhoneNumberMetadata_KZ.php
  26. +1 −1 data/PhoneNumberMetadata_MA.php
  27. +4 −5 data/PhoneNumberMetadata_MK.php
  28. +1 −1 data/PhoneNumberMetadata_MT.php
  29. +1 −1 data/PhoneNumberMetadata_MV.php
  30. +1 −1 data/PhoneNumberMetadata_MY.php
  31. +5 −6 data/PhoneNumberMetadata_NC.php
  32. +75 −3 data/PhoneNumberMetadata_NG.php
  33. +5 −11 data/PhoneNumberMetadata_PF.php
  34. +89 −89 data/PhoneNumberMetadata_PH.php
  35. +30 −1 data/PhoneNumberMetadata_RU.php
  36. +1 −1 data/PhoneNumberMetadata_SB.php
  37. +1 −1 data/PhoneNumberMetadata_SD.php
  38. +14 −3 data/PhoneNumberMetadata_SK.php
  39. +4 −4 data/PhoneNumberMetadata_SL.php
  40. +16 −5 data/PhoneNumberMetadata_SN.php
  41. +20 −5 data/PhoneNumberMetadata_TL.php
  42. +2 −2 data/PhoneNumberMetadata_UZ.php
@@ -0,0 +1,92 @@
+<?php
+return array (
+ 'generalDesc' =>
+ array (
+ 'NationalNumberPattern' => '[1-9]\\d{5}',
+ 'PossibleNumberPattern' => '\\d{6}',
+ 'ExampleNumber' => '',
+ ),
+ 'fixedLine' =>
+ array (
+ 'NationalNumberPattern' => '[1-9]\\d{5}',
+ 'PossibleNumberPattern' => '\\d{6}',
+ 'ExampleNumber' => '112345',
+ ),
+ 'mobile' =>
+ array (
+ 'NationalNumberPattern' => '[1-9]\\d{5}',
+ 'PossibleNumberPattern' => '\\d{6}',
+ 'ExampleNumber' => '',
+ ),
+ 'tollFree' =>
+ array (
+ 'NationalNumberPattern' => 'NA',
+ 'PossibleNumberPattern' => 'NA',
+ 'ExampleNumber' => '',
+ ),
+ 'premiumRate' =>
+ array (
+ 'NationalNumberPattern' => 'NA',
+ 'PossibleNumberPattern' => 'NA',
+ 'ExampleNumber' => '',
+ ),
+ 'sharedCost' =>
+ array (
+ 'NationalNumberPattern' => 'NA',
+ 'PossibleNumberPattern' => 'NA',
+ 'ExampleNumber' => '',
+ ),
+ 'noInternationalDialling' =>
+ array (
+ 'NationalNumberPattern' => 'NA',
+ 'PossibleNumberPattern' => 'NA',
+ 'ExampleNumber' => '',
+ ),
+ 'id' => 'BY',
+ 'countryCode' => 375,
+ 'internationalPrefix' => '810',
+ 'nationalPrefix' => '8',
+ 'nationalPrefixForParsing' => '80?|99999',
+ 'sameMobileAndFixedLinePattern' => true,
+ 'numberFormat' =>
+ array (
+ 0 =>
+ array (
+ 'pattern' => '(\\d{4})',
+ 'format' => '$1',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '[1-8]',
+ ),
+ 'nationalPrefixFormattingRule' => '8 $1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ 1 =>
+ array (
+ 'pattern' => '(\\d{2})(\\d{3})',
+ 'format' => '$1 $2',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '[1-8]',
+ ),
+ 'nationalPrefixFormattingRule' => '8$1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ 2 =>
+ array (
+ 'pattern' => '(\\d{3})(\\d{3})',
+ 'format' => '$1 $2',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '[1-8]',
+ ),
+ 'nationalPrefixFormattingRule' => '8 $1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ ),
+ 'intlNumberFormat' =>
+ array (
+ ),
+ 'mainCountryForCode' => NULL,
+ 'leadingZeroPossible' => NULL,
+);
@@ -4,13 +4,13 @@
array (
'NationalNumberPattern' => '[13]\\d{6,11}',
'PossibleNumberPattern' => '\\d{7,12}',
- 'ExampleNumber' => '32123456',
+ 'ExampleNumber' => '3451234567',
),
'fixedLine' =>
array (
'NationalNumberPattern' => 'NA',
'PossibleNumberPattern' => 'NA',
- 'ExampleNumber' => '32123456',
+ 'ExampleNumber' => '3451234567',
),
'mobile' =>
array (
@@ -25,7 +25,7 @@
)\\d{4}
',
'PossibleNumberPattern' => '\\d{7,10}',
- 'ExampleNumber' => '32123456',
+ 'ExampleNumber' => '3451234567',
),
'tollFree' =>
array (
@@ -16,17 +16,18 @@
(?:
2(?:
2(?:
- [0139]\\d|
+ [013]\\d|
2[13-79]|
4[1-6]|
5[2457]|
6[124-8]|
7[1-4]|
- 8[13-6]
+ 8[13-6]|
+ 9[1267]
)|
3(?:
1[467]|
- 2[02-6]|
+ 2[03-6]|
3[13-8]|
[49][2-6]|
5[2-8]|
@@ -58,8 +59,9 @@
4(?:
[78]\\d|
0[0124-9]|
- [1-356]\\d|
+ [1-35]\\d|
4[24-7]|
+ 6[02-9]|
9[123678]
)|
5(?:
@@ -71,15 +73,17 @@
)|
6[24]\\d|
7(?:
- [01469]\\d|
+ [0469]\\d|
+ 1[1568]|
2[013-9]|
3[145]|
5[14-8]|
7[2-57]|
8[0-24-9]
)|
8(?:
- [0-3578]\\d|
+ [013578]\\d|
+ 2[15-7]|
4[13-6]|
6[1-357-9]|
9[124]
@@ -149,7 +153,7 @@
'countryCode' => 54,
'internationalPrefix' => '00',
'nationalPrefix' => '0',
- 'nationalPrefixForParsing' => ' 0(?: (11| 2(?: 2(?: 02?| [13]| 2[13-79]| 4[1-6]| 5[2457]| 6[124-8]| 7[1-4]| 8[13-6]| 9[1-367] )| 3(?: [06]2?| 1[467]| 2[02-6]| 3[13-8]| [49][2-6]| 5[2-8]| 7 )| 4(?: 7[3-578]| 9 )| 6(?: [0136]| 2[24-6]| 4[6-8]?| 5[15-8] )| 80| 9(?: 0[1-3]| [19]| 2\\d| 3[1-6]| 4[02568]?| 5[2-4]| 6[2-46]| 72?| 8[23]? ) )| 3(?: 3(?: 2[79]| 6| 8[2578] )| 4(?: 0[124-9]| [12]| 3[5-8]?| 4[24-7]| 5[4-68]?| 6\\d| 7[126]| 8[237-9]?| 9[1-36-8] )| 5(?: 1| 2[1245]| 3[237]?| 4[1-46-9]| 6[2-4]| 7[1-6]| 8[2-5]? )| 6[24]| 7(?: 1[15-8]| 2[15]| 3[145]| 4[13]| 5[14-8]| [069]| 7[2-57]| 8[126] )| 8(?: [01]| 2[125-7]| 3[23578]?| 4[13-6]| 5[4-8]?| 6[1-357-9]| 7[36-8]?| 8[5-8]?| 9[124] ) ) )15 )?',
+ 'nationalPrefixForParsing' => ' 0?(?: (11| 2(?: 2(?: 02?| [13]| 2[13-79]| 4[1-6]| 5[2457]| 6[124-8]| 7[1-4]| 8[13-6]| 9[1267] )| 3(?: 02?| 1[467]| 2[03-6]| 3[13-8]| [49][2-6]| 5[2-8]| [67] )| 4(?: 7[3-578]| 9 )| 6(?: [0136]| 2[24-6]| 4[6-8]?| 5[15-8] )| 80| 9(?: 0[1-3]| [19]| 2\\d| 3[1-6]| 4[02568]?| 5[2-4]| 6[2-46]| 72?| 8[23]? ) )| 3(?: 3(?: 2[79]| 6| 8[2578] )| 4(?: 0[124-9]| [12]| 3[5-8]?| 4[24-7]| 5[4-68]?| 6[02-9]| 7[126]| 8[2379]?| 9[1-36-8] )| 5(?: 1| 2[1245]| 3[237]?| 4[1-46-9]| 6[2-4]| 7[1-6]| 8[2-5]? )| 6[24]| 7(?: 1[1568]| 2[15]| 3[145]| 4[13]| 5[14-8]| [069]| 7[2-57]| 8[126] )| 8(?: [01]| 2[15-7]| 3[2578]?| 4[13-6]| 5[4-8]?| 6[1-357-9]| 7[36-8]?| 8[5-8]?| 9[124] ) ) )15 )?',
'nationalPrefixTransformRule' => '9$1',
'sameMobileAndFixedLinePattern' => false,
'numberFormat' =>
@@ -226,15 +230,16 @@
4[12358]|
5(?:
[18]|
- 3[0-689]
+ 3[014-689]
)|
6[24]|
7[069]|
8(?:
- [015]|
- 3[0-2479]|
- 7[0-24-9]|
- 8[0-79]
+ [01]|
+ 3[013469]|
+ 5[0-39]|
+ 7[0-2459]|
+ 8[0-49]
)
)
)
@@ -341,10 +346,11 @@
6[24]|
7[069]|
8(?:
- [015]|
- 3[0-2479]|
- 7[0-24-9]|
- 8[0-79]
+ [01]|
+ 3[013469]|
+ 5[0-39]|
+ 7[0-2459]|
+ 8[0-49]
)
)
',
@@ -459,15 +465,16 @@
4[12358]|
5(?:
[18]|
- 3[0-689]
+ 3[014-689]
)|
6[24]|
7[069]|
8(?:
- [015]|
- 3[0-2479]|
- 7[0-24-9]|
- 8[0-79]
+ [01]|
+ 3[013469]|
+ 5[0-39]|
+ 7[0-2459]|
+ 8[0-49]
)
)
)
@@ -566,10 +573,11 @@
6[24]|
7[069]|
8(?:
- [015]|
- 3[0-2479]|
- 7[0-24-9]|
- 8[0-79]
+ [01]|
+ 3[013469]|
+ 5[0-39]|
+ 7[0-2459]|
+ 8[0-49]
)
)
',
@@ -124,19 +124,49 @@
array (
0 =>
array (
- 'pattern' => '([15])(\\d{3,12})',
+ 'pattern' => '(1)(\\d{3,12})',
'format' => '$1 $2',
'leadingDigitsPatterns' =>
array (
- 0 => '
- 1|
- 5[079]
- ',
+ 0 => '1',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
1 =>
+ array (
+ 'pattern' => '(5\\d)(\\d{3,5})',
+ 'format' => '$1 $2',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '5[079]',
+ ),
+ 'nationalPrefixFormattingRule' => '0$1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ 2 =>
+ array (
+ 'pattern' => '(5\\d)(\\d{3})(\\d{3,4})',
+ 'format' => '$1 $2 $3',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '5[079]',
+ ),
+ 'nationalPrefixFormattingRule' => '0$1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ 3 =>
+ array (
+ 'pattern' => '(5\\d)(\\d{4})(\\d{4,7})',
+ 'format' => '$1 $2 $3',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '5[079]',
+ ),
+ 'nationalPrefixFormattingRule' => '0$1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ 4 =>
array (
'pattern' => '(\\d{3})(\\d{3,10})',
'format' => '$1 $2',
@@ -162,7 +192,7 @@
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
),
- 2 =>
+ 5 =>
array (
'pattern' => '(\\d{4})(\\d{3,9})',
'format' => '$1 $2',
@@ -2,8 +2,8 @@
return array (
'generalDesc' =>
array (
- 'NationalNumberPattern' => '[3-689]\\d{7}',
- 'PossibleNumberPattern' => '\\d{6,8}',
+ 'NationalNumberPattern' => '[3-9]\\d{7,8}',
+ 'PossibleNumberPattern' => '\\d{6,9}',
'ExampleNumber' => '',
),
'fixedLine' =>
@@ -19,8 +19,15 @@
),
'mobile' =>
array (
- 'NationalNumberPattern' => '6[1-356]\\d{6}',
- 'PossibleNumberPattern' => '\\d{8}',
+ 'NationalNumberPattern' => '
+ 6(?:
+ 03|
+ 44|
+ 71|
+ [1-356]
+ )\\d{6}
+ ',
+ 'PossibleNumberPattern' => '\\d{8,9}',
'ExampleNumber' => '61123456',
),
'tollFree' =>
@@ -37,7 +44,7 @@
),
'sharedCost' =>
array (
- 'NationalNumberPattern' => '82\\d{6}',
+ 'NationalNumberPattern' => '8[12]\\d{6}',
'PossibleNumberPattern' => '\\d{8}',
'ExampleNumber' => '82123456',
),
@@ -57,10 +64,36 @@
array (
0 =>
array (
- 'pattern' => '([3-689]\\d)(\\d{3})(\\d{3})',
+ 'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
'format' => '$1 $2-$3',
'leadingDigitsPatterns' =>
array (
+ 0 => '[3-5]',
+ ),
+ 'nationalPrefixFormattingRule' => '0$1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ 1 =>
+ array (
+ 'pattern' => '(\\d{2})(\\d{3})(\\d{3})',
+ 'format' => '$1 $2 $3',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '
+ 6[1-356]|
+ [7-9]
+ ',
+ ),
+ 'nationalPrefixFormattingRule' => '0$1',
+ 'domesticCarrierCodeFormattingRule' => '',
+ ),
+ 2 =>
+ array (
+ 'pattern' => '(\\d{2})(\\d{2})(\\d{2})(\\d{3})',
+ 'format' => '$1 $2 $3 $4',
+ 'leadingDigitsPatterns' =>
+ array (
+ 0 => '6[047]',
),
'nationalPrefixFormattingRule' => '0$1',
'domesticCarrierCodeFormattingRule' => '',
Oops, something went wrong.

0 comments on commit 59f6745

Please sign in to comment.