diff --git a/Tests/PhoneNumberUtilTest.php b/Tests/PhoneNumberUtilTest.php index 52805c35a..c975608ae 100644 --- a/Tests/PhoneNumberUtilTest.php +++ b/Tests/PhoneNumberUtilTest.php @@ -276,6 +276,14 @@ public function testGetLengthOfNationalDestinationCode() $this->assertEquals(4, $this->phoneUtil->getLengthOfNationalDestinationCode(self::$internationalTollFree)); } + public function testGetCountryMobileToken() + { + $this->assertEquals("1", $this->phoneUtil->getCountryMobileToken($this->phoneUtil->getCountryCodeForRegion(RegionCode::MX))); + + // Country calling code for Sweden, which has no mobile token. + $this->assertEquals("", $this->phoneUtil->getCountryMobileToken($this->phoneUtil->getCountryCodeForRegion(RegionCode::SE))); + } + public function testGetNationalSignificantNumber() { $this->assertEquals("6502530000", $this->phoneUtil->getNationalSignificantNumber(self::$usNumber)); diff --git a/Tests/ShortNumberInfoTest.php b/Tests/ShortNumberInfoTest.php index dc75809d8..e9bedb30e 100644 --- a/Tests/ShortNumberInfoTest.php +++ b/Tests/ShortNumberInfoTest.php @@ -126,11 +126,11 @@ public function testGetExampleShortNumberForCost() $this->shortInfo->getExampleShortNumberForCost(RegionCode::FR, ShortNumberCost::TOLL_FREE) ); $this->assertEquals( - "118777", + "1023", $this->shortInfo->getExampleShortNumberForCost(RegionCode::FR, ShortNumberCost::STANDARD_RATE) ); $this->assertEquals( - "3200", + "42000", $this->shortInfo->getExampleShortNumberForCost(RegionCode::FR, ShortNumberCost::PREMIUM_RATE) ); $this->assertEquals( diff --git a/Tests/data/PhoneNumberMetadataForTesting_800.php b/Tests/data/PhoneNumberMetadataForTesting_800.php index d7f7f213b..429be6642 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_800.php +++ b/Tests/data/PhoneNumberMetadataForTesting_800.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_979.php b/Tests/data/PhoneNumberMetadataForTesting_979.php index 7482e0afb..544a885df 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_979.php +++ b/Tests/data/PhoneNumberMetadataForTesting_979.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_AD.php b/Tests/data/PhoneNumberMetadataForTesting_AD.php index 07943a841..9a452e726 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_AD.php +++ b/Tests/data/PhoneNumberMetadataForTesting_AD.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_AE.php b/Tests/data/PhoneNumberMetadataForTesting_AE.php index 5238f241b..879801eab 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_AE.php +++ b/Tests/data/PhoneNumberMetadataForTesting_AE.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_AO.php b/Tests/data/PhoneNumberMetadataForTesting_AO.php index 8460a79bf..18a0fce3d 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_AO.php +++ b/Tests/data/PhoneNumberMetadataForTesting_AO.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_AR.php b/Tests/data/PhoneNumberMetadataForTesting_AR.php index 8709e9867..8aaab9e08 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_AR.php +++ b/Tests/data/PhoneNumberMetadataForTesting_AR.php @@ -216,5 +216,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_AU.php b/Tests/data/PhoneNumberMetadataForTesting_AU.php index 6b3a381fc..b16faef52 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_AU.php +++ b/Tests/data/PhoneNumberMetadataForTesting_AU.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_BR.php b/Tests/data/PhoneNumberMetadataForTesting_BR.php index 8ed35591b..db226e442 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_BR.php +++ b/Tests/data/PhoneNumberMetadataForTesting_BR.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_BS.php b/Tests/data/PhoneNumberMetadataForTesting_BS.php index 7d555bbc5..a6f6119ec 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_BS.php +++ b/Tests/data/PhoneNumberMetadataForTesting_BS.php @@ -115,5 +115,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_BY.php b/Tests/data/PhoneNumberMetadataForTesting_BY.php index 840fb6135..c27c9fcdf 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_BY.php +++ b/Tests/data/PhoneNumberMetadataForTesting_BY.php @@ -148,5 +148,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_DE.php b/Tests/data/PhoneNumberMetadataForTesting_DE.php index dcdabad54..5c1ed1f98 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_DE.php +++ b/Tests/data/PhoneNumberMetadataForTesting_DE.php @@ -183,5 +183,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_FR.php b/Tests/data/PhoneNumberMetadataForTesting_FR.php index b99f21107..84cf288f6 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_FR.php +++ b/Tests/data/PhoneNumberMetadataForTesting_FR.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_GB.php b/Tests/data/PhoneNumberMetadataForTesting_GB.php index 3154672a3..37205c20e 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_GB.php +++ b/Tests/data/PhoneNumberMetadataForTesting_GB.php @@ -159,5 +159,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_GG.php b/Tests/data/PhoneNumberMetadataForTesting_GG.php index 23890b40c..9247c2783 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_GG.php +++ b/Tests/data/PhoneNumberMetadataForTesting_GG.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_IT.php b/Tests/data/PhoneNumberMetadataForTesting_IT.php index c860276a9..592374758 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_IT.php +++ b/Tests/data/PhoneNumberMetadataForTesting_IT.php @@ -157,5 +157,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_JP.php b/Tests/data/PhoneNumberMetadataForTesting_JP.php index 31532da6a..bf4b2fba6 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_JP.php +++ b/Tests/data/PhoneNumberMetadataForTesting_JP.php @@ -197,5 +197,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_KR.php b/Tests/data/PhoneNumberMetadataForTesting_KR.php index a5ff61925..453589392 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_KR.php +++ b/Tests/data/PhoneNumberMetadataForTesting_KR.php @@ -259,5 +259,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_MX.php b/Tests/data/PhoneNumberMetadataForTesting_MX.php index 28502857d..44e65f645 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_MX.php +++ b/Tests/data/PhoneNumberMetadataForTesting_MX.php @@ -216,5 +216,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_NZ.php b/Tests/data/PhoneNumberMetadataForTesting_NZ.php index d72c2580b..f0668e9f2 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_NZ.php +++ b/Tests/data/PhoneNumberMetadataForTesting_NZ.php @@ -151,5 +151,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_PL.php b/Tests/data/PhoneNumberMetadataForTesting_PL.php index 1a0d2cc07..4274f85d9 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_PL.php +++ b/Tests/data/PhoneNumberMetadataForTesting_PL.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_RE.php b/Tests/data/PhoneNumberMetadataForTesting_RE.php index c01bac764..292da8c72 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_RE.php +++ b/Tests/data/PhoneNumberMetadataForTesting_RE.php @@ -126,5 +126,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '262|6(?:9[23]|47)|8', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_SG.php b/Tests/data/PhoneNumberMetadataForTesting_SG.php index 028d0cd2c..83e247ce4 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_SG.php +++ b/Tests/data/PhoneNumberMetadataForTesting_SG.php @@ -150,5 +150,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_US.php b/Tests/data/PhoneNumberMetadataForTesting_US.php index b24d0e739..aebccd690 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_US.php +++ b/Tests/data/PhoneNumberMetadataForTesting_US.php @@ -144,5 +144,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/Tests/data/PhoneNumberMetadataForTesting_YT.php b/Tests/data/PhoneNumberMetadataForTesting_YT.php index 0ba9de2e0..13d1194f3 100644 --- a/Tests/data/PhoneNumberMetadataForTesting_YT.php +++ b/Tests/data/PhoneNumberMetadataForTesting_YT.php @@ -116,5 +116,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '269|639', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/build/BuildMetadataFromXml.php b/build/BuildMetadataFromXml.php index 29f56548f..8e12e83cc 100644 --- a/build/BuildMetadataFromXml.php +++ b/build/BuildMetadataFromXml.php @@ -43,6 +43,7 @@ class BuildMetadataFromXml const INTL_FORMAT = "intlFormat"; const LEADING_DIGITS = "leadingDigits"; const LEADING_ZERO_POSSIBLE = "leadingZeroPossible"; + const MOBILE_NUMBER_PORTABLE_REGION = "mobileNumberPortableRegion"; const MAIN_COUNTRY_FOR_CODE = "mainCountryForCode"; const MOBILE = "mobile"; const NATIONAL_NUMBER_PATTERN = "nationalNumberPattern"; @@ -191,6 +192,9 @@ private static function loadTerritoryTagMetadata( if ($element->hasAttribute(self::LEADING_ZERO_POSSIBLE)) { $metadata->setLeadingZeroPossible(true); } + if ($element->hasAttribute(self::MOBILE_NUMBER_PORTABLE_REGION)) { + $metadata->setMobileNumberPortableRegion(true); + } return $metadata; } @@ -369,7 +373,9 @@ private static function loadGeneralDesc(PhoneMetadata $metadata, \DOMElement $el $metadata->setUan(self::processPhoneNumberDescElement($generalDesc, $element, self::UAN)); $metadata->setEmergency(self::processPhoneNumberDescElement($generalDesc, $element, self::EMERGENCY)); $metadata->setVoicemail(self::processPhoneNumberDescElement($generalDesc, $element, self::VOICEMAIL)); - $metadata->setCarrierSpecific(self::processPhoneNumberDescElement($generalDesc, $element, self::CARRIER_SPECIFIC)); + $metadata->setCarrierSpecific( + self::processPhoneNumberDescElement($generalDesc, $element, self::CARRIER_SPECIFIC) + ); $metadata->setNoInternationalDialling( @@ -452,7 +458,7 @@ public static function buildCountryCodeToRegionCodeMap($metadataCollection) $countryCode = $metadata->getCountryCode(); if (array_key_exists($countryCode, $countryCodeToRegionCodeMap)) { if ($metadata->getMainCountryForCode()) { - array_unshift( $countryCodeToRegionCodeMap[$countryCode], $regionCode); + array_unshift($countryCodeToRegionCodeMap[$countryCode], $regionCode); } else { $countryCodeToRegionCodeMap[$countryCode][] = $regionCode; } diff --git a/src/libphonenumber/AlternateFormatsCountryCodeSet.php b/src/libphonenumber/AlternateFormatsCountryCodeSet.php index 1c7791538..85b2a372a 100644 --- a/src/libphonenumber/AlternateFormatsCountryCodeSet.php +++ b/src/libphonenumber/AlternateFormatsCountryCodeSet.php @@ -33,9 +33,10 @@ class AlternateFormatsCountryCodeSet { 20 => 380, 21 => 385, 22 => 595, - 23 => 855, - 24 => 971, - 25 => 972, + 23 => 675, + 24 => 855, + 25 => 971, + 26 => 972, ); } diff --git a/src/libphonenumber/PhoneMetadata.php b/src/libphonenumber/PhoneMetadata.php index 777360927..ee633f6ee 100644 --- a/src/libphonenumber/PhoneMetadata.php +++ b/src/libphonenumber/PhoneMetadata.php @@ -208,6 +208,21 @@ public function setLeadingZeroPossible($value) { return $this; } + private $mobileNumberPortableRegion = null; + + public function hasMobileNumberPortableRegion() { + return isset($this->mobileNumberPortableRegion); + } + + public function isMobileNumberPortableRegion() { + return $this->mobileNumberPortableRegion; + } + + public function setMobileNumberPortableRegion($value) { + $this->mobileNumberPortableRegion = $value; + return $this; + } + private $generalDesc = null; public function hasGeneralDesc() { @@ -644,6 +659,8 @@ public function toArray() { $output['leadingZeroPossible'] = $this->isLeadingZeroPossible(); + $output['mobileNumberPortableRegion'] = $this->isMobileNumberPortableRegion(); + return $output; } @@ -783,6 +800,8 @@ public function fromArray(array $input) { $this->setLeadingZeroPossible($input['leadingZeroPossible']); + $this->setMobileNumberPortableRegion($input['mobileNumberPortableRegion']); + return $this; } diff --git a/src/libphonenumber/PhoneNumberUtil.php b/src/libphonenumber/PhoneNumberUtil.php index 90f614c82..4cbf83805 100644 --- a/src/libphonenumber/PhoneNumberUtil.php +++ b/src/libphonenumber/PhoneNumberUtil.php @@ -62,7 +62,6 @@ class PhoneNumberUtil // load factor of roughly 0.75. const RFC3966_PHONE_CONTEXT = ";phone-context="; const RFC3966_ISDN_SUBADDRESS = ";isub="; - const VALID_ALPHA_PHONE_PATTERN = "(?:.*?[A-Za-z]){3}.*"; // The PLUS_SIGN signifies the international prefix. @@ -73,14 +72,10 @@ class PhoneNumberUtil const NON_DIGITS_PATTERN = "(\\D+)"; const FIRST_GROUP_PATTERN = "(\\$\\d)"; const NP_PATTERN = '\\$NP'; - const FG_PATTERN = '\\$FG'; const CC_PATTERN = '\\$CC'; const FIRST_GROUP_ONLY_PREFIX_PATTERN = '\\(?\\$1\\)?'; - /** - * @var PhoneNumberUtil - */ - private static $instance = null; + public static $PLUS_CHARS_PATTERN; // Regular expression of acceptable characters that may start a phone number for the purposes of // parsing. This allows us to strip away meaningless prefixes to phone numbers that may be @@ -88,7 +83,10 @@ class PhoneNumberUtil // does not contain alpha characters, although they may be used later in the number. It also does // not include other punctuation, as this will be stripped later during parsing and is of no // information value when parsing a number. - public static $PLUS_CHARS_PATTERN; + /** + * @var PhoneNumberUtil + */ + private static $instance = null; // Regular expression of characters typically used to start a second phone number for the purposes // of parsing. This allows us to strip off parts of the number that are actually the start of @@ -138,6 +136,12 @@ class PhoneNumberUtil 'Y' => '9', 'Z' => '9', ); + /** + * Map of country calling codes that use a mobile token before the area code. One example of when + * this is relevant is when determining the length of the national destination code, which should + * be the length of the area code plus the length of the mobile token. + */ + private static $MOBILE_TOKEN_MAPPINGS; // We use this pattern to check if the phone number has at least three letters in it - if so, then // we treat it as a number where some phone-number digits are represented by letters. @@ -246,6 +250,10 @@ public static function getInstance( self::$ALL_PLUS_NUMBER_GROUPING_SYMBOLS["\xE2\x81\xA0"] = " "; self::$ALL_PLUS_NUMBER_GROUPING_SYMBOLS["."] = "."; self::$ALL_PLUS_NUMBER_GROUPING_SYMBOLS["\xEF\xBC\x8E"] = "."; + + self::$MOBILE_TOKEN_MAPPINGS = array(); + self::$MOBILE_TOKEN_MAPPINGS['52'] = "1"; + self::$MOBILE_TOKEN_MAPPINGS['54'] = "9"; } return self::$instance; } @@ -385,6 +393,34 @@ public static function convertAlphaCharactersInNumber($number) // // Note VALID_PUNCTUATION starts with a -, so must be the first in the range. + /** + * Normalizes a string of characters representing a phone number by replacing all characters found + * in the accompanying map with the values therein, and stripping all other characters if + * removeNonMatches is true. + * + * @param string $number a string of characters representing a phone number + * @param array $normalizationReplacements a mapping of characters to what they should be replaced by in + * the normalized version of the phone number + * @param bool $removeNonMatches indicates whether characters that are not able to be replaced + * should be stripped from the number. If this is false, they + * will be left unchanged in the number. + * @return string the normalized string version of the phone number + */ + private static function normalizeHelper($number, array $normalizationReplacements, $removeNonMatches) + { + $normalizedNumber = ""; + for ($i = 0; $i < mb_strlen($number, 'UTF-8'); $i++) { + $character = mb_substr($number, $i, 1, 'UTF-8'); + if (isset($normalizationReplacements[mb_strtoupper($character, 'UTF-8')])) { + $normalizedNumber .= $normalizationReplacements[mb_strtoupper($character, 'UTF-8')]; + } else if (!$removeNonMatches) { + $normalizedNumber .= $character; + } + // If neither of the above are true, we remove this character. + } + return $normalizedNumber; + } + /** * Helper function to check if the national prefix formatting rule has the first group only, i.e., * does not start with the national prefix. @@ -639,6 +675,12 @@ private function getNumberTypeHelper($nationalNumber, PhoneMetadata $metadata) return PhoneNumberType::UNKNOWN; } + public function isNumberMatchingDesc($nationalNumber, PhoneNumberDesc $numberDesc) { + $nationalNumberPatternMatcher = new Matcher($numberDesc->getNationalNumberPattern(), $nationalNumber); + + return $this->isNumberPossibleForDesc($nationalNumber, $numberDesc) && $nationalNumberPatternMatcher->matches(); + } + public function isNumberPossibleForDesc($nationalNumber, PhoneNumberDesc $numberDesc) { $possibleNumberPatternMatcher = new Matcher($numberDesc->getPossibleNumberPattern(), $nationalNumber); @@ -646,12 +688,6 @@ public function isNumberPossibleForDesc($nationalNumber, PhoneNumberDesc $number return $possibleNumberPatternMatcher->matches(); } - public function isNumberMatchingDesc($nationalNumber, PhoneNumberDesc $numberDesc) { - $nationalNumberPatternMatcher = new Matcher($numberDesc->getNationalNumberPattern(), $nationalNumber); - - return $this->isNumberPossibleForDesc($nationalNumber, $numberDesc) && $nationalNumberPatternMatcher->matches(); - } - /** * Tests whether a phone number has a geographical association. It checks if the number is * associated to a certain region in the country where it belongs to. Note that this doesn't @@ -768,15 +804,17 @@ public function getLengthOfNationalDestinationCode(PhoneNumber $number) return 0; } - if ($this->getRegionCodeForCountryCode($number->getCountryCode()) === "AR" && - $this->getNumberType($number) == PhoneNumberType::MOBILE - ) { - // Argentinian mobile numbers, when formatted in the international format, are in the form of - // +54 9 NDC XXXX.... As a result, we take the length of the third group (NDC) and add 1 for - // the digit 9, which also forms part of the national significant number. - // TODO: Investigate the possibility of better modeling the metadata to make it - // easier to obtain the NDC. - return strlen($numberGroups[3]) + 1; + if ($this->getNumberType($number) == PhoneNumberType::MOBILE) { + // For example Argentinian mobile numbers, when formatted in the international format, are in + // the form of +54 9 NDC XXXX.... As a result, we take the length of the third group (NDC) and + // add the length of the second group (which is the mobile token), which also forms part of + // the national significant number. This assumes that the mobile token is always formatted + // separately from the rest of the phone number. + + $mobileToken = self::getCountryMobileToken($number->getCountryCode()); + if ($mobileToken !== "") { + return strlen($numberGroups[2]) + strlen($numberGroups[3]); + } } return strlen($numberGroups[2]); } @@ -992,6 +1030,21 @@ private function maybeAppendFormattedExtension(PhoneNumber $number, $metadata, $ } } + /** + * Returns the mobile token for the provided country calling code if it has one, otherwise + * returns an empty string. A mobile token is a number inserted before the area code when dialing + * a mobile number from that country from abroad. + * + * @param int $countryCallingCode the country calling code for which we want the mobile token + * @return string the mobile token, as a string, for the given country calling code + */ + public static function getCountryMobileToken($countryCallingCode){ + if (array_key_exists($countryCallingCode, self::$MOBILE_TOKEN_MAPPINGS)) { + return self::$MOBILE_TOKEN_MAPPINGS[$countryCallingCode]; + } + return ""; + } + /** * Checks if the number is a valid vanity (alpha) number such as 800 MICROSOFT. A valid vanity * number will start with at least 3 digits and will have three or more alpha characters. This @@ -1031,6 +1084,31 @@ public static function isViablePhoneNumber($number) return $m > 0; } + /** + * We append optionally the extension pattern to the end here, as a valid phone number may + * have an extension prefix appended, followed by 1 or more digits. + * @return string + */ + private static function getValidPhoneNumberPattern() + { + return '%' . + self::DIGITS . '{' . self::MIN_LENGTH_FOR_NSN . '}' . '|' . + '[' . self::PLUS_CHARS . ']*+(?:[' . self::VALID_PUNCTUATION . self::STAR_SIGN . ']*' . self::DIGITS . '){3,}[' . + self::VALID_PUNCTUATION . self::STAR_SIGN . self::getValidAlphaPattern() . self::DIGITS . ']*' . + '(?:' . self::$EXTN_PATTERNS_FOR_PARSING . ')?' . + '%' . self::REGEX_FLAGS; + } + + private static function getValidAlphaPattern() + { + // We accept alpha characters in phone numbers, ASCII only, upper and lower case. + return preg_replace("[, \\[\\]]", "", implode('', array_keys(self::$ALPHA_MAPPINGS))) . preg_replace( + "[, \\[\\]]", + "", + strtolower(implode('', array_keys(self::$ALPHA_MAPPINGS))) + ); + } + /** * Strips any extension (as in, the part of the number dialled after the call is connected, * usually indicated with extn, ext, x or similar) from the end of the number, and returns it. @@ -1495,59 +1573,6 @@ public static function normalize(&$number) } } - /** - * We append optionally the extension pattern to the end here, as a valid phone number may - * have an extension prefix appended, followed by 1 or more digits. - * @return string - */ - private static function getValidPhoneNumberPattern() - { - return '%' . - self::DIGITS . '{' . self::MIN_LENGTH_FOR_NSN . '}' . '|' . - '[' . self::PLUS_CHARS . ']*+(?:[' . self::VALID_PUNCTUATION . self::STAR_SIGN . ']*' . self::DIGITS . '){3,}[' . - self::VALID_PUNCTUATION . self::STAR_SIGN . self::getValidAlphaPattern() . self::DIGITS . ']*' . - '(?:' . self::$EXTN_PATTERNS_FOR_PARSING . ')?' . - '%' . self::REGEX_FLAGS; - } - - private static function getValidAlphaPattern() - { - // We accept alpha characters in phone numbers, ASCII only, upper and lower case. - return preg_replace("[, \\[\\]]", "", implode('', array_keys(self::$ALPHA_MAPPINGS))) . preg_replace( - "[, \\[\\]]", - "", - strtolower(implode('', array_keys(self::$ALPHA_MAPPINGS))) - ); - } - - /** - * Normalizes a string of characters representing a phone number by replacing all characters found - * in the accompanying map with the values therein, and stripping all other characters if - * removeNonMatches is true. - * - * @param string $number a string of characters representing a phone number - * @param array $normalizationReplacements a mapping of characters to what they should be replaced by in - * the normalized version of the phone number - * @param bool $removeNonMatches indicates whether characters that are not able to be replaced - * should be stripped from the number. If this is false, they - * will be left unchanged in the number. - * @return string the normalized string version of the phone number - */ - private static function normalizeHelper($number, array $normalizationReplacements, $removeNonMatches) - { - $normalizedNumber = ""; - for ($i = 0; $i < mb_strlen($number, 'UTF-8'); $i++) { - $character = mb_substr($number, $i, 1, 'UTF-8'); - if (isset($normalizationReplacements[mb_strtoupper($character, 'UTF-8')])) { - $normalizedNumber .= $normalizationReplacements[mb_strtoupper($character, 'UTF-8')]; - } else if (!$removeNonMatches) { - $normalizedNumber .= $character; - } - // If neither of the above are true, we remove this character. - } - return $normalizedNumber; - } - /** * Normalizes a string of characters representing a phone number. This converts wide-ascii and * arabic-indic numerals to European numerals, and strips punctuation and alpha characters. @@ -1750,6 +1775,26 @@ public function getCountryCodeForRegion($regionCode) return $this->getCountryCodeForValidRegion($regionCode); } + /** + * Returns the country calling code for a specific region. For example, this would be 1 for the + * United States, and 64 for New Zealand. Assumes the region is already valid. + * + * @param String $regionCode the region that we want to get the country calling code for + * @return int the country calling code for the region denoted by regionCode + * @throws Exception if the region is invalid + */ + private function getCountryCodeForValidRegion($regionCode) + { + $metadata = $this->getMetadataForRegion($regionCode); + if ($metadata === null) { + throw new Exception("Invalid region code: " . $regionCode); + } + return $metadata->getCountryCode(); + } + + // Check if rawInput, which is assumed to be in the national format, has a national prefix. The + // national prefix is assumed to be in digits-only form. + /** * Returns a number formatted in such a way that it can be dialed from a mobile phone in a * specific region. If the number cannot be reached from the region (e.g. some countries block @@ -1812,9 +1857,6 @@ public function formatNumberForMobileDialing(PhoneNumber $number, $regionCalling return $withFormatting ? $formattedNumber : $this->normalizeDiallableCharsOnly($formattedNumber); } - // Check if rawInput, which is assumed to be in the national format, has a national prefix. The - // national prefix is assumed to be in digits-only form. - /** * Formats a phone number in national format for dialing using the carrier as specified in the * {@code carrierCode}. The {@code carrierCode} will always be used regardless of whether the @@ -2118,6 +2160,11 @@ public function formatOutOfCountryCallingNumber(PhoneNumber $number, $regionCall return $formattedNumber; } + // Note in some regions, the national number can be written in two completely different ways + // depending on whether it forms part of the NATIONAL format or INTERNATIONAL format. The + // numberFormat parameter here is used to specify which format to use for those cases. If a + // carrierCode is specified, this will be inserted into the formatted string to replace $CC. + /** * Checks if this is a region under the North American Numbering Plan Administration (NANPA). * @param string $regionCode @@ -2128,11 +2175,6 @@ public function isNANPACountry($regionCode) return in_array($regionCode, $this->nanpaRegions); } - // Note in some regions, the national number can be written in two completely different ways - // depending on whether it forms part of the NATIONAL format or INTERNATIONAL format. The - // numberFormat parameter here is used to specify which format to use for those cases. If a - // carrierCode is specified, this will be inserted into the formatted string to replace $CC. - /** * Formats a phone number using the original phone number format that the number is parsed from. * The original format is embedded in the country_code_source field of the PhoneNumber object @@ -2248,6 +2290,9 @@ public function formatInOriginalFormat(PhoneNumber $number, $regionCallingFrom) return $formattedNumber; } + // Note that carrierCode is optional - if null or an empty string, no carrier code replacement + // will take place. + /** * Returns true if a number is from a region whose national significant number couldn't contain a * leading zero, but has the italian_leading_zero field set to true. @@ -2257,9 +2302,6 @@ private function hasUnexpectedItalianLeadingZero(PhoneNumber $number) return $number->isItalianLeadingZero() && !$this->isLeadingZeroPossible($number->getCountryCode()); } - // Note that carrierCode is optional - if null or an empty string, no carrier code replacement - // will take place. - /** * Checks whether the country calling code is from a region whose national significant number * could contain a leading zero. An example of such a region is Italy. Returns false if no @@ -2396,23 +2438,6 @@ public function isValidNumberForRegion(PhoneNumber $number, $regionCode) return $this->getNumberTypeHelper($nationalSignificantNumber, $metadata) != PhoneNumberType::UNKNOWN; } - /** - * Returns the country calling code for a specific region. For example, this would be 1 for the - * United States, and 64 for New Zealand. Assumes the region is already valid. - * - * @param String $regionCode the region that we want to get the country calling code for - * @return int the country calling code for the region denoted by regionCode - * @throws Exception if the region is invalid - */ - private function getCountryCodeForValidRegion($regionCode) - { - $metadata = $this->getMetadataForRegion($regionCode); - if ($metadata === null) { - throw new Exception("Invalid region code: " . $regionCode); - } - return $metadata->getCountryCode(); - } - /** * Parses a string and returns it in proto buffer format. This method will throw a * {@link com.google.i18n.phonenumbers.NumberParseException} if the number is not considered to be diff --git a/src/libphonenumber/RegionCode.php b/src/libphonenumber/RegionCode.php index 90d5ca9d4..1b0b64e06 100644 --- a/src/libphonenumber/RegionCode.php +++ b/src/libphonenumber/RegionCode.php @@ -50,6 +50,7 @@ class RegionCode const PG = "PG"; const PL = "PL"; const RE = "RE"; + const SE = "SE"; const SG = "SG"; const US = "US"; const YT = "YT"; diff --git a/src/libphonenumber/ShortNumbersRegionCodeSet.php b/src/libphonenumber/ShortNumbersRegionCodeSet.php index 64033ceab..787a45201 100644 --- a/src/libphonenumber/ShortNumbersRegionCodeSet.php +++ b/src/libphonenumber/ShortNumbersRegionCodeSet.php @@ -106,138 +106,139 @@ class ShortNumbersRegionCodeSet { 93 => 'IL', 94 => 'IM', 95 => 'IN', - 96 => 'IR', - 97 => 'IS', - 98 => 'IT', - 99 => 'JE', - 100 => 'JM', - 101 => 'JO', - 102 => 'JP', - 103 => 'KE', - 104 => 'KG', - 105 => 'KH', - 106 => 'KI', - 107 => 'KM', - 108 => 'KN', - 109 => 'KR', - 110 => 'KW', - 111 => 'KY', - 112 => 'KZ', - 113 => 'LA', - 114 => 'LB', - 115 => 'LC', - 116 => 'LI', - 117 => 'LK', - 118 => 'LR', - 119 => 'LS', - 120 => 'LT', - 121 => 'LU', - 122 => 'LV', - 123 => 'LY', - 124 => 'MA', - 125 => 'MC', - 126 => 'MD', - 127 => 'ME', - 128 => 'MF', - 129 => 'MG', - 130 => 'MH', - 131 => 'MK', - 132 => 'ML', - 133 => 'MM', - 134 => 'MN', - 135 => 'MO', - 136 => 'MP', - 137 => 'MQ', - 138 => 'MR', - 139 => 'MS', - 140 => 'MT', - 141 => 'MU', - 142 => 'MV', - 143 => 'MW', - 144 => 'MX', - 145 => 'MY', - 146 => 'MZ', - 147 => 'NA', - 148 => 'NC', - 149 => 'NF', - 150 => 'NG', - 151 => 'NI', - 152 => 'NL', - 153 => 'NO', - 154 => 'NP', - 155 => 'NR', - 156 => 'NU', - 157 => 'NZ', - 158 => 'OM', - 159 => 'PA', - 160 => 'PE', - 161 => 'PF', - 162 => 'PG', - 163 => 'PH', - 164 => 'PK', - 165 => 'PL', - 166 => 'PM', - 167 => 'PR', - 168 => 'PT', - 169 => 'PW', - 170 => 'PY', - 171 => 'QA', - 172 => 'RE', - 173 => 'RO', - 174 => 'RS', - 175 => 'RU', - 176 => 'RW', - 177 => 'SA', - 178 => 'SB', - 179 => 'SC', - 180 => 'SD', - 181 => 'SE', - 182 => 'SG', - 183 => 'SH', - 184 => 'SI', - 185 => 'SJ', - 186 => 'SK', - 187 => 'SL', - 188 => 'SM', - 189 => 'SR', - 190 => 'ST', - 191 => 'SV', - 192 => 'SX', - 193 => 'SY', - 194 => 'SZ', - 195 => 'TC', - 196 => 'TD', - 197 => 'TG', - 198 => 'TH', - 199 => 'TJ', - 200 => 'TL', - 201 => 'TM', - 202 => 'TN', - 203 => 'TO', - 204 => 'TR', - 205 => 'TT', - 206 => 'TV', - 207 => 'TW', - 208 => 'TZ', - 209 => 'UA', - 210 => 'UG', - 211 => 'US', - 212 => 'UY', - 213 => 'UZ', - 214 => 'VA', - 215 => 'VC', - 216 => 'VE', - 217 => 'VG', - 218 => 'VI', - 219 => 'VN', - 220 => 'VU', - 221 => 'WF', - 222 => 'WS', - 223 => 'YE', - 224 => 'YT', - 225 => 'ZA', - 226 => 'ZM', - 227 => 'ZW', + 96 => 'IQ', + 97 => 'IR', + 98 => 'IS', + 99 => 'IT', + 100 => 'JE', + 101 => 'JM', + 102 => 'JO', + 103 => 'JP', + 104 => 'KE', + 105 => 'KG', + 106 => 'KH', + 107 => 'KI', + 108 => 'KM', + 109 => 'KN', + 110 => 'KR', + 111 => 'KW', + 112 => 'KY', + 113 => 'KZ', + 114 => 'LA', + 115 => 'LB', + 116 => 'LC', + 117 => 'LI', + 118 => 'LK', + 119 => 'LR', + 120 => 'LS', + 121 => 'LT', + 122 => 'LU', + 123 => 'LV', + 124 => 'LY', + 125 => 'MA', + 126 => 'MC', + 127 => 'MD', + 128 => 'ME', + 129 => 'MF', + 130 => 'MG', + 131 => 'MH', + 132 => 'MK', + 133 => 'ML', + 134 => 'MM', + 135 => 'MN', + 136 => 'MO', + 137 => 'MP', + 138 => 'MQ', + 139 => 'MR', + 140 => 'MS', + 141 => 'MT', + 142 => 'MU', + 143 => 'MV', + 144 => 'MW', + 145 => 'MX', + 146 => 'MY', + 147 => 'MZ', + 148 => 'NA', + 149 => 'NC', + 150 => 'NF', + 151 => 'NG', + 152 => 'NI', + 153 => 'NL', + 154 => 'NO', + 155 => 'NP', + 156 => 'NR', + 157 => 'NU', + 158 => 'NZ', + 159 => 'OM', + 160 => 'PA', + 161 => 'PE', + 162 => 'PF', + 163 => 'PG', + 164 => 'PH', + 165 => 'PK', + 166 => 'PL', + 167 => 'PM', + 168 => 'PR', + 169 => 'PT', + 170 => 'PW', + 171 => 'PY', + 172 => 'QA', + 173 => 'RE', + 174 => 'RO', + 175 => 'RS', + 176 => 'RU', + 177 => 'RW', + 178 => 'SA', + 179 => 'SB', + 180 => 'SC', + 181 => 'SD', + 182 => 'SE', + 183 => 'SG', + 184 => 'SH', + 185 => 'SI', + 186 => 'SJ', + 187 => 'SK', + 188 => 'SL', + 189 => 'SM', + 190 => 'SR', + 191 => 'ST', + 192 => 'SV', + 193 => 'SX', + 194 => 'SY', + 195 => 'SZ', + 196 => 'TC', + 197 => 'TD', + 198 => 'TG', + 199 => 'TH', + 200 => 'TJ', + 201 => 'TL', + 202 => 'TM', + 203 => 'TN', + 204 => 'TO', + 205 => 'TR', + 206 => 'TT', + 207 => 'TV', + 208 => 'TW', + 209 => 'TZ', + 210 => 'UA', + 211 => 'UG', + 212 => 'US', + 213 => 'UY', + 214 => 'UZ', + 215 => 'VA', + 216 => 'VC', + 217 => 'VE', + 218 => 'VG', + 219 => 'VI', + 220 => 'VN', + 221 => 'VU', + 222 => 'WF', + 223 => 'WS', + 224 => 'YE', + 225 => 'YT', + 226 => 'ZA', + 227 => 'ZM', + 228 => 'ZW', ); } diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_30.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_30.php index 8f6d9ab41..e8f53533c 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_30.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_30.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_31.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_31.php index a8b3f8a16..e1d45cf53 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_31.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_31.php @@ -132,5 +132,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_34.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_34.php index e54092f93..935d0afbf 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_34.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_34.php @@ -133,5 +133,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_351.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_351.php index 13c280fbd..71f4541d8 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_351.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_351.php @@ -149,5 +149,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_352.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_352.php index f6d74e0a6..7e8c067b7 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_352.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_352.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_359.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_359.php index f0b4cc7ea..a18262819 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_359.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_359.php @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_372.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_372.php index d0965f796..88bcbb097 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_372.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_372.php @@ -167,5 +167,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_373.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_373.php index bd91bff19..601e83340 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_373.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_373.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_375.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_375.php index e1e015fb3..bf718ccef 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_375.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_375.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_380.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_380.php index 8272dc25d..afbe7bdea 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_380.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_380.php @@ -167,5 +167,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_385.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_385.php index 0aafd9027..51acd9c2b 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_385.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_385.php @@ -157,5 +157,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_43.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_43.php index e384690af..c0631cd3e 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_43.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_43.php @@ -194,5 +194,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_44.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_44.php index ae2a5d52c..76437499f 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_44.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_44.php @@ -174,5 +174,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_49.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_49.php index 1a20e5ca3..5f9d9f64e 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_49.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_49.php @@ -1056,5 +1056,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_55.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_55.php index 0c19eb89e..efbde6740 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_55.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_55.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_58.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_58.php index a3d112acb..c7d40577a 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_58.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_58.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_595.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_595.php index f2dfe6f4b..77c591703 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_595.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_595.php @@ -132,5 +132,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_61.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_61.php index 3c588c4b0..8b8d4179f 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_61.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_61.php @@ -172,5 +172,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_62.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_62.php index baa1951ca..f29dab96f 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_62.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_62.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_63.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_63.php index 3dbf91ee8..3a78f9dcc 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_63.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_63.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_675.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_675.php new file mode 100644 index 000000000..c2541e5d7 --- /dev/null +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_675.php @@ -0,0 +1,129 @@ + + 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' => '', + ), + 'carrierSpecific' => + array ( + 'NationalNumberPattern' => 'NA', + 'PossibleNumberPattern' => 'NA', + 'ExampleNumber' => '', + ), + 'noInternationalDialling' => + array ( + 'NationalNumberPattern' => 'NA', + 'PossibleNumberPattern' => 'NA', + 'ExampleNumber' => '', + ), + 'id' => '', + 'countryCode' => 675, + 'internationalPrefix' => '', + 'sameMobileAndFixedLinePattern' => true, + 'numberFormat' => + array ( + 0 => + array ( + 'pattern' => '(7\\d{2})(\\d{2})(\\d{3})', + 'format' => '$1 $2 $3', + 'leadingDigitsPatterns' => + array ( + 0 => '7', + ), + 'nationalPrefixFormattingRule' => '', + 'domesticCarrierCodeFormattingRule' => '', + ), + ), + 'intlNumberFormat' => + array ( + ), + 'mainCountryForCode' => NULL, + 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, +); +/* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_7.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_7.php index 00151ef89..155350bb3 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_7.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_7.php @@ -135,5 +135,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_81.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_81.php index 1b4f10341..626fca5b5 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_81.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_81.php @@ -164,5 +164,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_855.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_855.php index d1d6cae24..b257cf115 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_855.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_855.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_90.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_90.php index df3278944..6dc703ff1 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_90.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_90.php @@ -130,5 +130,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_971.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_971.php index 918b8c4dc..32137b69f 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_971.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_971.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberAlternateFormats_972.php b/src/libphonenumber/data/PhoneNumberAlternateFormats_972.php index a4255f0ae..fcbf33056 100644 --- a/src/libphonenumber/data/PhoneNumberAlternateFormats_972.php +++ b/src/libphonenumber/data/PhoneNumberAlternateFormats_972.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_800.php b/src/libphonenumber/data/PhoneNumberMetadata_800.php index d7f7f213b..429be6642 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_800.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_800.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_808.php b/src/libphonenumber/data/PhoneNumberMetadata_808.php index 963961dfc..b9df1e0f5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_808.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_808.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_870.php b/src/libphonenumber/data/PhoneNumberMetadata_870.php index dd9853e4f..fa6906db0 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_870.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_870.php @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_878.php b/src/libphonenumber/data/PhoneNumberMetadata_878.php index 89b57aea5..416c8733a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_878.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_878.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_881.php b/src/libphonenumber/data/PhoneNumberMetadata_881.php index fdd8967e3..f9ad47ae0 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_881.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_881.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_882.php b/src/libphonenumber/data/PhoneNumberMetadata_882.php index c52886399..ab4668fbe 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_882.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_882.php @@ -217,5 +217,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_883.php b/src/libphonenumber/data/PhoneNumberMetadata_883.php index f407f5938..a5e3fa878 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_883.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_883.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_888.php b/src/libphonenumber/data/PhoneNumberMetadata_888.php index d8b86f75c..1dc8757ae 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_888.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_888.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_979.php b/src/libphonenumber/data/PhoneNumberMetadata_979.php index 0c05e86f3..70c05d716 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_979.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_979.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AC.php b/src/libphonenumber/data/PhoneNumberMetadata_AC.php index 345da3412..5186295ac 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AC.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AD.php b/src/libphonenumber/data/PhoneNumberMetadata_AD.php index 61bf6d5a6..3c9c23a13 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AD.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AD.php @@ -140,5 +140,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AE.php b/src/libphonenumber/data/PhoneNumberMetadata_AE.php index 3bc105f16..6a984da99 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AE.php @@ -168,5 +168,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AF.php b/src/libphonenumber/data/PhoneNumberMetadata_AF.php index 94a72ff9b..4ebccce66 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AF.php @@ -131,5 +131,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AG.php b/src/libphonenumber/data/PhoneNumberMetadata_AG.php index f811caadc..e8be860d3 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AG.php @@ -148,5 +148,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '268', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AI.php b/src/libphonenumber/data/PhoneNumberMetadata_AI.php index 4400f21fc..2521a4202 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AI.php @@ -148,5 +148,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '264', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AL.php b/src/libphonenumber/data/PhoneNumberMetadata_AL.php index d13ee1238..097917703 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AL.php @@ -197,5 +197,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AM.php b/src/libphonenumber/data/PhoneNumberMetadata_AM.php index 4936c115b..b3c295303 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AM.php @@ -188,5 +188,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AO.php b/src/libphonenumber/data/PhoneNumberMetadata_AO.php index 47fc7ce2d..0c9209c3c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AO.php @@ -24,7 +24,7 @@ ), 'mobile' => array ( - 'NationalNumberPattern' => '9[1-4]\\d{7}', + 'NationalNumberPattern' => '9[1-49]\\d{7}', 'PossibleNumberPattern' => '\\d{9}', 'ExampleNumber' => '923123456', ), @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AR.php b/src/libphonenumber/data/PhoneNumberMetadata_AR.php index 1e55b6523..0dcef95fe 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AR.php @@ -702,5 +702,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AS.php b/src/libphonenumber/data/PhoneNumberMetadata_AS.php index 4b9b9cf7a..357a4009b 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AS.php @@ -145,5 +145,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '684', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AT.php b/src/libphonenumber/data/PhoneNumberMetadata_AT.php index 1753cd4d5..6c79a2882 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AT.php @@ -296,5 +296,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AU.php b/src/libphonenumber/data/PhoneNumberMetadata_AU.php index 64bd448e6..2cc5079f7 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AU.php @@ -63,14 +63,8 @@ ), 'premiumRate' => array ( - 'NationalNumberPattern' => ' - 19(?: - 0[0126]\\d{6}| - [13-5]\\d{3}| - [679]\\d{5} - ) - ', - 'PossibleNumberPattern' => '\\d{6,10}', + 'NationalNumberPattern' => '190[0126]\\d{6}', + 'PossibleNumberPattern' => '\\d{10}', 'ExampleNumber' => '1900123456', ), 'sharedCost' => @@ -272,5 +266,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AW.php b/src/libphonenumber/data/PhoneNumberMetadata_AW.php index cd649db2b..d46e500a5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AW.php @@ -149,5 +149,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AX.php b/src/libphonenumber/data/PhoneNumberMetadata_AX.php index 97ce89522..13959b4f2 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AX.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AX.php @@ -160,5 +160,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_AZ.php b/src/libphonenumber/data/PhoneNumberMetadata_AZ.php index b63d0db7a..5cd6d455d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_AZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_AZ.php @@ -177,5 +177,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BA.php b/src/libphonenumber/data/PhoneNumberMetadata_BA.php index 44088262b..01da90c3a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BA.php @@ -163,5 +163,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BB.php b/src/libphonenumber/data/PhoneNumberMetadata_BB.php index 6d1bdb4d0..8b26881f3 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BB.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BB.php @@ -139,5 +139,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '246', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BD.php b/src/libphonenumber/data/PhoneNumberMetadata_BD.php index 76412ef47..8a525bb29 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BD.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BD.php @@ -488,5 +488,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BE.php b/src/libphonenumber/data/PhoneNumberMetadata_BE.php index 3ea3f1150..23deb0116 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BE.php @@ -197,5 +197,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BF.php b/src/libphonenumber/data/PhoneNumberMetadata_BF.php index f75285935..013adfc77 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BF.php @@ -35,10 +35,9 @@ array ( 'NationalNumberPattern' => ' 6(?: - [0-256]\\d| + [0-24-6]\\d| 8[0-5]| 3[0-3]| - 4[0-7] )\\d{5}| 7\\d{7} ', @@ -145,5 +144,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BG.php b/src/libphonenumber/data/PhoneNumberMetadata_BG.php index cb64d1594..d5f86af07 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BG.php @@ -241,5 +241,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BH.php b/src/libphonenumber/data/PhoneNumberMetadata_BH.php index 6759eff76..c91f98eb5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BH.php @@ -181,5 +181,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BI.php b/src/libphonenumber/data/PhoneNumberMetadata_BI.php index 5fb163c69..df38f708e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BI.php @@ -133,5 +133,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BJ.php b/src/libphonenumber/data/PhoneNumberMetadata_BJ.php index 64dcab54e..c8759b06b 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BJ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BJ.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BL.php b/src/libphonenumber/data/PhoneNumberMetadata_BL.php index 286b4604d..4fc7e3d6c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BL.php @@ -126,5 +126,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BM.php b/src/libphonenumber/data/PhoneNumberMetadata_BM.php index 91de29801..95c6ffc7b 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BM.php @@ -151,5 +151,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '441', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BN.php b/src/libphonenumber/data/PhoneNumberMetadata_BN.php index 4412f219c..9d3d43591 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BN.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BO.php b/src/libphonenumber/data/PhoneNumberMetadata_BO.php index 9d86dcd72..7c40caded 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BO.php @@ -156,5 +156,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BQ.php b/src/libphonenumber/data/PhoneNumberMetadata_BQ.php index a53993424..0bde6e0e9 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BQ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BQ.php @@ -131,5 +131,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BR.php b/src/libphonenumber/data/PhoneNumberMetadata_BR.php index f5a98996b..718606996 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BR.php @@ -283,5 +283,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BS.php b/src/libphonenumber/data/PhoneNumberMetadata_BS.php index d0eb44477..f6d7e860c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BS.php @@ -176,5 +176,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '242', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BT.php b/src/libphonenumber/data/PhoneNumberMetadata_BT.php index 26911f258..69fc35b97 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BT.php @@ -150,5 +150,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BW.php b/src/libphonenumber/data/PhoneNumberMetadata_BW.php index e20b4d3b2..a505953de 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BW.php @@ -55,7 +55,7 @@ 7(?: [1-35]\\d{6}| [46][0-7]\\d{5}| - 7[01]\\d{5} + 7[0146]\\d{5} ) ', 'PossibleNumberPattern' => '\\d{8}', @@ -184,5 +184,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BY.php b/src/libphonenumber/data/PhoneNumberMetadata_BY.php index 827ea1a66..7d2ca6f9c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BY.php @@ -213,5 +213,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_BZ.php b/src/libphonenumber/data/PhoneNumberMetadata_BZ.php index 78db42ad9..650cc09ba 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_BZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_BZ.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CA.php b/src/libphonenumber/data/PhoneNumberMetadata_CA.php index 51541bcf8..2aa504e77 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CA.php @@ -33,10 +33,10 @@ 03| 1[68]| 3[178]| - 5[06] + 50 )| 5(?: - 0[06]| + 06| 1[49]| 79| 8[17] @@ -48,9 +48,9 @@ 47 )| 7(?: - 0[059]| - 80| - 78 + 0[59]| + 78| + 80 )| 8(?: [06]7| @@ -83,10 +83,10 @@ 03| 1[68]| 3[178]| - 5[06] + 50 )| 5(?: - 0[06]| + 06| 1[49]| 79| 8[17] @@ -98,9 +98,9 @@ 47 )| 7(?: - 0[059]| - 80| - 78 + 0[59]| + 78| + 80 )| 8(?: [06]7| @@ -118,7 +118,6 @@ 'NationalNumberPattern' => ' 8(?: 00| - 55| 66| 77| 88 @@ -220,5 +219,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CC.php b/src/libphonenumber/data/PhoneNumberMetadata_CC.php index 5c2192a44..b37f18fd1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CC.php @@ -135,5 +135,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CD.php b/src/libphonenumber/data/PhoneNumberMetadata_CD.php index 58ed8788a..4fbd0086f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CD.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CD.php @@ -178,5 +178,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CF.php b/src/libphonenumber/data/PhoneNumberMetadata_CF.php index 14bc00349..6f28d4355 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CF.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CG.php b/src/libphonenumber/data/PhoneNumberMetadata_CG.php index 90d08fc50..65ee873be 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CG.php @@ -135,5 +135,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CH.php b/src/libphonenumber/data/PhoneNumberMetadata_CH.php index 9c4d18e2c..ee84fe54e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CH.php @@ -21,7 +21,7 @@ 2[12467]| 3[1-4]| 4[134]| - 5[12568]| + 5[256]| 6[12]| [7-9]1 )\\d{7} @@ -31,9 +31,9 @@ ), 'mobile' => array ( - 'NationalNumberPattern' => '7[4-9]\\d{7}', + 'NationalNumberPattern' => '7[5-9]\\d{7}', 'PossibleNumberPattern' => '\\d{9}', - 'ExampleNumber' => '741234567', + 'ExampleNumber' => '781234567', ), 'tollFree' => array ( @@ -67,15 +67,15 @@ ), 'pager' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '74[0248]\\d{6}', + 'PossibleNumberPattern' => '\\d{9}', + 'ExampleNumber' => '740123456', ), 'uan' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '5[18]\\d{7}', + 'PossibleNumberPattern' => '\\d{9}', + 'ExampleNumber' => '581234567', ), 'emergency' => array ( @@ -166,5 +166,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CI.php b/src/libphonenumber/data/PhoneNumberMetadata_CI.php index e33423fe7..45769a488 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CI.php @@ -40,7 +40,7 @@ 0[1-9]| 4[0-24-9]| 5[05-9]| - 6[05679] + 6[015679] )\\d{6} ', 'PossibleNumberPattern' => '\\d{8}', @@ -146,5 +146,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CK.php b/src/libphonenumber/data/PhoneNumberMetadata_CK.php index 3d77bf209..7d9a74372 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CK.php @@ -134,5 +134,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CL.php b/src/libphonenumber/data/PhoneNumberMetadata_CL.php index 77dffb9c8..e40ddabfd 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CL.php @@ -302,5 +302,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CM.php b/src/libphonenumber/data/PhoneNumberMetadata_CM.php index 27edcce0b..b0dbf6f3c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CM.php @@ -143,5 +143,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CN.php b/src/libphonenumber/data/PhoneNumberMetadata_CN.php index e01c125f0..e9a769c8a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CN.php @@ -8,7 +8,11 @@ 'generalDesc' => array ( 'NationalNumberPattern' => ' - [1-7]\\d{6,11}| + 1(?: + 00\\d{2}| + \\d{6,11} + )| + [2-7]\\d{6,11}| 8[0-357-9]\\d{6,9}| 9(?: 5\\d{3,4}| @@ -22,6 +26,7 @@ array ( 'NationalNumberPattern' => ' 21(?: + 100\\d{2}| 95\\d{3,4}| \\d{8,10} )| @@ -55,6 +60,7 @@ 98 ) )(?: + 100\\d{2}| 95\\d{3,4}| \\d{8} )| @@ -117,6 +123,7 @@ 5[1-5] ) )(?: + 100\\d{2}| 95\\d{3,4}| \\d{7} )| @@ -187,9 +194,9 @@ ), 'uan' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '100\\d{2}', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '10000', ), 'emergency' => array ( @@ -224,13 +231,14 @@ 'noInternationalDialling' => array ( 'NationalNumberPattern' => ' + 100\\d{2}| (?: 4| (?: 10 )?8 )00\\d{7}| - 95\\d{3} + 95\\d{3,4} ', 'PossibleNumberPattern' => '\\d{5,12}', 'ExampleNumber' => '4001234567', @@ -268,11 +276,14 @@ ), 2 => array ( - 'pattern' => '(\\d{5})', + 'pattern' => '(\\d{5,6})', 'format' => '$1', 'leadingDigitsPatterns' => array ( - 0 => '95', + 0 => ' + 100| + 95 + ', ), 'nationalPrefixFormattingRule' => '', 'domesticCarrierCodeFormattingRule' => '', @@ -287,13 +298,25 @@ (?: 10| 2\\d - )9 + )[19] ', 1 => ' (?: 10| 2\\d - )95 + )(?: + 10| + 95 + ) + ', + 2 => ' + (?: + 10| + 2\\d + )(?: + 100| + 95 + ) ', ), 'nationalPrefixFormattingRule' => '0$1', @@ -306,8 +329,13 @@ 'leadingDigitsPatterns' => array ( 0 => '[3-9]', - 1 => '[3-9]\\d{2}9', - 2 => '[3-9]\\d{2}95', + 1 => '[3-9]\\d{2}[19]', + 2 => ' + [3-9]\\d{2}(?: + 10| + 95 + ) + ', ), 'nationalPrefixFormattingRule' => '0$1', 'domesticCarrierCodeFormattingRule' => '$CC $1', @@ -512,15 +540,6 @@ ), ), 2 => - array ( - 'pattern' => '(\\d{5})', - 'format' => '$1', - 'leadingDigitsPatterns' => - array ( - 0 => '95', - ), - ), - 3 => array ( 'pattern' => '(\\d{2})(\\d{5,6})', 'format' => '$1 $2', @@ -530,28 +549,45 @@ (?: 10| 2\\d - )9 + )[19] ', 1 => ' (?: 10| 2\\d - )95 + )(?: + 10| + 95 + ) + ', + 2 => ' + (?: + 10| + 2\\d + )(?: + 100| + 95 + ) ', ), ), - 4 => + 3 => array ( 'pattern' => '(\\d{3})(\\d{5,6})', 'format' => '$1 $2', 'leadingDigitsPatterns' => array ( 0 => '[3-9]', - 1 => '[3-9]\\d{2}9', - 2 => '[3-9]\\d{2}95', + 1 => '[3-9]\\d{2}[19]', + 2 => ' + [3-9]\\d{2}(?: + 10| + 95 + ) + ', ), ), - 5 => + 4 => array ( 'pattern' => '(21)(\\d{4})(\\d{4,6})', 'format' => '$1 $2 $3', @@ -560,7 +596,7 @@ 0 => '21', ), ), - 6 => + 5 => array ( 'pattern' => '([12]\\d)(\\d{4})(\\d{4})', 'format' => '$1 $2 $3', @@ -586,7 +622,7 @@ ', ), ), - 7 => + 6 => array ( 'pattern' => '(\\d{3})(\\d{4})(\\d{4})', 'format' => '$1 $2 $3', @@ -622,7 +658,7 @@ ', ), ), - 8 => + 7 => array ( 'pattern' => '(\\d{3})(\\d{3})(\\d{4})', 'format' => '$1 $2 $3', @@ -686,7 +722,7 @@ ', ), ), - 9 => + 8 => array ( 'pattern' => '(1[3-58]\\d)(\\d{4})(\\d{4})', 'format' => '$1 $2 $3', @@ -695,7 +731,7 @@ 0 => '1[3-58]', ), ), - 10 => + 9 => array ( 'pattern' => '(10800)(\\d{3})(\\d{4})', 'format' => '$1 $2 $3', @@ -709,5 +745,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CO.php b/src/libphonenumber/data/PhoneNumberMetadata_CO.php index 671b29d41..1f1d856fb 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CO.php @@ -255,5 +255,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CR.php b/src/libphonenumber/data/PhoneNumberMetadata_CR.php index 486091263..fdac1b46c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CR.php @@ -167,5 +167,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CU.php b/src/libphonenumber/data/PhoneNumberMetadata_CU.php index c7868c661..39342be77 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CU.php @@ -160,5 +160,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CV.php b/src/libphonenumber/data/PhoneNumberMetadata_CV.php index 723d61a6a..3464093f9 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CV.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CV.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CW.php b/src/libphonenumber/data/PhoneNumberMetadata_CW.php index f21ea8b2b..f88576322 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CW.php @@ -162,5 +162,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CX.php b/src/libphonenumber/data/PhoneNumberMetadata_CX.php index b56630c55..3cbc38a90 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CX.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CX.php @@ -135,5 +135,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CY.php b/src/libphonenumber/data/PhoneNumberMetadata_CY.php index c2fd2ac0a..18b2a7cb1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CY.php @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_CZ.php b/src/libphonenumber/data/PhoneNumberMetadata_CZ.php index 62f36f1c2..f78cd3967 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_CZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_CZ.php @@ -182,5 +182,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_DE.php b/src/libphonenumber/data/PhoneNumberMetadata_DE.php index 0806ae036..cd003f37c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_DE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_DE.php @@ -30,8 +30,9 @@ 'NationalNumberPattern' => ' [246]\\d{5,13}| 3(?: - [03-9]\\d{4,13}| - 2\\d{9} + 0\\d{3,13}| + 2\\d{9}| + [3-9]\\d{4,13} )| 5(?: 0[2-8]| @@ -197,7 +198,7 @@ ), 2 => array ( - 'pattern' => '(\\d{2})(\\d{4,11})', + 'pattern' => '(\\d{2})(\\d{3,11})', 'format' => '$1 $2', 'leadingDigitsPatterns' => array ( @@ -450,5 +451,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_DJ.php b/src/libphonenumber/data/PhoneNumberMetadata_DJ.php index 09bbcaed3..bb955c95a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_DJ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_DJ.php @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_DK.php b/src/libphonenumber/data/PhoneNumberMetadata_DK.php index 4fb75f8a0..21ad28130 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_DK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_DK.php @@ -135,5 +135,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_DM.php b/src/libphonenumber/data/PhoneNumberMetadata_DM.php index f9008cee1..4ff04f03f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_DM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_DM.php @@ -151,5 +151,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '767', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_DO.php b/src/libphonenumber/data/PhoneNumberMetadata_DO.php index e0d66cecb..fa1aaebe0 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_DO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_DO.php @@ -180,5 +180,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '8[024]9', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_DZ.php b/src/libphonenumber/data/PhoneNumberMetadata_DZ.php index c8f157567..ddedb941c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_DZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_DZ.php @@ -170,5 +170,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_EC.php b/src/libphonenumber/data/PhoneNumberMetadata_EC.php index 5d7f11f2f..b392fa5a6 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_EC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_EC.php @@ -192,5 +192,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_EE.php b/src/libphonenumber/data/PhoneNumberMetadata_EE.php index 0f915ca87..c816e0b2c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_EE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_EE.php @@ -249,5 +249,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_EG.php b/src/libphonenumber/data/PhoneNumberMetadata_EG.php index 9143036f3..65623d5f5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_EG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_EG.php @@ -202,5 +202,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_EH.php b/src/libphonenumber/data/PhoneNumberMetadata_EH.php index e11b1b538..2d365a01d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_EH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_EH.php @@ -124,5 +124,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '528[89]', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ER.php b/src/libphonenumber/data/PhoneNumberMetadata_ER.php index 281c5f6b4..81d071aa0 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ER.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ER.php @@ -137,5 +137,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ES.php b/src/libphonenumber/data/PhoneNumberMetadata_ES.php index 71e838602..51496ccdb 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ES.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ES.php @@ -173,5 +173,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ET.php b/src/libphonenumber/data/PhoneNumberMetadata_ET.php index fa0a9771d..addd60415 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ET.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ET.php @@ -245,5 +245,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_FI.php b/src/libphonenumber/data/PhoneNumberMetadata_FI.php index 2ac77c3cc..f5534283e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_FI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_FI.php @@ -214,5 +214,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_FJ.php b/src/libphonenumber/data/PhoneNumberMetadata_FJ.php index 74a62de76..0f1a3478c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_FJ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_FJ.php @@ -151,5 +151,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_FK.php b/src/libphonenumber/data/PhoneNumberMetadata_FK.php index 6bf7c7ca7..b2be31547 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_FK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_FK.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_FM.php b/src/libphonenumber/data/PhoneNumberMetadata_FM.php index f00a3f419..45fef5d19 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_FM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_FM.php @@ -129,5 +129,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_FO.php b/src/libphonenumber/data/PhoneNumberMetadata_FO.php index bb8ffe0b2..a4f5ccdf7 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_FO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_FO.php @@ -147,5 +147,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_FR.php b/src/libphonenumber/data/PhoneNumberMetadata_FR.php index a4060250e..a99419238 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_FR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_FR.php @@ -7,11 +7,8 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => ' - [124-9]\\d{8}| - 3\\d{3}(?:\\d{5})? - ', - 'PossibleNumberPattern' => '\\d{4}(?:\\d{5})?', + 'NationalNumberPattern' => '[1-9]\\d{8}', + 'PossibleNumberPattern' => '\\d{9}', 'ExampleNumber' => '', ), 'fixedLine' => @@ -37,11 +34,8 @@ ), 'premiumRate' => array ( - 'NationalNumberPattern' => ' - 3\\d{3}| - 89[1-37-9]\\d{6} - ', - 'PossibleNumberPattern' => '\\d{4}(?:\\d{5})?', + 'NationalNumberPattern' => '89[1-37-9]\\d{6}', + 'PossibleNumberPattern' => '\\d{9}', 'ExampleNumber' => '891123456', ), 'sharedCost' => @@ -113,14 +107,13 @@ ), 'noInternationalDialling' => array ( - 'NationalNumberPattern' => '3\\d{3}', - 'PossibleNumberPattern' => '\\d{4}', - 'ExampleNumber' => '3123', + 'NationalNumberPattern' => 'NA', + 'PossibleNumberPattern' => 'NA', + 'ExampleNumber' => '', ), 'id' => 'FR', 'countryCode' => 33, - 'internationalPrefix' => '[04579]0', - 'preferredInternationalPrefix' => '00', + 'internationalPrefix' => '00', 'nationalPrefix' => '0', 'nationalPrefixForParsing' => '0', 'sameMobileAndFixedLinePattern' => false, @@ -138,6 +131,17 @@ 'domesticCarrierCodeFormattingRule' => '', ), 1 => + array ( + 'pattern' => '(1\\d{2})(\\d{3})', + 'format' => '$1 $2', + 'leadingDigitsPatterns' => + array ( + 0 => '11', + ), + 'nationalPrefixFormattingRule' => '$1', + 'domesticCarrierCodeFormattingRule' => '', + ), + 2 => array ( 'pattern' => '(8\\d{2})(\\d{2})(\\d{2})(\\d{2})', 'format' => '$1 $2 $3 $4', @@ -151,8 +155,27 @@ ), 'intlNumberFormat' => array ( + 0 => + array ( + 'pattern' => '([1-79])(\\d{2})(\\d{2})(\\d{2})(\\d{2})', + 'format' => '$1 $2 $3 $4 $5', + 'leadingDigitsPatterns' => + array ( + 0 => '[1-79]', + ), + ), + 1 => + array ( + 'pattern' => '(8\\d{2})(\\d{2})(\\d{2})(\\d{2})', + 'format' => '$1 $2 $3 $4', + 'leadingDigitsPatterns' => + array ( + 0 => '8', + ), + ), ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GA.php b/src/libphonenumber/data/PhoneNumberMetadata_GA.php index d98e66b7d..001574752 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GA.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GB.php b/src/libphonenumber/data/PhoneNumberMetadata_GB.php index c83eee476..3dc2707fc 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GB.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GB.php @@ -605,5 +605,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GD.php b/src/libphonenumber/data/PhoneNumberMetadata_GD.php index 46c64bc21..312c26342 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GD.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GD.php @@ -166,5 +166,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '473', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GE.php b/src/libphonenumber/data/PhoneNumberMetadata_GE.php index 503f6cdae..3d11a55f1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GE.php @@ -172,5 +172,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GF.php b/src/libphonenumber/data/PhoneNumberMetadata_GF.php index 33574a29e..71ce96e96 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GF.php @@ -142,5 +142,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GG.php b/src/libphonenumber/data/PhoneNumberMetadata_GG.php index cc63a6219..fdbe0f8ff 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GG.php @@ -163,5 +163,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GH.php b/src/libphonenumber/data/PhoneNumberMetadata_GH.php index 63a3834be..2523b0007 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GH.php @@ -178,5 +178,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GI.php b/src/libphonenumber/data/PhoneNumberMetadata_GI.php index db6c0811d..b586b6df7 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GI.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GL.php b/src/libphonenumber/data/PhoneNumberMetadata_GL.php index 5fd225877..5095023b9 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GL.php @@ -131,5 +131,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GM.php b/src/libphonenumber/data/PhoneNumberMetadata_GM.php index c7ee623a5..a8610536d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GM.php @@ -151,5 +151,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GN.php b/src/libphonenumber/data/PhoneNumberMetadata_GN.php index 5905e6580..5eea92e7c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GN.php @@ -152,5 +152,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GP.php b/src/libphonenumber/data/PhoneNumberMetadata_GP.php index c6224dea1..1e44a44d3 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GP.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GP.php @@ -143,5 +143,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GQ.php b/src/libphonenumber/data/PhoneNumberMetadata_GQ.php index 345b751ba..00be3fbf2 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GQ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GQ.php @@ -148,5 +148,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GR.php b/src/libphonenumber/data/PhoneNumberMetadata_GR.php index a51bad841..7da1e2b31 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GR.php @@ -217,5 +217,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GT.php b/src/libphonenumber/data/PhoneNumberMetadata_GT.php index e021eee6e..6856b2a3f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GT.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GU.php b/src/libphonenumber/data/PhoneNumberMetadata_GU.php index 3dfe8e64e..84539953a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GU.php @@ -218,5 +218,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '671', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GW.php b/src/libphonenumber/data/PhoneNumberMetadata_GW.php index 76b198554..0123d5652 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GW.php @@ -137,5 +137,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_GY.php b/src/libphonenumber/data/PhoneNumberMetadata_GY.php index 00ee1a646..7284d834f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_GY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_GY.php @@ -148,5 +148,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_HK.php b/src/libphonenumber/data/PhoneNumberMetadata_HK.php index bf938106c..589a7c2f0 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_HK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_HK.php @@ -186,5 +186,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_HN.php b/src/libphonenumber/data/PhoneNumberMetadata_HN.php index 4ebd3670d..f5d095f8b 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_HN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_HN.php @@ -164,5 +164,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_HR.php b/src/libphonenumber/data/PhoneNumberMetadata_HR.php index a00e43d09..32c0ce4ec 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_HR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_HR.php @@ -258,5 +258,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_HT.php b/src/libphonenumber/data/PhoneNumberMetadata_HT.php index 13a7a286c..ed4c54deb 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_HT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_HT.php @@ -134,5 +134,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_HU.php b/src/libphonenumber/data/PhoneNumberMetadata_HU.php index c3cb2c55f..00e9438a1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_HU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_HU.php @@ -160,5 +160,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ID.php b/src/libphonenumber/data/PhoneNumberMetadata_ID.php index c8f172ec3..2eac39612 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ID.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ID.php @@ -335,5 +335,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IE.php b/src/libphonenumber/data/PhoneNumberMetadata_IE.php index 34efcc02c..52657c8b1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IE.php @@ -282,5 +282,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IL.php b/src/libphonenumber/data/PhoneNumberMetadata_IL.php index b9f71f116..5fd018b99 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IL.php @@ -260,5 +260,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IM.php b/src/libphonenumber/data/PhoneNumberMetadata_IM.php index 49b30ed88..b507b1c2a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IM.php @@ -143,5 +143,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IN.php b/src/libphonenumber/data/PhoneNumberMetadata_IN.php index d0804fe24..a5982c6da 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IN.php @@ -717,5 +717,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IO.php b/src/libphonenumber/data/PhoneNumberMetadata_IO.php index 55529213a..918f5e2de 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IO.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IQ.php b/src/libphonenumber/data/PhoneNumberMetadata_IQ.php index 387c1eec8..78b42a37a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IQ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IQ.php @@ -157,5 +157,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IR.php b/src/libphonenumber/data/PhoneNumberMetadata_IR.php index 33c4ccd1c..80883b133 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IR.php @@ -304,5 +304,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IS.php b/src/libphonenumber/data/PhoneNumberMetadata_IS.php index 6f41a1193..db76ed11a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IS.php @@ -198,5 +198,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_IT.php b/src/libphonenumber/data/PhoneNumberMetadata_IT.php index 99b9f794b..ee6e397d2 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_IT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_IT.php @@ -369,5 +369,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_JE.php b/src/libphonenumber/data/PhoneNumberMetadata_JE.php index db4c45ee7..357742603 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_JE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_JE.php @@ -205,5 +205,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_JM.php b/src/libphonenumber/data/PhoneNumberMetadata_JM.php index 4c4a11408..1db3a022d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_JM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_JM.php @@ -183,5 +183,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '876', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_JO.php b/src/libphonenumber/data/PhoneNumberMetadata_JO.php index 68c9080f9..ed9e74be1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_JO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_JO.php @@ -240,5 +240,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_JP.php b/src/libphonenumber/data/PhoneNumberMetadata_JP.php index cc5f0c619..fe7913ecb 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_JP.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_JP.php @@ -1106,5 +1106,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KE.php b/src/libphonenumber/data/PhoneNumberMetadata_KE.php index 5873c7647..6e9981e6f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KE.php @@ -174,5 +174,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KG.php b/src/libphonenumber/data/PhoneNumberMetadata_KG.php index d555c5c58..197672109 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KG.php @@ -213,5 +213,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KH.php b/src/libphonenumber/data/PhoneNumberMetadata_KH.php index e51a0cb53..3c0934d6b 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KH.php @@ -185,5 +185,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KI.php b/src/libphonenumber/data/PhoneNumberMetadata_KI.php index 16c45e561..352c420d9 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KI.php @@ -126,5 +126,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KM.php b/src/libphonenumber/data/PhoneNumberMetadata_KM.php index b619f3bac..9f9589d87 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KM.php @@ -133,5 +133,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KN.php b/src/libphonenumber/data/PhoneNumberMetadata_KN.php index f3e395e5a..ea9642cfb 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KN.php @@ -151,5 +151,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '869', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KP.php b/src/libphonenumber/data/PhoneNumberMetadata_KP.php index 663cc810f..9eb7e40ec 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KP.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KP.php @@ -165,5 +165,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KR.php b/src/libphonenumber/data/PhoneNumberMetadata_KR.php index 06b0d2d2f..e1158ec88 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KR.php @@ -326,5 +326,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KW.php b/src/libphonenumber/data/PhoneNumberMetadata_KW.php index 22ffdc1c0..cd7197e97 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KW.php @@ -173,5 +173,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KY.php b/src/libphonenumber/data/PhoneNumberMetadata_KY.php index 8e1cc2ac2..9e73cc0d4 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KY.php @@ -176,5 +176,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '345', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_KZ.php b/src/libphonenumber/data/PhoneNumberMetadata_KZ.php index 982b47863..50946224a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_KZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_KZ.php @@ -229,5 +229,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LA.php b/src/libphonenumber/data/PhoneNumberMetadata_LA.php index 5f42d3074..4fe2c917f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LA.php @@ -154,5 +154,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LB.php b/src/libphonenumber/data/PhoneNumberMetadata_LB.php index be353ed2f..6510519db 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LB.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LB.php @@ -173,5 +173,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LC.php b/src/libphonenumber/data/PhoneNumberMetadata_LC.php index ac99560db..a06f2e615 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LC.php @@ -161,5 +161,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '758', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LI.php b/src/libphonenumber/data/PhoneNumberMetadata_LI.php index 0294fa16d..c9a3cd0d1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LI.php @@ -253,5 +253,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LK.php b/src/libphonenumber/data/PhoneNumberMetadata_LK.php index 9f11daa1e..56a2524be 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LK.php @@ -146,5 +146,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LR.php b/src/libphonenumber/data/PhoneNumberMetadata_LR.php index 326398005..bcf568f8c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LR.php @@ -174,5 +174,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LS.php b/src/libphonenumber/data/PhoneNumberMetadata_LS.php index 457900fc3..0c33d6de7 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LS.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LT.php b/src/libphonenumber/data/PhoneNumberMetadata_LT.php index 04561c639..ea38227be 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LT.php @@ -185,5 +185,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LU.php b/src/libphonenumber/data/PhoneNumberMetadata_LU.php index c1d8f3e4e..6c64e0b13 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LU.php @@ -313,5 +313,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LV.php b/src/libphonenumber/data/PhoneNumberMetadata_LV.php index d07dd7098..137f3b331 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LV.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LV.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_LY.php b/src/libphonenumber/data/PhoneNumberMetadata_LY.php index 60e4817b6..5d32667ad 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_LY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_LY.php @@ -132,5 +132,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MA.php b/src/libphonenumber/data/PhoneNumberMetadata_MA.php index e4d8d70a9..4387a83f8 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MA.php @@ -53,7 +53,7 @@ [124-7]\\d| 3[013-8]| 8[01]| - 99 + 9[89] )\\d{6} ', 'PossibleNumberPattern' => '\\d{9}', @@ -236,5 +236,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MC.php b/src/libphonenumber/data/PhoneNumberMetadata_MC.php index 3901c0078..4324a3975 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MC.php @@ -156,5 +156,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MD.php b/src/libphonenumber/data/PhoneNumberMetadata_MD.php index deee5b500..dbdc95153 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MD.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MD.php @@ -190,5 +190,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ME.php b/src/libphonenumber/data/PhoneNumberMetadata_ME.php index a0396541f..b5f7cce62 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ME.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ME.php @@ -187,5 +187,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MF.php b/src/libphonenumber/data/PhoneNumberMetadata_MF.php index d2676b027..8a26336ce 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MF.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MG.php b/src/libphonenumber/data/PhoneNumberMetadata_MG.php index 4bc6614bc..232bb23f7 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MG.php @@ -143,5 +143,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MH.php b/src/libphonenumber/data/PhoneNumberMetadata_MH.php index 2a29c211f..7ab822e0f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MH.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MK.php b/src/libphonenumber/data/PhoneNumberMetadata_MK.php index bca93e231..5e6984a39 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MK.php @@ -178,5 +178,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ML.php b/src/libphonenumber/data/PhoneNumberMetadata_ML.php index d898f0c04..a1a6e46f6 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ML.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ML.php @@ -165,5 +165,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MM.php b/src/libphonenumber/data/PhoneNumberMetadata_MM.php index 74719c664..38722be89 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MM.php @@ -308,5 +308,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MN.php b/src/libphonenumber/data/PhoneNumberMetadata_MN.php index 4ceda2e57..51ea2ae3b 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MN.php @@ -212,5 +212,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MO.php b/src/libphonenumber/data/PhoneNumberMetadata_MO.php index d3fe05f7d..0e7ea4a8f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MO.php @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MP.php b/src/libphonenumber/data/PhoneNumberMetadata_MP.php index 80449008b..ed3f7b3f2 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MP.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MP.php @@ -182,5 +182,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '670', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MQ.php b/src/libphonenumber/data/PhoneNumberMetadata_MQ.php index 8b08a4524..a9b8ad7de 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MQ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MQ.php @@ -141,5 +141,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MR.php b/src/libphonenumber/data/PhoneNumberMetadata_MR.php index 1844b75d9..09fa26087 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MR.php @@ -37,7 +37,8 @@ 4(?: 4\\d| 6[0457-9]| - 7[4-9] + 7[4-9]| + 8[01346-8] ) )\\d{5} ', @@ -144,5 +145,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MS.php b/src/libphonenumber/data/PhoneNumberMetadata_MS.php index c1096d9f9..dc19280b7 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MS.php @@ -130,5 +130,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '664', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MT.php b/src/libphonenumber/data/PhoneNumberMetadata_MT.php index 344258938..af0da4423 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MT.php @@ -164,5 +164,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MU.php b/src/libphonenumber/data/PhoneNumberMetadata_MU.php index 5b72af2a2..e6d0ab075 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MU.php @@ -21,13 +21,12 @@ 6[1-69] )| 4(?: - [013-68]\\d| - 2[4-7]| - 71 + [013568]\\d| + 2[4-7] )| 5( 44\\d| - 471| + 471 )| 6\\d{2}| 8(?: @@ -42,7 +41,7 @@ 'mobile' => array ( 'NationalNumberPattern' => ' - 5?(?: + 5(?: 2[59]\\d| 4(?: 2[1-389]| @@ -58,7 +57,7 @@ 9[0-8]\\d )\\d{4} ', - 'PossibleNumberPattern' => '\\d{7,8}', + 'PossibleNumberPattern' => '\\d{8}', 'ExampleNumber' => '52512345', ), 'tollFree' => @@ -179,5 +178,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MV.php b/src/libphonenumber/data/PhoneNumberMetadata_MV.php index a51d60751..12b5a678e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MV.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MV.php @@ -166,5 +166,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MW.php b/src/libphonenumber/data/PhoneNumberMetadata_MW.php index e92d7b766..ecefa0757 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MW.php @@ -167,5 +167,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MX.php b/src/libphonenumber/data/PhoneNumberMetadata_MX.php index 13d46b3b4..8a3762b84 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MX.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MX.php @@ -378,5 +378,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MY.php b/src/libphonenumber/data/PhoneNumberMetadata_MY.php index 6546b07f8..1ab6b25f3 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MY.php @@ -199,5 +199,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_MZ.php b/src/libphonenumber/data/PhoneNumberMetadata_MZ.php index ad712398f..49bf57f4a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_MZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_MZ.php @@ -145,5 +145,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NA.php b/src/libphonenumber/data/PhoneNumberMetadata_NA.php index 667fdba1e..d18bb6331 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NA.php @@ -258,5 +258,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NC.php b/src/libphonenumber/data/PhoneNumberMetadata_NC.php index e5ed2006b..d0025622d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NC.php @@ -140,5 +140,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NE.php b/src/libphonenumber/data/PhoneNumberMetadata_NE.php index b77f0c09a..878893434 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NE.php @@ -161,5 +161,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NF.php b/src/libphonenumber/data/PhoneNumberMetadata_NF.php index c739a28e7..d14e6ff0e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NF.php @@ -145,5 +145,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NG.php b/src/libphonenumber/data/PhoneNumberMetadata_NG.php index 6482b4a7c..3ee7b3df0 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NG.php @@ -298,5 +298,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NI.php b/src/libphonenumber/data/PhoneNumberMetadata_NI.php index 7f63bc0db..3bcd59128 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NI.php @@ -7,7 +7,7 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[128]\\d{7}', + 'NationalNumberPattern' => '[1258]\\d{7}', 'PossibleNumberPattern' => '\\d{8}', 'ExampleNumber' => '', ), @@ -19,7 +19,10 @@ ), 'mobile' => array ( - 'NationalNumberPattern' => '8\\d{7}', + 'NationalNumberPattern' => ' + 5500\\d{4}| + 8\\d{7} + ', 'PossibleNumberPattern' => '\\d{8}', 'ExampleNumber' => '81234567', ), @@ -123,5 +126,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NL.php b/src/libphonenumber/data/PhoneNumberMetadata_NL.php index f2053b8ab..3e70e2b68 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NL.php @@ -236,5 +236,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NO.php b/src/libphonenumber/data/PhoneNumberMetadata_NO.php index d246379be..98bfcbf3d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NO.php @@ -166,5 +166,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NP.php b/src/libphonenumber/data/PhoneNumberMetadata_NP.php index 781958ed0..8b6cbea9e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NP.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NP.php @@ -184,5 +184,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NR.php b/src/libphonenumber/data/PhoneNumberMetadata_NR.php index c2d6a4fc3..087511cf5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NR.php @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NU.php b/src/libphonenumber/data/PhoneNumberMetadata_NU.php index 4ca1ead83..698f79ebe 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NU.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_NZ.php b/src/libphonenumber/data/PhoneNumberMetadata_NZ.php index ab8ee38d1..cdbcda214 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_NZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_NZ.php @@ -225,5 +225,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_OM.php b/src/libphonenumber/data/PhoneNumberMetadata_OM.php index 796903410..1c44295a1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_OM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_OM.php @@ -156,5 +156,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PA.php b/src/libphonenumber/data/PhoneNumberMetadata_PA.php index 1dbe38429..d305004d6 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PA.php @@ -235,5 +235,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PE.php b/src/libphonenumber/data/PhoneNumberMetadata_PE.php index b295f9d33..420b17be2 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PE.php @@ -172,5 +172,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PF.php b/src/libphonenumber/data/PhoneNumberMetadata_PF.php index 1cb4baf38..8b22287b4 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PF.php @@ -152,5 +152,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PG.php b/src/libphonenumber/data/PhoneNumberMetadata_PG.php index 510ce0d9c..a31cdb742 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PG.php @@ -15,12 +15,13 @@ array ( 'NationalNumberPattern' => ' (?: - 3\\d{2}| - 4[257]\\d| + 3[0-2]\\d| + 4[25]\\d| 5[34]\\d| - 6(?: - 29| - 4[1-9] + 64[1-9]| + 77(?: + [0-24]\\d| + 30 )| 85[02-46-9]| 9[78]\\d @@ -34,7 +35,10 @@ 'NationalNumberPattern' => ' (?: 68| - 7[0-36]\\d + 7(?: + [0-369]\\d| + 75 + ) )\\d{5} ', 'PossibleNumberPattern' => '\\d{7,8}', @@ -137,8 +141,8 @@ ), 1 => array ( - 'pattern' => '(7\\d{2})(\\d{2})(\\d{3})', - 'format' => '$1 $2 $3', + 'pattern' => '(7\\d{3})(\\d{4})', + 'format' => '$1 $2', 'leadingDigitsPatterns' => array ( 0 => '7', @@ -152,5 +156,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PH.php b/src/libphonenumber/data/PhoneNumberMetadata_PH.php index f23464bd4..28e0d5235 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PH.php @@ -310,5 +310,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PK.php b/src/libphonenumber/data/PhoneNumberMetadata_PK.php index 4987614a5..f568c4871 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PK.php @@ -408,5 +408,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PL.php b/src/libphonenumber/data/PhoneNumberMetadata_PL.php index c163d74fd..57c6b3853 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PL.php @@ -216,5 +216,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PM.php b/src/libphonenumber/data/PhoneNumberMetadata_PM.php index 3e63141a5..c9a5d8a50 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PM.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PR.php b/src/libphonenumber/data/PhoneNumberMetadata_PR.php index 457a918df..856683102 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PR.php @@ -140,5 +140,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '787|939', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PS.php b/src/libphonenumber/data/PhoneNumberMetadata_PS.php index cdf6d6c6f..9ce40f407 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PS.php @@ -166,5 +166,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PT.php b/src/libphonenumber/data/PhoneNumberMetadata_PT.php index 3eb160e2e..7d05738a5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PT.php @@ -170,5 +170,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PW.php b/src/libphonenumber/data/PhoneNumberMetadata_PW.php index eb7892224..dbb457cb6 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PW.php @@ -154,5 +154,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_PY.php b/src/libphonenumber/data/PhoneNumberMetadata_PY.php index 5b0371e65..5bbaf6a57 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_PY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_PY.php @@ -234,5 +234,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_QA.php b/src/libphonenumber/data/PhoneNumberMetadata_QA.php index 7a60f5332..f27be2c39 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_QA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_QA.php @@ -140,5 +140,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_RE.php b/src/libphonenumber/data/PhoneNumberMetadata_RE.php index 1f891351b..aeeaa2143 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_RE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_RE.php @@ -138,5 +138,6 @@ 'mainCountryForCode' => true, 'leadingDigits' => '262|6[49]|8', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_RO.php b/src/libphonenumber/data/PhoneNumberMetadata_RO.php index 2f21fdb48..49decde0f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_RO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_RO.php @@ -184,5 +184,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_RS.php b/src/libphonenumber/data/PhoneNumberMetadata_RS.php index 000e8a795..c6e586551 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_RS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_RS.php @@ -233,5 +233,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_RU.php b/src/libphonenumber/data/PhoneNumberMetadata_RU.php index 2ea3ed51f..ded9e5b86 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_RU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_RU.php @@ -194,5 +194,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_RW.php b/src/libphonenumber/data/PhoneNumberMetadata_RW.php index 424412dd8..27d539334 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_RW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_RW.php @@ -151,5 +151,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SA.php b/src/libphonenumber/data/PhoneNumberMetadata_SA.php index 38acd6589..1bc42a6c1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SA.php @@ -22,15 +22,13 @@ 'fixedLine' => array ( 'NationalNumberPattern' => ' - (?: - 11?\\d| - 1?(?: - 2[24-8]| - 3[35-8]| - 4[3-68]| - 6[2-5]| - 7[235-7] - ) + 11\\d{7}| + 1?(?: + 2[24-8]| + 3[35-8]| + 4[3-68]| + 6[2-5]| + 7[235-7] )\\d{6} ', 'PossibleNumberPattern' => '\\d{7,9}', @@ -172,7 +170,7 @@ 'format' => '$1 $2', 'leadingDigitsPatterns' => array ( - 0 => '9', + 0 => '92', ), 'nationalPrefixFormattingRule' => '$1', 'domesticCarrierCodeFormattingRule' => '', @@ -205,5 +203,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SB.php b/src/libphonenumber/data/PhoneNumberMetadata_SB.php index 4ab830510..3e773e50a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SB.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SB.php @@ -147,5 +147,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SC.php b/src/libphonenumber/data/PhoneNumberMetadata_SC.php index f2ea590ea..32016ebed 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SC.php @@ -136,5 +136,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SD.php b/src/libphonenumber/data/PhoneNumberMetadata_SD.php index fc31dc3c0..ddfef9a29 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SD.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SD.php @@ -130,5 +130,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SE.php b/src/libphonenumber/data/PhoneNumberMetadata_SE.php index 980f7f173..833c40887 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SE.php @@ -7,7 +7,7 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[1-9]\\d{6,9}', + 'NationalNumberPattern' => '[1-9]\\d{5,9}', 'PossibleNumberPattern' => '\\d{5,10}', 'ExampleNumber' => '', ), @@ -49,9 +49,10 @@ )\\d{5,6} )| 4(?: - [0246]\\d{5,7}| + 0[1-9]\\d{4,6}| + [246]\\d{5,7}| (?: - 1[0-8]| + 1[013-8]| 3[0135]| 5[14-79]| 7[0-246-9]| @@ -71,7 +72,8 @@ 9[01] )\\d{5,6}| 6(?: - [03]\\d{5,7}| + 0[1-9]\\d{4,6}| + 3\\d{5,7}| (?: 1[1-3]| 2[0-4]| @@ -83,14 +85,15 @@ 9[0-356] )\\d{5,6} )| - 8\\d{6,8}| + 8[1-9]\\d{5,7}| 9(?: - 0\\d{5,7}| + 0[1-9]\\d{4,6}| (?: 1[0-68]| 2\\d| - 3[02-59]| - [45][0-4]| + 3[02-5]| + 4[0-3]| + 5[0-4]| [68][01]| 7[0135-8] )\\d{5,6} @@ -107,9 +110,24 @@ ), 'tollFree' => array ( - 'NationalNumberPattern' => '20\\d{4,7}', + 'NationalNumberPattern' => ' + 20(?: + 0(?: + 0\\d{2}| + [1-9](?: + 0\\d{1,4}| + [1-9]\\d{4} + ) + )| + 1(?: + 0\\d{4}| + [1-9]\\d{4,5} + )| + [2-9]\\d{5} + ) + ', 'PossibleNumberPattern' => '\\d{6,9}', - 'ExampleNumber' => '201234567', + 'ExampleNumber' => '20123456', ), 'premiumRate' => array ( @@ -118,20 +136,64 @@ 00| 39| 44 - )\\d{7} + )(?: + 1(?: + [0-26]\\d{5}| + [3-57-9]\\d{2} + )| + 2(?: + [0-2]\\d{5}| + [3-9]\\d{2} + )| + 3(?: + [0139]\\d{5}| + [24-8]\\d{2} + )| + 4(?: + [045]\\d{5}| + [1-36-9]\\d{2} + )| + 5(?: + 5\\d{5}| + [0-46-9]\\d{2} + )| + 6(?: + [679]\\d{5}| + [0-58]\\d{2} + )| + 7(?: + [078]\\d{5}| + [1-69]\\d{2} + )| + 8(?: + [578]\\d{5}| + [0-469]\\d{2} + ) + ) ', - 'PossibleNumberPattern' => '\\d{10}', + 'PossibleNumberPattern' => '\\d{7}(?:\\d{3})?', 'ExampleNumber' => '9001234567', ), 'sharedCost' => array ( - 'NationalNumberPattern' => '77\\d{7}', - 'PossibleNumberPattern' => '\\d{9}', + 'NationalNumberPattern' => ' + 77(?: + 0(?: + 0\\d{2}| + [1-9](?: + 0\\d| + [1-9]\\d{4} + ) + )| + [1-6][1-9]\\d{5} + ) + ', + 'PossibleNumberPattern' => '\\d{6}(?:\\d{3})?', 'ExampleNumber' => '771234567', ), 'personalNumber' => array ( - 'NationalNumberPattern' => '75\\d{7}', + 'NationalNumberPattern' => '75[1-8]\\d{6}', 'PossibleNumberPattern' => '\\d{9}', 'ExampleNumber' => '751234567', ), @@ -143,9 +205,9 @@ ), 'pager' => array ( - 'NationalNumberPattern' => '74\\d{7}', + 'NationalNumberPattern' => '74[02-9]\\d{6}', 'PossibleNumberPattern' => '\\d{9}', - 'ExampleNumber' => '741234567', + 'ExampleNumber' => '740123456', ), 'uan' => array ( @@ -304,6 +366,17 @@ 'domesticCarrierCodeFormattingRule' => '', ), 6 => + array ( + 'pattern' => '(77)(\\d{2})(\\d{2})', + 'format' => '$1-$2$3', + 'leadingDigitsPatterns' => + array ( + 0 => '7', + ), + 'nationalPrefixFormattingRule' => '0$1', + 'domesticCarrierCodeFormattingRule' => '', + ), + 7 => array ( 'pattern' => '(20)(\\d{2,3})(\\d{2})', 'format' => '$1-$2 $3', @@ -314,7 +387,7 @@ 'nationalPrefixFormattingRule' => '0$1', 'domesticCarrierCodeFormattingRule' => '', ), - 7 => + 8 => array ( 'pattern' => '(9[034]\\d)(\\d{2})(\\d{2})(\\d{3})', 'format' => '$1-$2 $3 $4', @@ -325,6 +398,17 @@ 'nationalPrefixFormattingRule' => '0$1', 'domesticCarrierCodeFormattingRule' => '', ), + 9 => + array ( + 'pattern' => '(9[034]\\d)(\\d{4})', + 'format' => '$1-$2', + 'leadingDigitsPatterns' => + array ( + 0 => '9[034]', + ), + 'nationalPrefixFormattingRule' => '0$1', + 'domesticCarrierCodeFormattingRule' => '', + ), ), 'intlNumberFormat' => array ( @@ -423,6 +507,15 @@ ), ), 6 => + array ( + 'pattern' => '(77)(\\d{2})(\\d{2})', + 'format' => '$1 $2 $3', + 'leadingDigitsPatterns' => + array ( + 0 => '7', + ), + ), + 7 => array ( 'pattern' => '(20)(\\d{2,3})(\\d{2})', 'format' => '$1 $2 $3', @@ -431,7 +524,7 @@ 0 => '20', ), ), - 7 => + 8 => array ( 'pattern' => '(9[034]\\d)(\\d{2})(\\d{2})(\\d{3})', 'format' => '$1 $2 $3 $4', @@ -440,8 +533,18 @@ 0 => '9[034]', ), ), + 9 => + array ( + 'pattern' => '(9[034]\\d)(\\d{4})', + 'format' => '$1 $2', + 'leadingDigitsPatterns' => + array ( + 0 => '9[034]', + ), + ), ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SG.php b/src/libphonenumber/data/PhoneNumberMetadata_SG.php index 1bd966c18..5417443b1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SG.php @@ -168,5 +168,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SH.php b/src/libphonenumber/data/PhoneNumberMetadata_SH.php index bbf9a3f0d..b1597a3c9 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SH.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SI.php b/src/libphonenumber/data/PhoneNumberMetadata_SI.php index 378821552..211cf3c2f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SI.php @@ -199,5 +199,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SJ.php b/src/libphonenumber/data/PhoneNumberMetadata_SJ.php index a2a697120..8c5347c59 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SJ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SJ.php @@ -136,5 +136,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SK.php b/src/libphonenumber/data/PhoneNumberMetadata_SK.php index a1dd273e8..b16cbe8e5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SK.php @@ -175,5 +175,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SL.php b/src/libphonenumber/data/PhoneNumberMetadata_SL.php index 60f2ab3fc..13eb9338d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SL.php @@ -134,5 +134,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SM.php b/src/libphonenumber/data/PhoneNumberMetadata_SM.php index b11421ef6..de25028cb 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SM.php @@ -180,5 +180,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SN.php b/src/libphonenumber/data/PhoneNumberMetadata_SN.php index da5235f20..1f5c5b87a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SN.php @@ -160,5 +160,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SO.php b/src/libphonenumber/data/PhoneNumberMetadata_SO.php index 518bd78a4..c9b039d28 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SO.php @@ -190,5 +190,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SR.php b/src/libphonenumber/data/PhoneNumberMetadata_SR.php index 24f37741f..dc070f004 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SR.php @@ -162,5 +162,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SS.php b/src/libphonenumber/data/PhoneNumberMetadata_SS.php index c344ca397..cd8a32556 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SS.php @@ -130,5 +130,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ST.php b/src/libphonenumber/data/PhoneNumberMetadata_ST.php index a7e60d67c..62b30acba 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ST.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ST.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SV.php b/src/libphonenumber/data/PhoneNumberMetadata_SV.php index b500da09c..e1cc9f1e5 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SV.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SV.php @@ -152,5 +152,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SX.php b/src/libphonenumber/data/PhoneNumberMetadata_SX.php index 14c5eca01..e917d473d 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SX.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SX.php @@ -143,5 +143,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '721', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SY.php b/src/libphonenumber/data/PhoneNumberMetadata_SY.php index 0b8b12f4e..d47871f1c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SY.php @@ -161,5 +161,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_SZ.php b/src/libphonenumber/data/PhoneNumberMetadata_SZ.php index 047955640..db77a3bc7 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_SZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_SZ.php @@ -149,5 +149,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TA.php b/src/libphonenumber/data/PhoneNumberMetadata_TA.php index 1b9eb9c80..f422a43ec 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TA.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TC.php b/src/libphonenumber/data/PhoneNumberMetadata_TC.php index 5771e96ac..d2e7cd01a 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TC.php @@ -150,5 +150,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '649', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TD.php b/src/libphonenumber/data/PhoneNumberMetadata_TD.php index 829eaa341..29cbec727 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TD.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TD.php @@ -139,5 +139,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TG.php b/src/libphonenumber/data/PhoneNumberMetadata_TG.php index cef9ace6e..94306ef9b 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TG.php @@ -132,5 +132,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TH.php b/src/libphonenumber/data/PhoneNumberMetadata_TH.php index 8e46241df..c9ff1fbc6 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TH.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TH.php @@ -159,5 +159,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TJ.php b/src/libphonenumber/data/PhoneNumberMetadata_TJ.php index ed6233773..5ddbd550c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TJ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TJ.php @@ -203,5 +203,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TK.php b/src/libphonenumber/data/PhoneNumberMetadata_TK.php index 0312e0a19..1af74a2b2 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TK.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TK.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TL.php b/src/libphonenumber/data/PhoneNumberMetadata_TL.php index 70bfb54ef..b57a25dc1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TL.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TL.php @@ -144,5 +144,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TM.php b/src/libphonenumber/data/PhoneNumberMetadata_TM.php index 8af4c07db..9195bfa9f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TM.php @@ -178,5 +178,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TN.php b/src/libphonenumber/data/PhoneNumberMetadata_TN.php index e97f0cbe1..5e5674a05 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TN.php @@ -134,5 +134,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TO.php b/src/libphonenumber/data/PhoneNumberMetadata_TO.php index aa3e6717d..f52d377a9 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TO.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TO.php @@ -167,5 +167,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TR.php b/src/libphonenumber/data/PhoneNumberMetadata_TR.php index 47bb4d6ae..1efaa3e6c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TR.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TR.php @@ -188,5 +188,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TT.php b/src/libphonenumber/data/PhoneNumberMetadata_TT.php index b28c99f91..9eca765f8 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TT.php @@ -168,5 +168,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '868', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TV.php b/src/libphonenumber/data/PhoneNumberMetadata_TV.php index 2434d82e2..421d20e08 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TV.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TV.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TW.php b/src/libphonenumber/data/PhoneNumberMetadata_TW.php index ed1d92ae6..62816fef6 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TW.php @@ -144,5 +144,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_TZ.php b/src/libphonenumber/data/PhoneNumberMetadata_TZ.php index 368308f79..9a00ffd59 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_TZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_TZ.php @@ -158,5 +158,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_UA.php b/src/libphonenumber/data/PhoneNumberMetadata_UA.php index 1f4811336..56cd28876 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_UA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_UA.php @@ -282,5 +282,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_UG.php b/src/libphonenumber/data/PhoneNumberMetadata_UG.php index ef14fb0be..ae53135db 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_UG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_UG.php @@ -184,5 +184,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_US.php b/src/libphonenumber/data/PhoneNumberMetadata_US.php index 8ecd1dc3e..d2f28e31f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_US.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_US.php @@ -23,7 +23,7 @@ 4[08]| 5[1-46]| 6[0279]| - 7[06]| + 7[026]| 8[13] )| 3(?: @@ -73,7 +73,7 @@ 0[1-46-8]| 1[02-9]| 2[047]| - 3[124]| + 3[1247]| 4[07]| 5[47]| 6[02359]| @@ -117,7 +117,7 @@ 4[08]| 5[1-46]| 6[0279]| - 7[06]| + 7[026]| 8[13] )| 3(?: @@ -167,7 +167,7 @@ 0[1-46-8]| 1[02-9]| 2[047]| - 3[124]| + 3[1247]| 4[07]| 5[47]| 6[02359]| @@ -333,5 +333,6 @@ ), 'mainCountryForCode' => true, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_UY.php b/src/libphonenumber/data/PhoneNumberMetadata_UY.php index 888368fd3..766887389 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_UY.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_UY.php @@ -153,5 +153,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_UZ.php b/src/libphonenumber/data/PhoneNumberMetadata_UZ.php index 1a1768889..84e02e2e2 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_UZ.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_UZ.php @@ -439,5 +439,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_VA.php b/src/libphonenumber/data/PhoneNumberMetadata_VA.php index c36911259..c1d8a342e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_VA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_VA.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => true, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_VC.php b/src/libphonenumber/data/PhoneNumberMetadata_VC.php index fed4d958b..74d1b1196 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_VC.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_VC.php @@ -161,5 +161,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '784', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_VE.php b/src/libphonenumber/data/PhoneNumberMetadata_VE.php index 45b3f8e9c..fadc4f8fe 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_VE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_VE.php @@ -141,5 +141,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_VG.php b/src/libphonenumber/data/PhoneNumberMetadata_VG.php index 0a3369f01..6c84684d8 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_VG.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_VG.php @@ -162,5 +162,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '284', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_VI.php b/src/libphonenumber/data/PhoneNumberMetadata_VI.php index 8d1d5d456..f429361d1 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_VI.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_VI.php @@ -37,6 +37,7 @@ 6(?: 26| 4[23]| + 77| 9[023] )| 7(?: @@ -76,6 +77,7 @@ 6(?: 26| 4[23]| + 77| 9[023] )| 7(?: @@ -196,5 +198,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '340', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_VN.php b/src/libphonenumber/data/PhoneNumberMetadata_VN.php index 80367559d..3a3e512b6 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_VN.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_VN.php @@ -279,5 +279,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_VU.php b/src/libphonenumber/data/PhoneNumberMetadata_VU.php index 340f7ddf4..a6046b4ec 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_VU.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_VU.php @@ -145,5 +145,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_WF.php b/src/libphonenumber/data/PhoneNumberMetadata_WF.php index 01547c1a2..6eeaabd46 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_WF.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_WF.php @@ -135,5 +135,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_WS.php b/src/libphonenumber/data/PhoneNumberMetadata_WS.php index a0cef8cae..56b320c0e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_WS.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_WS.php @@ -146,5 +146,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_YE.php b/src/libphonenumber/data/PhoneNumberMetadata_YE.php index 296f89153..72c3a1a3f 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_YE.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_YE.php @@ -153,5 +153,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_YT.php b/src/libphonenumber/data/PhoneNumberMetadata_YT.php index 5eae7a378..1db2ba299 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_YT.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_YT.php @@ -116,5 +116,6 @@ 'mainCountryForCode' => NULL, 'leadingDigits' => '269|63', 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ZA.php b/src/libphonenumber/data/PhoneNumberMetadata_ZA.php index 7af3a8170..2d618467e 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ZA.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ZA.php @@ -188,5 +188,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => true, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ZM.php b/src/libphonenumber/data/PhoneNumberMetadata_ZM.php index 05c3912c8..1e8014e5c 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ZM.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ZM.php @@ -143,5 +143,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/PhoneNumberMetadata_ZW.php b/src/libphonenumber/data/PhoneNumberMetadata_ZW.php index 830557563..ede73bf61 100644 --- a/src/libphonenumber/data/PhoneNumberMetadata_ZW.php +++ b/src/libphonenumber/data/PhoneNumberMetadata_ZW.php @@ -414,5 +414,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AC.php b/src/libphonenumber/data/ShortNumberMetadata_AC.php index 5abed6a6e..e8f76af3a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AC.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AD.php b/src/libphonenumber/data/ShortNumberMetadata_AD.php index cea111796..1b2da9930 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AD.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AD.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AE.php b/src/libphonenumber/data/ShortNumberMetadata_AE.php index 7bde059de..305e7e7e1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AE.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AF.php b/src/libphonenumber/data/ShortNumberMetadata_AF.php index bb757b735..92dcf2f30 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AF.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AF.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AG.php b/src/libphonenumber/data/ShortNumberMetadata_AG.php index 3bab28083..7adcaafeb 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AG.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AI.php b/src/libphonenumber/data/ShortNumberMetadata_AI.php index c5ef2ed80..185368d8a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AI.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AL.php b/src/libphonenumber/data/ShortNumberMetadata_AL.php index c880ddb74..de7edd6f9 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AL.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AM.php b/src/libphonenumber/data/ShortNumberMetadata_AM.php index fd2bf578c..b087337ed 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AM.php @@ -118,5 +118,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AO.php b/src/libphonenumber/data/ShortNumberMetadata_AO.php index d2b9fb48f..8914630ec 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AO.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AR.php b/src/libphonenumber/data/ShortNumberMetadata_AR.php index 6fc93e778..13d366195 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AR.php @@ -131,5 +131,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AS.php b/src/libphonenumber/data/ShortNumberMetadata_AS.php index cf794b4a9..7208e59ad 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AS.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AS.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AT.php b/src/libphonenumber/data/ShortNumberMetadata_AT.php index cc4a4878f..6301e08fa 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AT.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AU.php b/src/libphonenumber/data/ShortNumberMetadata_AU.php index a21e6c5cc..df02ce56b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AU.php @@ -7,33 +7,56 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[01]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => ' + [027]\\d{2}| + 1\\d{2,7} + ', + 'PossibleNumberPattern' => '\\d{3,8}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[01]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => ' + [027]\\d{2}| + 1\\d{2,7} + ', + 'PossibleNumberPattern' => '\\d{3,8}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[01]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => ' + [027]\\d{2}| + 1\\d{2,7} + ', + 'PossibleNumberPattern' => '\\d{3,8}', 'ExampleNumber' => '', ), 'tollFree' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 1(?: + 258885| + 555 + )| + 733 + ', + 'PossibleNumberPattern' => '\\d{3,7}', + 'ExampleNumber' => '733', ), 'premiumRate' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 1(?: + 2(?: + 34| + 456 + )| + 9\\d{4,6} + ) + ', + 'PossibleNumberPattern' => '\\d{4,8}', + 'ExampleNumber' => '191123', ), 'sharedCost' => array ( @@ -69,7 +92,10 @@ array ( 'NationalNumberPattern' => ' 000| - 112 + 1(?: + 06| + 12 + ) ', 'PossibleNumberPattern' => '\\d{3}', 'ExampleNumber' => '112', @@ -84,22 +110,60 @@ array ( 'NationalNumberPattern' => ' 000| - 112 + 1(?: + 06| + 1(?: + 00| + 2| + 9[46] + )| + 2(?: + [23]\\d| + 4\\d{2,3}| + 5\\d{3,4}| + 8(?: + 2| + [013-9]\\d + ) + )| + 555| + 9(?: + [13-5]\\d{3}| + [679]\\d{5} + ) + )| + 225| + 7(?: + 33| + 67 + ) ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,8}', 'ExampleNumber' => '112', ), 'standardRate' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 1(?: + 1\\d{2}| + 24733 + )| + 225| + 767 + ', + 'PossibleNumberPattern' => '\\d{3,6}', + 'ExampleNumber' => '225', ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 1(?: + 258885| + 555 + ) + ', + 'PossibleNumberPattern' => '\\d{4,7}', + 'ExampleNumber' => '1555', ), 'noInternationalDialling' => array ( @@ -119,5 +183,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AW.php b/src/libphonenumber/data/ShortNumberMetadata_AW.php index cbcd47f86..828ef66c1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AW.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AX.php b/src/libphonenumber/data/ShortNumberMetadata_AX.php index 9b1200b0b..f702eb96c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AX.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AX.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_AZ.php b/src/libphonenumber/data/ShortNumberMetadata_AZ.php index c54e97008..5e9d48a16 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_AZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_AZ.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BA.php b/src/libphonenumber/data/ShortNumberMetadata_BA.php index 41eb1e21c..32847afab 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BA.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BB.php b/src/libphonenumber/data/ShortNumberMetadata_BB.php index 87de684ed..01440a4d1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BB.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BB.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BD.php b/src/libphonenumber/data/ShortNumberMetadata_BD.php index 2eb1f2c86..fbcbbf26f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BD.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BD.php @@ -145,5 +145,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BE.php b/src/libphonenumber/data/ShortNumberMetadata_BE.php index dfce8c3e9..1e166ad56 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BE.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BF.php b/src/libphonenumber/data/ShortNumberMetadata_BF.php index bab032d5b..35c22b262 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BF.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BF.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BG.php b/src/libphonenumber/data/ShortNumberMetadata_BG.php index c7cda1ef3..f823e2505 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BG.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BH.php b/src/libphonenumber/data/ShortNumberMetadata_BH.php index 554b10ca1..8a99be2a6 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BH.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BI.php b/src/libphonenumber/data/ShortNumberMetadata_BI.php index 895791798..ce4eba652 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BI.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BJ.php b/src/libphonenumber/data/ShortNumberMetadata_BJ.php index 0cc146c24..51fe53709 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BJ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BJ.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BL.php b/src/libphonenumber/data/ShortNumberMetadata_BL.php index de55a47ce..a767efc49 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BL.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BM.php b/src/libphonenumber/data/ShortNumberMetadata_BM.php index 930e9d87c..e19e5e730 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BN.php b/src/libphonenumber/data/ShortNumberMetadata_BN.php index 3bafbdca0..7b6ac6831 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BN.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BO.php b/src/libphonenumber/data/ShortNumberMetadata_BO.php index 6ac6d2e6a..ace5922cc 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BO.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BQ.php b/src/libphonenumber/data/ShortNumberMetadata_BQ.php index 405dcc4da..0fe537113 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BQ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BQ.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BR.php b/src/libphonenumber/data/ShortNumberMetadata_BR.php index 74e7d77b7..d82f77fde 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BR.php @@ -7,19 +7,19 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[149]\\d{2,4}', + 'NationalNumberPattern' => '[1249]\\d{2,4}', 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[149]\\d{2,4}', + 'NationalNumberPattern' => '[1249]\\d{2,4}', 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[149]\\d{2,4}', + 'NationalNumberPattern' => '[1249]\\d{2,4}', 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), @@ -102,8 +102,9 @@ 2[38]| 68| 81| - 9[0-4789] + 9[0-5789] )| + 27878| 40404| 911 ', @@ -118,9 +119,12 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 27878| + 40404 + ', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '27878', ), 'noInternationalDialling' => array ( @@ -140,5 +144,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BS.php b/src/libphonenumber/data/ShortNumberMetadata_BS.php index 4a5db1f85..822cb34d9 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BS.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BS.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BT.php b/src/libphonenumber/data/ShortNumberMetadata_BT.php index 549a3c225..c78718e99 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BT.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BW.php b/src/libphonenumber/data/ShortNumberMetadata_BW.php index daa113fe5..8644f2d22 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BW.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BY.php b/src/libphonenumber/data/ShortNumberMetadata_BY.php index 3b8d88537..51166c8a3 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BY.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_BZ.php b/src/libphonenumber/data/ShortNumberMetadata_BZ.php index eeeb27187..f1d2d0a2b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_BZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_BZ.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CA.php b/src/libphonenumber/data/ShortNumberMetadata_CA.php index 1f3fe9aa7..e501756b8 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CA.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CC.php b/src/libphonenumber/data/ShortNumberMetadata_CC.php index 15ee1a768..69a05d84b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CC.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CH.php b/src/libphonenumber/data/ShortNumberMetadata_CH.php index 497b16106..d17e2d252 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CH.php @@ -167,5 +167,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CI.php b/src/libphonenumber/data/ShortNumberMetadata_CI.php index 3f35d1023..41118b2b7 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CI.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CK.php b/src/libphonenumber/data/ShortNumberMetadata_CK.php index 0cae89710..a7ace98d9 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CK.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CL.php b/src/libphonenumber/data/ShortNumberMetadata_CL.php index 7b92c139d..ae59c314a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CL.php @@ -298,5 +298,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CM.php b/src/libphonenumber/data/ShortNumberMetadata_CM.php index 3d4ad544e..3f49ec408 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CN.php b/src/libphonenumber/data/ShortNumberMetadata_CN.php index 2a48c5caf..269781a9c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CN.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CO.php b/src/libphonenumber/data/ShortNumberMetadata_CO.php index 5c9e347c2..1e52de7f8 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CO.php @@ -131,5 +131,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CR.php b/src/libphonenumber/data/ShortNumberMetadata_CR.php index 7031fb615..31f660000 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CR.php @@ -157,5 +157,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CU.php b/src/libphonenumber/data/ShortNumberMetadata_CU.php index 8ac9f2177..e1814a485 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CU.php @@ -122,5 +122,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CV.php b/src/libphonenumber/data/ShortNumberMetadata_CV.php index 3c8899628..3f1bd2030 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CV.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CV.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CW.php b/src/libphonenumber/data/ShortNumberMetadata_CW.php index 61a3e969f..3eed9b649 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CW.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CX.php b/src/libphonenumber/data/ShortNumberMetadata_CX.php index 9c9e6d13f..3f2b751f3 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CX.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CX.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CY.php b/src/libphonenumber/data/ShortNumberMetadata_CY.php index 1f0743130..72f00fd16 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CY.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_CZ.php b/src/libphonenumber/data/ShortNumberMetadata_CZ.php index 5a3d8db9d..be482a159 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_CZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_CZ.php @@ -131,5 +131,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_DE.php b/src/libphonenumber/data/ShortNumberMetadata_DE.php index de5a756a3..2bc44fd74 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_DE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_DE.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_DJ.php b/src/libphonenumber/data/ShortNumberMetadata_DJ.php index d4ab231c6..433a6dfb8 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_DJ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_DJ.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_DK.php b/src/libphonenumber/data/ShortNumberMetadata_DK.php index 817013324..8e93d7cae 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_DK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_DK.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_DM.php b/src/libphonenumber/data/ShortNumberMetadata_DM.php index 3c1298ce9..c48dc963c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_DM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_DM.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_DO.php b/src/libphonenumber/data/ShortNumberMetadata_DO.php index 3039217d1..2597bf24d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_DO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_DO.php @@ -72,7 +72,7 @@ 911 ', 'PossibleNumberPattern' => '\\d{3}', - 'ExampleNumber' => '911', + 'ExampleNumber' => '112', ), 'voicemail' => array ( @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_DZ.php b/src/libphonenumber/data/ShortNumberMetadata_DZ.php index 6031e1065..7c3e19c01 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_DZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_DZ.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_EC.php b/src/libphonenumber/data/ShortNumberMetadata_EC.php index 0b5fcd25f..9c6226c54 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_EC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_EC.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_EE.php b/src/libphonenumber/data/ShortNumberMetadata_EE.php index a27813a62..c680d0a04 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_EE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_EE.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_EG.php b/src/libphonenumber/data/ShortNumberMetadata_EG.php index e5dbab02f..9f78cd199 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_EG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_EG.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[13]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[13]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[13]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -88,9 +88,10 @@ 1(?: 2[23]| 80 - ) + )| + 34400 ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '122', ), 'standardRate' => @@ -101,9 +102,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '34400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '34400', ), 'noInternationalDialling' => array ( @@ -123,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_EH.php b/src/libphonenumber/data/ShortNumberMetadata_EH.php index 4ac248fda..275b7e613 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_EH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_EH.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ES.php b/src/libphonenumber/data/ShortNumberMetadata_ES.php index 112e1905e..6eb8289a6 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ES.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ES.php @@ -190,5 +190,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ET.php b/src/libphonenumber/data/ShortNumberMetadata_ET.php index 6ed2707fa..8ebbfdb87 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ET.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ET.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_FI.php b/src/libphonenumber/data/ShortNumberMetadata_FI.php index 0e8d6b102..21d4cde65 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_FI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_FI.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_FJ.php b/src/libphonenumber/data/ShortNumberMetadata_FJ.php index 3a5ab1e37..9111234d6 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_FJ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_FJ.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_FK.php b/src/libphonenumber/data/ShortNumberMetadata_FK.php index 9641c004a..f9c13242a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_FK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_FK.php @@ -116,5 +116,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_FM.php b/src/libphonenumber/data/ShortNumberMetadata_FM.php index 9c69367c4..b14afc3f4 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_FM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_FM.php @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_FO.php b/src/libphonenumber/data/ShortNumberMetadata_FO.php index c76774d1c..045f35065 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_FO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_FO.php @@ -120,5 +120,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_FR.php b/src/libphonenumber/data/ShortNumberMetadata_FR.php index df120e87b..c9a945774 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_FR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_FR.php @@ -9,8 +9,9 @@ array ( 'NationalNumberPattern' => ' 1\\d{1,5}| + [27]\\d{2,4}| 3\\d{3,4}| - [4-8]\\d{4} + [4-68]\\d{4} ', 'PossibleNumberPattern' => '\\d{2,6}', 'ExampleNumber' => '', @@ -19,8 +20,9 @@ array ( 'NationalNumberPattern' => ' 1\\d{1,5}| + [27]\\d{2,4}| 3\\d{3,4}| - [4-8]\\d{4} + [4-68]\\d{4} ', 'PossibleNumberPattern' => '\\d{2,6}', 'ExampleNumber' => '', @@ -29,8 +31,9 @@ array ( 'NationalNumberPattern' => ' 1\\d{1,5}| + [27]\\d{2,4}| 3\\d{3,4}| - [4-8]\\d{4} + [4-68]\\d{4} ', 'PossibleNumberPattern' => '\\d{2,6}', 'ExampleNumber' => '', @@ -39,39 +42,42 @@ array ( 'NationalNumberPattern' => ' 1(?: + 0(?: + 07| + 13 + )| 1(?: - [02459]| + [0459]| 6\\d{3}| - 8710 - )| - [578] + 871[03] + ) )| - 3[01]\\d{2} + 224| + 3(?: + [01]\\d{2}| + 3700 + )| + 740 ', - 'PossibleNumberPattern' => '\\d{2,6}', + 'PossibleNumberPattern' => '\\d{3,6}', 'ExampleNumber' => '3010', ), 'premiumRate' => array ( 'NationalNumberPattern' => ' - (?: - 1(?: - 0| - 18( - [0-68]\\d{3}| - 7(?: - 0\\d| - 1[1-9]| - [2-9]\\d - ) - ) - )| - 3[2-9]| - [4-8]\\d{2} - )\\d{2} + 118( + [0-68]\\d{2}| + 7(?: + 0\\d| + 1[1-9]| + [2-9]\\d + ) + )| + 36665| + [4-8]\\d{4} ', - 'PossibleNumberPattern' => '\\d{4,6}', - 'ExampleNumber' => '3200', + 'PossibleNumberPattern' => '\\d{5,6}', + 'ExampleNumber' => '42000', ), 'sharedCost' => array ( @@ -132,22 +138,47 @@ )| [578] )| - 3\\d{3} + 2(?: + 0000| + 24 + )| + 3\\d{3,4}| + 7(?: + 0[06]| + 22| + 40| + \\d{4} + )| + [4-68]\\d{4} ', 'PossibleNumberPattern' => '\\d{2,6}', 'ExampleNumber' => '1010', ), 'standardRate' => array ( - 'NationalNumberPattern' => '118777', - 'PossibleNumberPattern' => '\\d{6}', - 'ExampleNumber' => '118777', + 'NationalNumberPattern' => ' + 1023| + 3(?: + 646| + 900 + )| + 70[06] + ', + 'PossibleNumberPattern' => '\\d{3,4}', + 'ExampleNumber' => '1023', ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 118777| + 2(?: + 0000| + 24 + )| + 7\\d{2} + ', + 'PossibleNumberPattern' => '\\d{3,6}', + 'ExampleNumber' => '118777', ), 'noInternationalDialling' => array ( @@ -167,5 +198,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GA.php b/src/libphonenumber/data/ShortNumberMetadata_GA.php index dff05e37a..fbda1f674 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GA.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GB.php b/src/libphonenumber/data/ShortNumberMetadata_GB.php index 767a005ef..5e3f910fc 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GB.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GB.php @@ -160,5 +160,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GD.php b/src/libphonenumber/data/ShortNumberMetadata_GD.php index c030540b5..564cfce41 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GD.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GD.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GE.php b/src/libphonenumber/data/ShortNumberMetadata_GE.php index 840706981..2f5d77a9d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GE.php @@ -133,5 +133,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GF.php b/src/libphonenumber/data/ShortNumberMetadata_GF.php index 27275cd1e..3ea5ac4b7 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GF.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GF.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GG.php b/src/libphonenumber/data/ShortNumberMetadata_GG.php index 45d3bc91f..c733cf180 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GG.php @@ -133,5 +133,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GH.php b/src/libphonenumber/data/ShortNumberMetadata_GH.php index 4c07ff8e3..e86bf7c39 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GH.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[1589]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[1589]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[1589]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'tollFree' => @@ -84,9 +84,13 @@ array ( 'NationalNumberPattern' => ' 19[123]| + (?: + 54| + 83 + )00| 999 ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '999', ), 'standardRate' => @@ -97,9 +101,14 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + (?: + 54| + 83 + )00 + ', + 'PossibleNumberPattern' => '\\d{4}', + 'ExampleNumber' => '5400', ), 'noInternationalDialling' => array ( @@ -119,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GI.php b/src/libphonenumber/data/ShortNumberMetadata_GI.php index afc55fa36..d2fc1db3a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GI.php @@ -142,5 +142,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GL.php b/src/libphonenumber/data/ShortNumberMetadata_GL.php index 8f65cf407..225866d94 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GL.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GM.php b/src/libphonenumber/data/ShortNumberMetadata_GM.php index 2e351adb7..52181a78d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GP.php b/src/libphonenumber/data/ShortNumberMetadata_GP.php index f7a62a7f4..3345ac1be 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GP.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GP.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GR.php b/src/libphonenumber/data/ShortNumberMetadata_GR.php index 8960e2b19..b9efd2d51 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GR.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GT.php b/src/libphonenumber/data/ShortNumberMetadata_GT.php index 7c866e3a1..21f471697 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GT.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GU.php b/src/libphonenumber/data/ShortNumberMetadata_GU.php index f4bb26b58..35ff8b33f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GU.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GW.php b/src/libphonenumber/data/ShortNumberMetadata_GW.php index e2fb2bcdd..0f2156cf5 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GW.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_GY.php b/src/libphonenumber/data/ShortNumberMetadata_GY.php index ec00f4d57..21a9c102c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_GY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_GY.php @@ -126,5 +126,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_HK.php b/src/libphonenumber/data/ShortNumberMetadata_HK.php index 531804400..887eb7138 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_HK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_HK.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_HN.php b/src/libphonenumber/data/ShortNumberMetadata_HN.php index fff77225d..d89a9dfb1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_HN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_HN.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_HR.php b/src/libphonenumber/data/ShortNumberMetadata_HR.php index c4ca04a8c..a8356a5a4 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_HR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_HR.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_HT.php b/src/libphonenumber/data/ShortNumberMetadata_HT.php index 7705453fd..06e9053e3 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_HT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_HT.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_HU.php b/src/libphonenumber/data/ShortNumberMetadata_HU.php index 63b42969b..f043f2124 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_HU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_HU.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ID.php b/src/libphonenumber/data/ShortNumberMetadata_ID.php index 3cecdd1b9..aea4dc08d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ID.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ID.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[17]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[17]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[17]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -79,8 +79,11 @@ ), 'shortCode' => array ( - 'NationalNumberPattern' => '11[02389]', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => ' + 11[02389]| + 71400 + ', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '112', ), 'standardRate' => @@ -91,9 +94,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '71400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '71400', ), 'noInternationalDialling' => array ( @@ -113,5 +116,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IE.php b/src/libphonenumber/data/ShortNumberMetadata_IE.php index bfa2d66e9..e8c3e3508 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_IE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_IE.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IL.php b/src/libphonenumber/data/ShortNumberMetadata_IL.php index 65d15e8cb..0ac4d394a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_IL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_IL.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '1\\d{2,3}', - 'PossibleNumberPattern' => '\\d{3,4}', + 'NationalNumberPattern' => '1\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '1\\d{2,3}', - 'PossibleNumberPattern' => '\\d{3,4}', + 'NationalNumberPattern' => '1\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '1\\d{2,3}', - 'PossibleNumberPattern' => '\\d{3,4}', + 'NationalNumberPattern' => '1\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -86,7 +86,10 @@ array ( 'NationalNumberPattern' => ' 1(?: - 0[012]| + 0(?: + [012]| + 400 + )| 1(?: [013-9]\\d| 2 @@ -94,7 +97,7 @@ [2-9]\\d{2} ) ', - 'PossibleNumberPattern' => '\\d{3,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '1455', ), 'standardRate' => @@ -105,9 +108,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '10400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '10400', ), 'noInternationalDialling' => array ( @@ -127,5 +130,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IM.php b/src/libphonenumber/data/ShortNumberMetadata_IM.php index c224cd2a0..762c50973 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_IM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_IM.php @@ -116,5 +116,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IN.php b/src/libphonenumber/data/ShortNumberMetadata_IN.php index 459f7267d..7f0a88d90 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_IN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_IN.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IQ.php b/src/libphonenumber/data/ShortNumberMetadata_IQ.php new file mode 100644 index 000000000..43acddc7d --- /dev/null +++ b/src/libphonenumber/data/ShortNumberMetadata_IQ.php @@ -0,0 +1,130 @@ + + array ( + 'NationalNumberPattern' => '1\\d{2}', + 'PossibleNumberPattern' => '\\d{3}', + 'ExampleNumber' => '', + ), + 'fixedLine' => + array ( + 'NationalNumberPattern' => '1\\d{2}', + 'PossibleNumberPattern' => '\\d{3}', + 'ExampleNumber' => '', + ), + 'mobile' => + array ( + 'NationalNumberPattern' => '1\\d{2}', + 'PossibleNumberPattern' => '\\d{3}', + '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' => ' + 1(?: + 0[04]| + 15| + 22 + ) + ', + 'PossibleNumberPattern' => '\\d{3}', + 'ExampleNumber' => '122', + ), + 'voicemail' => + array ( + 'NationalNumberPattern' => 'NA', + 'PossibleNumberPattern' => 'NA', + 'ExampleNumber' => '', + ), + 'shortCode' => + array ( + 'NationalNumberPattern' => ' + 1(?: + 0[04]| + 15| + 22 + ) + ', + 'PossibleNumberPattern' => '\\d{3}', + 'ExampleNumber' => '122', + ), + 'standardRate' => + array ( + 'NationalNumberPattern' => 'NA', + 'PossibleNumberPattern' => 'NA', + 'ExampleNumber' => '', + ), + 'carrierSpecific' => + array ( + 'NationalNumberPattern' => 'NA', + 'PossibleNumberPattern' => 'NA', + 'ExampleNumber' => '', + ), + 'noInternationalDialling' => + array ( + 'NationalNumberPattern' => 'NA', + 'PossibleNumberPattern' => 'NA', + 'ExampleNumber' => '', + ), + 'id' => 'IQ', + 'countryCode' => 0, + 'internationalPrefix' => '', + 'sameMobileAndFixedLinePattern' => true, + 'numberFormat' => + array ( + ), + 'intlNumberFormat' => + array ( + ), + 'mainCountryForCode' => NULL, + 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, +); +/* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IR.php b/src/libphonenumber/data/ShortNumberMetadata_IR.php index b039b4625..a301756e8 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_IR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_IR.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IS.php b/src/libphonenumber/data/ShortNumberMetadata_IS.php index c9df47837..acbd4bc6e 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_IS.php +++ b/src/libphonenumber/data/ShortNumberMetadata_IS.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_IT.php b/src/libphonenumber/data/ShortNumberMetadata_IT.php index 06b358bb6..8466d74cb 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_IT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_IT.php @@ -174,5 +174,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_JE.php b/src/libphonenumber/data/ShortNumberMetadata_JE.php index e38b23fe5..55e9150a0 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_JE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_JE.php @@ -140,5 +140,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_JM.php b/src/libphonenumber/data/ShortNumberMetadata_JM.php index 9f8bfb296..5cd9ffbff 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_JM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_JM.php @@ -81,7 +81,7 @@ 911 ', 'PossibleNumberPattern' => '\\d{3}', - 'ExampleNumber' => '911', + 'ExampleNumber' => '112', ), 'voicemail' => array ( @@ -128,5 +128,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_JO.php b/src/libphonenumber/data/ShortNumberMetadata_JO.php index fc8f398c0..e6a44f57f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_JO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_JO.php @@ -126,5 +126,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_JP.php b/src/libphonenumber/data/ShortNumberMetadata_JP.php index 144ff6f71..d1dae1c74 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_JP.php +++ b/src/libphonenumber/data/ShortNumberMetadata_JP.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KE.php b/src/libphonenumber/data/ShortNumberMetadata_KE.php index 753222456..cb106da19 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KE.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[19]\\d{2,3}', - 'PossibleNumberPattern' => '\\d{3,4}', + 'NationalNumberPattern' => '[19]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[19]\\d{2,3}', - 'PossibleNumberPattern' => '\\d{3,4}', + 'NationalNumberPattern' => '[19]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[19]\\d{2,3}', - 'PossibleNumberPattern' => '\\d{3,4}', + 'NationalNumberPattern' => '[19]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -84,7 +84,10 @@ array ( 'NationalNumberPattern' => ' 1(?: - 0[09]| + 0(?: + [09]| + 400 + )| 1(?: [026]| 9[0-2579] @@ -94,7 +97,7 @@ )| 999 ', - 'PossibleNumberPattern' => '\\d{3,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '116', ), 'standardRate' => @@ -105,9 +108,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '10400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '10400', ), 'noInternationalDialling' => array ( @@ -127,5 +130,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KG.php b/src/libphonenumber/data/ShortNumberMetadata_KG.php index e09314be9..102e75c7c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KG.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KH.php b/src/libphonenumber/data/ShortNumberMetadata_KH.php index 74eab805f..bb6993837 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KH.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KI.php b/src/libphonenumber/data/ShortNumberMetadata_KI.php index 97b572ce5..9835fc69d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KI.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KM.php b/src/libphonenumber/data/ShortNumberMetadata_KM.php index b1342ba1d..701679bc3 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KN.php b/src/libphonenumber/data/ShortNumberMetadata_KN.php index a05f62aa4..1740fc3e8 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KN.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KR.php b/src/libphonenumber/data/ShortNumberMetadata_KR.php index cdb6f06b9..0a2c12ab7 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KR.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KW.php b/src/libphonenumber/data/ShortNumberMetadata_KW.php index 951dda2fe..c69b4750e 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KW.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KY.php b/src/libphonenumber/data/ShortNumberMetadata_KY.php index beb8c77f6..801893f43 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KY.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_KZ.php b/src/libphonenumber/data/ShortNumberMetadata_KZ.php index 44a2fb036..03c8058e8 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_KZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_KZ.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[13]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[13]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[13]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -88,9 +88,10 @@ 1(?: 0[123]| 12 - ) + )| + 30400 ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '112', ), 'standardRate' => @@ -101,9 +102,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '30400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '30400', ), 'noInternationalDialling' => array ( @@ -123,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LA.php b/src/libphonenumber/data/ShortNumberMetadata_LA.php index 94670858a..e8cd9ef71 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LA.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LB.php b/src/libphonenumber/data/ShortNumberMetadata_LB.php index dd5e8a488..6e4375d23 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LB.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LB.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LC.php b/src/libphonenumber/data/ShortNumberMetadata_LC.php index ec81de720..5f0ab5abd 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LC.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LI.php b/src/libphonenumber/data/ShortNumberMetadata_LI.php index c2f1c0ae3..7f4cacc8b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LI.php @@ -139,5 +139,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LK.php b/src/libphonenumber/data/ShortNumberMetadata_LK.php index 7898a4b21..7088a8ff9 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LK.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LR.php b/src/libphonenumber/data/ShortNumberMetadata_LR.php index 26cacec56..7dc971e1d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LR.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[39]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[389]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[39]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[389]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[39]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[389]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'tollFree' => @@ -84,9 +84,10 @@ array ( 'NationalNumberPattern' => ' 355| + 8400| 911 ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '911', ), 'standardRate' => @@ -97,9 +98,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '8400', + 'PossibleNumberPattern' => '\\d{4}', + 'ExampleNumber' => '8400', ), 'noInternationalDialling' => array ( @@ -119,5 +120,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LS.php b/src/libphonenumber/data/ShortNumberMetadata_LS.php index 6af3e0c3d..2ba0f664b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LS.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LS.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LT.php b/src/libphonenumber/data/ShortNumberMetadata_LT.php index c7b010ef4..e8e75e49f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LT.php @@ -133,5 +133,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LU.php b/src/libphonenumber/data/ShortNumberMetadata_LU.php index 855aa8978..5619584ef 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LU.php @@ -118,5 +118,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LV.php b/src/libphonenumber/data/ShortNumberMetadata_LV.php index d145acd44..cfa7cbc15 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LV.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LV.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_LY.php b/src/libphonenumber/data/ShortNumberMetadata_LY.php index 9f4a778ed..3bd1530e1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_LY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_LY.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MA.php b/src/libphonenumber/data/ShortNumberMetadata_MA.php index b8a955012..8c39eb22f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MA.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MC.php b/src/libphonenumber/data/ShortNumberMetadata_MC.php index ecd85543d..6b393c69f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MC.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MD.php b/src/libphonenumber/data/ShortNumberMetadata_MD.php index 3db67f81c..3aee55453 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MD.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MD.php @@ -138,5 +138,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ME.php b/src/libphonenumber/data/ShortNumberMetadata_ME.php index a6f255dd7..9413e0295 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ME.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ME.php @@ -130,5 +130,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MF.php b/src/libphonenumber/data/ShortNumberMetadata_MF.php index 1b38eefb3..cbfcf88d2 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MF.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MF.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MG.php b/src/libphonenumber/data/ShortNumberMetadata_MG.php index a67c6fef4..f32446f60 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MG.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MH.php b/src/libphonenumber/data/ShortNumberMetadata_MH.php index adb45eab1..fdcfae5f6 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MH.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MK.php b/src/libphonenumber/data/ShortNumberMetadata_MK.php index 2953a9df9..628f58e2f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MK.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ML.php b/src/libphonenumber/data/ShortNumberMetadata_ML.php index 45e759c85..bd8387a41 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ML.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ML.php @@ -207,5 +207,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MM.php b/src/libphonenumber/data/ShortNumberMetadata_MM.php index 45fb20027..ec1239ea1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MN.php b/src/libphonenumber/data/ShortNumberMetadata_MN.php index c5e0d1dc9..030eccab3 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MN.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MO.php b/src/libphonenumber/data/ShortNumberMetadata_MO.php index 4aabdf071..96058bd41 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MO.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MP.php b/src/libphonenumber/data/ShortNumberMetadata_MP.php index c917153e3..419de24ee 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MP.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MP.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MQ.php b/src/libphonenumber/data/ShortNumberMetadata_MQ.php index d88bfd972..a54eddb37 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MQ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MQ.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MR.php b/src/libphonenumber/data/ShortNumberMetadata_MR.php index f15317228..5eafae81a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MR.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MS.php b/src/libphonenumber/data/ShortNumberMetadata_MS.php index f36e0380a..22ce29f6d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MS.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MS.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MT.php b/src/libphonenumber/data/ShortNumberMetadata_MT.php index 1600d922b..4b4896cdd 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MT.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MU.php b/src/libphonenumber/data/ShortNumberMetadata_MU.php index e9e246214..d015195ef 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MU.php @@ -120,5 +120,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MV.php b/src/libphonenumber/data/ShortNumberMetadata_MV.php index ec4202cb4..636c7b187 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MV.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MV.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MW.php b/src/libphonenumber/data/ShortNumberMetadata_MW.php index ad33bc704..b4622904e 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MW.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[189]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[189]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[189]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -84,9 +84,10 @@ array ( 'NationalNumberPattern' => ' 199| + 80400| 99[789] ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '997', ), 'standardRate' => @@ -97,9 +98,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '80400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '80400', ), 'noInternationalDialling' => array ( @@ -119,5 +120,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MX.php b/src/libphonenumber/data/ShortNumberMetadata_MX.php index 35794ff6f..9280ea655 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MX.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MX.php @@ -132,5 +132,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MY.php b/src/libphonenumber/data/ShortNumberMetadata_MY.php index e9bd4c6e2..04daacfb1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MY.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_MZ.php b/src/libphonenumber/data/ShortNumberMetadata_MZ.php index c6386da55..358412b92 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_MZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_MZ.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NA.php b/src/libphonenumber/data/ShortNumberMetadata_NA.php index 39303b86a..58b7521d1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NA.php @@ -122,5 +122,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NC.php b/src/libphonenumber/data/ShortNumberMetadata_NC.php index f1b556155..e9fe1bc8b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NC.php @@ -155,5 +155,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NF.php b/src/libphonenumber/data/ShortNumberMetadata_NF.php index a1ec263c3..e9f7d8f66 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NF.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NF.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NG.php b/src/libphonenumber/data/ShortNumberMetadata_NG.php index 542f2c0ce..c00dcf1d5 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NG.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[14]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[14]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[14]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -79,8 +79,11 @@ ), 'shortCode' => array ( - 'NationalNumberPattern' => '199', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => ' + 199| + 40700 + ', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '199', ), 'standardRate' => @@ -91,9 +94,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '40700', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '40700', ), 'noInternationalDialling' => array ( @@ -113,5 +116,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NI.php b/src/libphonenumber/data/ShortNumberMetadata_NI.php index 36b9e070b..68e395554 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NI.php @@ -7,27 +7,27 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[12467]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[12467]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '1\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[12467]\\d{2,3}', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '', ), 'tollFree' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '7373', + 'PossibleNumberPattern' => '\\d{4}', + 'ExampleNumber' => '7373', ), 'premiumRate' => array ( @@ -67,7 +67,12 @@ ), 'emergency' => array ( - 'NationalNumberPattern' => '118', + 'NationalNumberPattern' => ' + 1(?: + 1[58]| + 2[08] + ) + ', 'PossibleNumberPattern' => '\\d{3}', 'ExampleNumber' => '118', ), @@ -79,8 +84,25 @@ ), 'shortCode' => array ( - 'NationalNumberPattern' => '118', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => ' + 1(?: + 1[58]| + 2(?: + [158]| + 00? + )| + 900 + )| + 2100| + 4878| + 6100| + 7(?: + 010| + 100| + 373 + ) + ', + 'PossibleNumberPattern' => '\\d{3,4}', 'ExampleNumber' => '118', ), 'standardRate' => @@ -113,5 +135,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NL.php b/src/libphonenumber/data/ShortNumberMetadata_NL.php index be02f9e75..c98ad5d34 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NL.php @@ -122,5 +122,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NO.php b/src/libphonenumber/data/ShortNumberMetadata_NO.php index b5b02dc23..57a765848 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NO.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NP.php b/src/libphonenumber/data/ShortNumberMetadata_NP.php index 12b113ae6..cfda9c49c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NP.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NP.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NR.php b/src/libphonenumber/data/ShortNumberMetadata_NR.php index ce89be56a..7781791a3 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NR.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NU.php b/src/libphonenumber/data/ShortNumberMetadata_NU.php index 25921ec99..7f6a8c148 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NU.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_NZ.php b/src/libphonenumber/data/ShortNumberMetadata_NZ.php index 9a2d8361c..1de4ec024 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_NZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_NZ.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_OM.php b/src/libphonenumber/data/ShortNumberMetadata_OM.php index e45d144ca..33ba5517b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_OM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_OM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PA.php b/src/libphonenumber/data/ShortNumberMetadata_PA.php index 63174cb46..7c8eb8c8f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PA.php @@ -116,5 +116,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PE.php b/src/libphonenumber/data/ShortNumberMetadata_PE.php index f4007046d..5584a1392 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PE.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PF.php b/src/libphonenumber/data/ShortNumberMetadata_PF.php index b3b059126..8e349528d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PF.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PF.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PG.php b/src/libphonenumber/data/ShortNumberMetadata_PG.php index 7346b5fea..17bb5e47f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PG.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PH.php b/src/libphonenumber/data/ShortNumberMetadata_PH.php index 3e9e76f17..b06ec48f7 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PH.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PK.php b/src/libphonenumber/data/ShortNumberMetadata_PK.php index 93230cd4b..be0000cac 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PK.php @@ -129,5 +129,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PL.php b/src/libphonenumber/data/ShortNumberMetadata_PL.php index 99425b1ba..e6eccf598 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PL.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PM.php b/src/libphonenumber/data/ShortNumberMetadata_PM.php index 333df5928..a8c3d292a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PR.php b/src/libphonenumber/data/ShortNumberMetadata_PR.php index d83ac24de..5fd4816af 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PR.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PT.php b/src/libphonenumber/data/ShortNumberMetadata_PT.php index 9b7b4c4a7..1ccd9e282 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PT.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PW.php b/src/libphonenumber/data/ShortNumberMetadata_PW.php index de9b5e4fa..578d0300f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PW.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_PY.php b/src/libphonenumber/data/ShortNumberMetadata_PY.php index 979c96eea..bca739cd7 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_PY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_PY.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_QA.php b/src/libphonenumber/data/ShortNumberMetadata_QA.php index 7400e3fc8..62a4b51ad 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_QA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_QA.php @@ -120,5 +120,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_RE.php b/src/libphonenumber/data/ShortNumberMetadata_RE.php index 7d67b330b..0b56b1247 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_RE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_RE.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_RO.php b/src/libphonenumber/data/ShortNumberMetadata_RO.php index 0c4708950..c8afe866b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_RO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_RO.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_RS.php b/src/libphonenumber/data/ShortNumberMetadata_RS.php index 620eeac23..def205b9f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_RS.php +++ b/src/libphonenumber/data/ShortNumberMetadata_RS.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_RU.php b/src/libphonenumber/data/ShortNumberMetadata_RU.php index 4b64a4bc0..6845e3efe 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_RU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_RU.php @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_RW.php b/src/libphonenumber/data/ShortNumberMetadata_RW.php index 90256f51d..88d1cd91a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_RW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_RW.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SA.php b/src/libphonenumber/data/ShortNumberMetadata_SA.php index d84bd6181..613975b80 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SA.php @@ -25,9 +25,13 @@ ), 'tollFree' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 116111| + 937| + 998 + ', + 'PossibleNumberPattern' => '\\d{3,6}', + 'ExampleNumber' => '116111', ), 'premiumRate' => array ( @@ -71,7 +75,7 @@ 112| 9(?: 11| - 9[7-9] + 9[79] ) ', 'PossibleNumberPattern' => '\\d{3}', @@ -87,7 +91,12 @@ array ( 'NationalNumberPattern' => ' 1(?: - 16111| + 1(?: + 00| + 2| + 6111 + )| + 410| 9(?: 00| 1[89]| @@ -99,9 +108,13 @@ ) )| 9( - 37| - 8[6-8]| - 9[2-6] + 0[24-79]| + 11| + 3[379]| + 40| + 66| + 8[5-9]| + 9[02-9] ) ', 'PossibleNumberPattern' => '\\d{3,6}', @@ -109,15 +122,21 @@ ), 'standardRate' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '1410', + 'PossibleNumberPattern' => '\\d{4}', + 'ExampleNumber' => '1410', ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 1(?: + 100| + 410 + )| + 90[24679] + ', + 'PossibleNumberPattern' => '\\d{3,4}', + 'ExampleNumber' => '902', ), 'noInternationalDialling' => array ( @@ -137,5 +156,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SB.php b/src/libphonenumber/data/ShortNumberMetadata_SB.php index 8ceb33a68..be91f5d49 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SB.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SB.php @@ -130,5 +130,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SC.php b/src/libphonenumber/data/ShortNumberMetadata_SC.php index 22ad57a76..851cced52 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SC.php @@ -129,5 +129,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SD.php b/src/libphonenumber/data/ShortNumberMetadata_SD.php index 0524e8eda..dc07c9d44 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SD.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SD.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SE.php b/src/libphonenumber/data/ShortNumberMetadata_SE.php index 34f359441..816c34517 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SE.php @@ -7,33 +7,36 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[19]\\d{2,4}', - 'PossibleNumberPattern' => '\\d{3,5}', + 'NationalNumberPattern' => '[1-37-9]\\d{2,5}', + 'PossibleNumberPattern' => '\\d{3,6}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[19]\\d{2,4}', - 'PossibleNumberPattern' => '\\d{3,5}', + 'NationalNumberPattern' => '[1-37-9]\\d{2,5}', + 'PossibleNumberPattern' => '\\d{3,6}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[19]\\d{2,4}', - 'PossibleNumberPattern' => '\\d{3,5}', + 'NationalNumberPattern' => '[1-37-9]\\d{2,5}', + 'PossibleNumberPattern' => '\\d{3,6}', 'ExampleNumber' => '', ), 'tollFree' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '116\\d{3}', + 'PossibleNumberPattern' => '\\d{6}', + 'ExampleNumber' => '116000', ), 'premiumRate' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 11811[89]| + 72\\d{3} + ', + 'PossibleNumberPattern' => '\\d{5,6}', + 'ExampleNumber' => '118118', ), 'sharedCost' => array ( @@ -83,11 +86,52 @@ 'shortCode' => array ( 'NationalNumberPattern' => ' - 112| - 90000 + 11(?: + [25]| + 313| + 4\\d{2}| + 6(?: + 00[06]| + 11[17]| + 123 + )| + 7[0-8]| + 8(?: + 1(?: + [02-9]\\d| + 1[013-9] + )| + [02-46-9]\\d{2} + ) + )| + 2(?: + 2[02358]| + 33| + 4[01]| + 50| + 6[1-4] + )| + 32[13]| + 7\\d{4}| + 8(?: + 22| + 88 + )| + 9(?: + 0(?: + 000| + 1(?: + [02-9]\\d| + 1[013-9] + )| + [2-4]\\d{2}| + 510 + )| + 12 + ) ', - 'PossibleNumberPattern' => '\\d{3,5}', - 'ExampleNumber' => '112', + 'PossibleNumberPattern' => '\\d{3,6}', + 'ExampleNumber' => '11313', ), 'standardRate' => array ( @@ -97,9 +141,23 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => ' + 2(?: + 2[02358]| + 33| + 4[01]| + 50| + 6[1-4] + )| + 32[13]| + 8(?: + 22| + 88 + )| + 912 + ', + 'PossibleNumberPattern' => '\\d{3}', + 'ExampleNumber' => '222', ), 'noInternationalDialling' => array ( @@ -119,5 +177,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SG.php b/src/libphonenumber/data/ShortNumberMetadata_SG.php index c4bb681d6..851d2fa77 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SG.php @@ -122,5 +122,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SH.php b/src/libphonenumber/data/ShortNumberMetadata_SH.php index 440a81cab..cc1069f3a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SH.php @@ -124,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SI.php b/src/libphonenumber/data/ShortNumberMetadata_SI.php index 61f065d44..4db6fa1b0 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SI.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SJ.php b/src/libphonenumber/data/ShortNumberMetadata_SJ.php index 7612b8c35..f0c6366c8 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SJ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SJ.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SK.php b/src/libphonenumber/data/ShortNumberMetadata_SK.php index f3161be1c..8c32c74a7 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SK.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SK.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SL.php b/src/libphonenumber/data/ShortNumberMetadata_SL.php index cc4981f19..4d9c67f68 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SL.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[09]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[069]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[09]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[069]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[09]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[069]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -88,9 +88,10 @@ (?: 01| 99 - )9 + )9| + 60400 ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '999', ), 'standardRate' => @@ -101,9 +102,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '60400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '60400', ), 'noInternationalDialling' => array ( @@ -123,5 +124,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SM.php b/src/libphonenumber/data/ShortNumberMetadata_SM.php index 8556531df..41d46656f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SR.php b/src/libphonenumber/data/ShortNumberMetadata_SR.php index 0eefb2761..f04bffe5e 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SR.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ST.php b/src/libphonenumber/data/ShortNumberMetadata_ST.php index f14e48d33..1c1161738 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ST.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ST.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SV.php b/src/libphonenumber/data/ShortNumberMetadata_SV.php index 44954b239..32564b072 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SV.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SV.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SX.php b/src/libphonenumber/data/ShortNumberMetadata_SX.php index 6ea632f4f..1ef36fc5f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SX.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SX.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SY.php b/src/libphonenumber/data/ShortNumberMetadata_SY.php index abd2959e3..5eac02990 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SY.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_SZ.php b/src/libphonenumber/data/ShortNumberMetadata_SZ.php index d7ae1f424..7398adf48 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_SZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_SZ.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TC.php b/src/libphonenumber/data/ShortNumberMetadata_TC.php index 4ae51547c..33b3d95b3 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TC.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TD.php b/src/libphonenumber/data/ShortNumberMetadata_TD.php index e5118e641..5980558a2 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TD.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TD.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TG.php b/src/libphonenumber/data/ShortNumberMetadata_TG.php index 2d51b5eea..5aec766ff 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TG.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TH.php b/src/libphonenumber/data/ShortNumberMetadata_TH.php index 75dc4ddf8..331e894b4 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TH.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TH.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TJ.php b/src/libphonenumber/data/ShortNumberMetadata_TJ.php index 687ca17d8..4b479b8b5 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TJ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TJ.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TL.php b/src/libphonenumber/data/ShortNumberMetadata_TL.php index b195bb802..3e1b686f1 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TL.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TL.php @@ -121,5 +121,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TM.php b/src/libphonenumber/data/ShortNumberMetadata_TM.php index 806ea7cf6..85e7e2dc9 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TM.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TN.php b/src/libphonenumber/data/ShortNumberMetadata_TN.php index c43af8822..2e946bdb6 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TN.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TO.php b/src/libphonenumber/data/ShortNumberMetadata_TO.php index 06b696146..d18b36f6c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TO.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TO.php @@ -127,5 +127,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TR.php b/src/libphonenumber/data/ShortNumberMetadata_TR.php index 47dd4d701..452aeaede 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TR.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TR.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TT.php b/src/libphonenumber/data/ShortNumberMetadata_TT.php index 71fe0bed9..067657bac 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TT.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TV.php b/src/libphonenumber/data/ShortNumberMetadata_TV.php index f62cb20a4..65115ec6c 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TV.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TV.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TW.php b/src/libphonenumber/data/ShortNumberMetadata_TW.php index 86c082c5d..bcfff8b72 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TW.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_TZ.php b/src/libphonenumber/data/ShortNumberMetadata_TZ.php index 69e0cbe29..ea4565b75 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_TZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_TZ.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[149]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[149]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '[19]\\d{2}', - 'PossibleNumberPattern' => '\\d{3}', + 'NationalNumberPattern' => '[149]\\d{2,4}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -84,9 +84,10 @@ array ( 'NationalNumberPattern' => ' 11[12]| + 46400| 999 ', - 'PossibleNumberPattern' => '\\d{3}', + 'PossibleNumberPattern' => '\\d{3,5}', 'ExampleNumber' => '111', ), 'standardRate' => @@ -97,9 +98,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '46400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '46400', ), 'noInternationalDialling' => array ( @@ -119,5 +120,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_UA.php b/src/libphonenumber/data/ShortNumberMetadata_UA.php index 9442c8677..d7b3ed416 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_UA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_UA.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_UG.php b/src/libphonenumber/data/ShortNumberMetadata_UG.php index 5de088789..b1a0b2909 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_UG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_UG.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_US.php b/src/libphonenumber/data/ShortNumberMetadata_US.php index daa615989..fe58e777f 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_US.php +++ b/src/libphonenumber/data/ShortNumberMetadata_US.php @@ -72,7 +72,7 @@ 911 ', 'PossibleNumberPattern' => '\\d{3}', - 'ExampleNumber' => '911', + 'ExampleNumber' => '112', ), 'voicemail' => array ( @@ -119,5 +119,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_UY.php b/src/libphonenumber/data/ShortNumberMetadata_UY.php index c99c329ef..214ea6c51 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_UY.php +++ b/src/libphonenumber/data/ShortNumberMetadata_UY.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_UZ.php b/src/libphonenumber/data/ShortNumberMetadata_UZ.php index 44980a533..7937cb354 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_UZ.php +++ b/src/libphonenumber/data/ShortNumberMetadata_UZ.php @@ -7,20 +7,20 @@ return array ( 'generalDesc' => array ( - 'NationalNumberPattern' => '0\\d{1,2}', - 'PossibleNumberPattern' => '\\d{2,3}', + 'NationalNumberPattern' => '[04]\\d{1,4}', + 'PossibleNumberPattern' => '\\d{2,5}', 'ExampleNumber' => '', ), 'fixedLine' => array ( - 'NationalNumberPattern' => '0\\d{1,2}', - 'PossibleNumberPattern' => '\\d{2,3}', + 'NationalNumberPattern' => '[04]\\d{1,4}', + 'PossibleNumberPattern' => '\\d{2,5}', 'ExampleNumber' => '', ), 'mobile' => array ( - 'NationalNumberPattern' => '0\\d{1,2}', - 'PossibleNumberPattern' => '\\d{2,3}', + 'NationalNumberPattern' => '[04]\\d{1,4}', + 'PossibleNumberPattern' => '\\d{2,5}', 'ExampleNumber' => '', ), 'tollFree' => @@ -90,9 +90,10 @@ 0[123]| [123]| 50 - ) + )| + 45400 ', - 'PossibleNumberPattern' => '\\d{2,3}', + 'PossibleNumberPattern' => '\\d{2,5}', 'ExampleNumber' => '01', ), 'standardRate' => @@ -103,9 +104,9 @@ ), 'carrierSpecific' => array ( - 'NationalNumberPattern' => 'NA', - 'PossibleNumberPattern' => 'NA', - 'ExampleNumber' => '', + 'NationalNumberPattern' => '45400', + 'PossibleNumberPattern' => '\\d{5}', + 'ExampleNumber' => '45400', ), 'noInternationalDialling' => array ( @@ -125,5 +126,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_VA.php b/src/libphonenumber/data/ShortNumberMetadata_VA.php index 16ce8aa99..a7bf2d05a 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_VA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_VA.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_VC.php b/src/libphonenumber/data/ShortNumberMetadata_VC.php index a92683b96..04637a821 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_VC.php +++ b/src/libphonenumber/data/ShortNumberMetadata_VC.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_VE.php b/src/libphonenumber/data/ShortNumberMetadata_VE.php index c11a4ad2d..1628c7a76 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_VE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_VE.php @@ -125,5 +125,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_VG.php b/src/libphonenumber/data/ShortNumberMetadata_VG.php index 2cfa64519..16f122a22 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_VG.php +++ b/src/libphonenumber/data/ShortNumberMetadata_VG.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_VI.php b/src/libphonenumber/data/ShortNumberMetadata_VI.php index 746a92274..1f404912e 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_VI.php +++ b/src/libphonenumber/data/ShortNumberMetadata_VI.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_VN.php b/src/libphonenumber/data/ShortNumberMetadata_VN.php index 94288b14b..a9b9383d2 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_VN.php +++ b/src/libphonenumber/data/ShortNumberMetadata_VN.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_VU.php b/src/libphonenumber/data/ShortNumberMetadata_VU.php index 07b6b55ac..34a26c74b 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_VU.php +++ b/src/libphonenumber/data/ShortNumberMetadata_VU.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_WF.php b/src/libphonenumber/data/ShortNumberMetadata_WF.php index 1e983c504..117a71521 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_WF.php +++ b/src/libphonenumber/data/ShortNumberMetadata_WF.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_WS.php b/src/libphonenumber/data/ShortNumberMetadata_WS.php index 1a3461a54..b698d8fb6 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_WS.php +++ b/src/libphonenumber/data/ShortNumberMetadata_WS.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_YE.php b/src/libphonenumber/data/ShortNumberMetadata_YE.php index 9af2fddc8..05bf7c074 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_YE.php +++ b/src/libphonenumber/data/ShortNumberMetadata_YE.php @@ -113,5 +113,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_YT.php b/src/libphonenumber/data/ShortNumberMetadata_YT.php index d689dc54b..b46a99a94 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_YT.php +++ b/src/libphonenumber/data/ShortNumberMetadata_YT.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ZA.php b/src/libphonenumber/data/ShortNumberMetadata_ZA.php index f947d263b..5b9a03f94 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ZA.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ZA.php @@ -129,5 +129,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ZM.php b/src/libphonenumber/data/ShortNumberMetadata_ZM.php index 9c64abee9..a8746b4fc 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ZM.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ZM.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file diff --git a/src/libphonenumber/data/ShortNumberMetadata_ZW.php b/src/libphonenumber/data/ShortNumberMetadata_ZW.php index 42326f225..bd80f269d 100644 --- a/src/libphonenumber/data/ShortNumberMetadata_ZW.php +++ b/src/libphonenumber/data/ShortNumberMetadata_ZW.php @@ -123,5 +123,6 @@ ), 'mainCountryForCode' => NULL, 'leadingZeroPossible' => NULL, + 'mobileNumberPortableRegion' => NULL, ); /* EOF */ \ No newline at end of file