From f60bbcd0d068ba3837c18eeb88fddbc22cb392ed Mon Sep 17 00:00:00 2001 From: David Yonge-Mallo Date: Wed, 6 Jun 2012 09:15:01 +0000 Subject: [PATCH] JAVA: Metadata changes only (v4.8.4) --- .../CountryCodeToRegionCodeMap.java | 8 +- .../data/PhoneNumberMetadataProto_881 | Bin 0 -> 297 bytes .../data/PhoneNumberMetadataProto_AE | Bin 609 -> 611 bytes .../data/PhoneNumberMetadataProto_RO | Bin 508 -> 647 bytes java/release_notes.txt | 5 ++ resources/PhoneNumberMetaData.xml | 80 ++++++++++++++++-- 6 files changed, 82 insertions(+), 11 deletions(-) create mode 100644 java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_881 diff --git a/java/libphonenumber/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java b/java/libphonenumber/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java index 5ad849eb9..0f4fe5c5e 100644 --- a/java/libphonenumber/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java +++ b/java/libphonenumber/src/com/google/i18n/phonenumbers/CountryCodeToRegionCodeMap.java @@ -31,10 +31,10 @@ public class CountryCodeToRegionCodeMap { // countries sharing a calling code, such as the NANPA countries, the one // indicated with "isMainCountryForCode" in the metadata should be first. static Map> getCountryCodeToRegionCodeMap() { - // The capacity is set to 284 as there are 213 different country codes, + // The capacity is set to 285 as there are 214 different country codes, // and this offers a load factor of roughly 0.75. Map> countryCodeToRegionCodeMap = - new HashMap>(284); + new HashMap>(285); ArrayList listWithRegionCode; @@ -819,6 +819,10 @@ public class CountryCodeToRegionCodeMap { listWithRegionCode.add("BD"); countryCodeToRegionCodeMap.put(880, listWithRegionCode); + listWithRegionCode = new ArrayList(1); + listWithRegionCode.add("001"); + countryCodeToRegionCodeMap.put(881, listWithRegionCode); + listWithRegionCode = new ArrayList(1); listWithRegionCode.add("001"); countryCodeToRegionCodeMap.put(883, listWithRegionCode); diff --git a/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_881 b/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_881 new file mode 100644 index 0000000000000000000000000000000000000000..3bda4511b29d44b6042091f94338df3d6abff633 GIT binary patch literal 297 zcmZ4UmVvd3fq_wh0Z1@1GH^zlna9SYR9n4sTEZnBi1{=#l8Ck_NfUL)0Nxb<5E0f?H|;*kZCB|mE(}k(MVN677 jZTLxMx+*UWf}ey68G)5>q4}3{bCj`rN<*#@?HmAKa(6fm delta 116 zcmZo?{ljd(<}Cwj6$1m~X9gg_$jHDGZDee&YZ)7pQf*Po$iNDuEo*@?4E#We*l0sz wT{DoJIaF?Axiupr)8x&J){{k;R23nL42*yV)I?iY#xgQ68>kpE0?md30Ai&X7XSbN diff --git a/java/release_notes.txt b/java/release_notes.txt index a5833422c..a7ecc4e05 100644 --- a/java/release_notes.txt +++ b/java/release_notes.txt @@ -1,3 +1,8 @@ +June 5th, 2012: libphonenumber-4.8.4 +* Metadata update only: + - AE, RO + - Non-geographical entity with calling code 881 (Iridium) + May 30th, 2012: libphonenumber-4.8.3 * Metadata update only: - AN, ET, KW, MN, SX, TC, TL diff --git a/resources/PhoneNumberMetaData.xml b/resources/PhoneNumberMetaData.xml index 828ef52c6..cb88e53b1 100644 --- a/resources/PhoneNumberMetaData.xml +++ b/resources/PhoneNumberMetaData.xml @@ -195,7 +195,7 @@ [2-4679][2-8] $1 $2 $3 - + 5 $1 $2 $3 @@ -226,7 +226,9 @@ 22345678 - 5[056]\d{7} + + 5[0256]\d{7} \d{9} 501234567 @@ -19485,7 +19487,6 @@ - $1 $2 $3 + + 21 + $1 $2 + - [23][02-9]| + [23][3-7]| [89] $1 $2 $3 + + 2[3-6] + $1 $2 + - [237-9]\d{8} + + 2\d{5,8}| + [37-9]\d{8} + - \d{9} + to wikipedia and people must dial the full number. However, there are still short + numbers that total 6 digits long, so the possible number pattern should take these into + account. --> + \d{6,9} - [23][13-6]\d{7} + + + 2(?: + 1(?: + \d{7}| + 9\d{3} + )| + [3-6](?: + \d{7}| + \d9\d{2} + ) + )| + 3[13-6]\d{7} + 211234567 7[1-8]\d{7} + \d{9} 712345678 @@ -19529,14 +19559,17 @@ 90[036]\d{6} + \d{9} 900123456 801\d{6} + \d{9} 801123456 802\d{6} + \d{9} 802123456 @@ -19544,6 +19577,7 @@ location-independent national numbers. Only numbers beginning with 37 have been seen so these are the only ones supported for now. --> 37\d{7} + \d{9} 372123456 @@ -24734,6 +24768,34 @@ + + + + + + + + + [67] + $1 $2 $3 + + + + [67]\d{8} + \d{9} + 612345678 + + + NA + NA + + + [67]\d{8} + + +