-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from giggsey/61
Google v6.1 changes
- Loading branch information
Showing
79 changed files
with
39,158 additions
and
27,931 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
115 changes: 115 additions & 0 deletions
115
Tests/libphonenumber/Tests/core/data/PhoneNumberMetadataForTesting_CN.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
<?php | ||
/** | ||
* This file is automatically @generated by {@link BuildMetadataPHPFromXml}. | ||
* Please don't modify it directly. | ||
*/ | ||
|
||
|
||
return array ( | ||
'generalDesc' => | ||
array ( | ||
), | ||
'fixedLine' => | ||
array ( | ||
), | ||
'mobile' => | ||
array ( | ||
), | ||
'tollFree' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'premiumRate' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'sharedCost' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'personalNumber' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'voip' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'pager' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'uan' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'emergency' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'voicemail' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'shortCode' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'standardRate' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'carrierSpecific' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'noInternationalDialling' => | ||
array ( | ||
'NationalNumberPattern' => 'NA', | ||
'PossibleNumberPattern' => 'NA', | ||
), | ||
'id' => 'CN', | ||
'countryCode' => 86, | ||
'internationalPrefix' => '', | ||
'sameMobileAndFixedLinePattern' => true, | ||
'numberFormat' => | ||
array ( | ||
0 => | ||
array ( | ||
'pattern' => '(\\d{3})(\\d{5,6})', | ||
'format' => '$1 $2', | ||
'leadingDigitsPatterns' => | ||
array ( | ||
0 => '[3-9]', | ||
1 => '[3-9]\\d{2}[19]', | ||
2 => ' | ||
[3-9]\\d{2}(?: | ||
10| | ||
95 | ||
) | ||
', | ||
), | ||
'nationalPrefixFormattingRule' => '$1', | ||
'domesticCarrierCodeFormattingRule' => '$CC $1', | ||
), | ||
), | ||
'intlNumberFormat' => | ||
array ( | ||
), | ||
'mainCountryForCode' => false, | ||
'leadingZeroPossible' => false, | ||
'mobileNumberPortableRegion' => false, | ||
); | ||
/* EOF */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace libphonenumber; | ||
|
||
|
||
class DefaultMetadataLoader implements MetadataLoader | ||
{ | ||
public function loadMetadata($metadataFileName) | ||
{ | ||
return include $metadataFileName; | ||
} | ||
} | ||
|
||
/* EOF */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
namespace libphonenumber; | ||
|
||
|
||
interface MetadataLoader | ||
{ | ||
/** | ||
* @param string $metadataFileName File name (including path) of metadata to load. | ||
* @return mixed | ||
*/ | ||
public function loadMetadata($metadataFileName); | ||
} | ||
|
||
/* EOF */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.