+Mar 3rd, 2011
+* Metadata changes:
+ - Adding support for AC
+
Feb 11th, 2011
* Metadata changes:
- Update UAN number ranges for IM and JE.
<phoneNumberMetadata>
<territories>
+ <!-- Ascension Island -->
+ <!-- www.itu.int/oth/T02020000AF -->
+ <territory id="AC" countryCode="247" internationalPrefix="00">
+ <!-- Formatted as a block. -->
+ <generalDesc>
+ <nationalNumberPattern>[2-46]\d{3}</nationalNumberPattern>
+ <possibleNumberPattern>\d{4}</possibleNumberPattern>
+ </generalDesc>
+ <fixedLine>
+ <nationalNumberPattern>
+ (?:
+ 3[0-5]|
+ 4[4-6]|
+ [26]\d
+ )\d{2}
+ </nationalNumberPattern>
+ <possibleNumberPattern>\d{4}</possibleNumberPattern>
+ <exampleNumber>6889</exampleNumber>
+ </fixedLine>
+ <mobile>
+ <nationalNumberPattern>NA</nationalNumberPattern>
+ <possibleNumberPattern>NA</possibleNumberPattern>
+ </mobile>
+ </territory>
+
<!-- Andorra -->
<!-- http://www.itu.int/oth/T0202000005/en -->
<territory id="AD" countryCode="376" internationalPrefix="00">
// countries sharing a calling code, such as the NANPA countries, the one
// indicated with "isMainCountryForCode" in the metadata should be first.
static Map<Integer, List<String>> getCountryCodeToRegionCodeMap() {
- // The capacity is set to 272 as there are 204 different country codes,
+ // The capacity is set to 273 as there are 205 different country codes,
// and this offers a load factor of roughly 0.75.
Map<Integer, List<String>> countryCodeToRegionCodeMap =
- new HashMap<Integer, List<String>>(272);
+ new HashMap<Integer, List<String>>(273);
ArrayList<String> listWithRegionCode;
countryCodeToRegionCodeMap.put(246, listWithRegionCode);
listWithRegionCode = new ArrayList<String>(1);
+ listWithRegionCode.add("AC");
+ countryCodeToRegionCodeMap.put(247, listWithRegionCode);
+
+ listWithRegionCode = new ArrayList<String>(1);
listWithRegionCode.add("SC");
countryCodeToRegionCodeMap.put(248, listWithRegionCode);
,244:["AO"]
,245:["GW"]
,246:["IO"]
+,247:["AC"]
,248:["SC"]
,249:["SD"]
,250:["RW"]
* @type {Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
-"AD":[,[,,"(?:[346-9]|180)\\d{5}","\\d{6,8}"]
+"AC":[,[,,"[2-46]\\d{3}","\\d{4}"]
+,[,,"(?:3[0-5]|4[4-6]|[26]\\d)\\d{2}","\\d{4}",,,"6889"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,"AC",247,"00",,,,,,,,,,[,,"NA","NA"]
+,,,[,,"NA","NA"]
+,[,,"NA","NA"]
+]
+,"AD":[,[,,"(?:[346-9]|180)\\d{5}","\\d{6,8}"]
,[,,"[78]\\d{5}","\\d{6}",,,"712345"]
,[,,"[346]\\d{5}","\\d{6}",,,"312345"]
,[,,"180[02]\\d{4}","\\d{8}",,,"18001234"]
,244:["AO"]
,245:["GW"]
,246:["IO"]
+,247:["AC"]
,248:["SC"]
,249:["SD"]
,250:["RW"]
* @type {Object.<string, Array>}
*/
i18n.phonenumbers.metadata.countryToMetadata = {
-"AD":[,[,,"(?:[346-9]|180)\\d{5}","\\d{6,8}"]
+"AC":[,[,,"[2-46]\\d{3}","\\d{4}"]
+,[,,"(?:3[0-5]|4[4-6]|[26]\\d)\\d{2}","\\d{4}"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,[,,"NA","NA"]
+,"AC",247,"00",,,,,,,,,,[,,"NA","NA"]
+,,,[,,"NA","NA"]
+,[,,"NA","NA"]
+]
+,"AD":[,[,,"(?:[346-9]|180)\\d{5}","\\d{6,8}"]
,[,,"[78]\\d{5}","\\d{6}"]
,[,,"[346]\\d{5}","\\d{6}"]
,[,,"180[02]\\d{4}","\\d{8}"]