phonelib 0.5.5 → 0.5.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +11 -2
- data/data/extended_data.dat +0 -0
- data/data/libphonenumber/FAQ.md +166 -0
- data/data/libphonenumber/README.md +1 -1
- data/data/libphonenumber/cpp/CMakeLists.txt +16 -3
- data/data/libphonenumber/cpp/src/phonenumbers/lite_metadata.cc +9337 -9341
- data/data/libphonenumber/cpp/src/phonenumbers/metadata.cc +9948 -9951
- data/data/libphonenumber/cpp/src/phonenumbers/short_metadata.cc +1285 -1280
- data/data/libphonenumber/debian/control +1 -1
- data/data/libphonenumber/java/carrier/pom.xml +4 -4
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/225_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/234_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/235_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/251_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/675_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/91_en +0 -0
- data/data/libphonenumber/java/carrier/src/com/google/i18n/phonenumbers/carrier/data/993_en +0 -0
- data/data/libphonenumber/java/demo/pom.xml +6 -6
- data/data/libphonenumber/java/demo/src/com/google/phonenumbers/PhoneNumberParserServlet.java +4 -3
- data/data/libphonenumber/java/geocoder/pom.xml +4 -4
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1380_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1825_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/212_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/46_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/config +0 -0
- data/data/libphonenumber/java/internal/prefixmapper/pom.xml +3 -3
- data/data/libphonenumber/java/libphonenumber/pom.xml +2 -2
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/MultiFileMetadataSourceImpl.java +9 -1
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java +2 -2
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_AS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BB +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_BW +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_CK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DJ +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_DO +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_ET +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_GU +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_IN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_JM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KN +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_KY +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_LC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MP +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_MS +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NA +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_NG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_PR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SE +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SK +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_SX +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TD +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TM +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_TT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_US +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VC +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VG +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/PhoneNumberMetadataProto_VI +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_KR +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/ShortNumberMetadataProto_PT +0 -0
- data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/data/SingleFilePhoneNumberMetadataProto +0 -0
- data/data/libphonenumber/java/pom.xml +1 -1
- data/data/libphonenumber/java/release_notes.txt +47 -7
- data/data/libphonenumber/javascript/i18n/phonenumbers/demo-compiled.js +171 -169
- data/data/libphonenumber/javascript/i18n/phonenumbers/metadata.js +61 -57
- data/data/libphonenumber/javascript/i18n/phonenumbers/metadatalite.js +61 -57
- data/data/libphonenumber/resources/PhoneNumberMetadata.xml +165 -155
- data/data/libphonenumber/resources/ShortNumberMetadata.xml +41 -7
- data/data/libphonenumber/resources/carrier/en/225.txt +1 -0
- data/data/libphonenumber/resources/carrier/en/234.txt +15 -4
- data/data/libphonenumber/resources/carrier/en/235.txt +1 -0
- data/data/libphonenumber/resources/carrier/en/251.txt +1 -0
- data/data/libphonenumber/resources/carrier/en/675.txt +6 -5
- data/data/libphonenumber/resources/carrier/en/91.txt +1 -0
- data/data/libphonenumber/resources/carrier/en/993.txt +1 -0
- data/data/libphonenumber/resources/geocoding/en/1.txt +2 -0
- data/data/libphonenumber/resources/geocoding/en/212.txt +1 -0
- data/data/libphonenumber/resources/geocoding/en/46.txt +15 -0
- data/data/libphonenumber/resources/geocoding/fr/212.txt +1 -0
- data/data/libphonenumber/resources/phonemetadata.proto +1 -1
- data/data/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/BuildMetadataFromXml.java +4 -5
- data/data/libphonenumber/tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
- data/data/libphonenumber/tools/java/data/pom.xml +1 -1
- data/data/libphonenumber/tools/java/java-build/target/java-build-1.0-SNAPSHOT-jar-with-dependencies.jar +0 -0
- data/data/phone_data.dat +0 -0
- data/lib/phonelib/core.rb +13 -0
- data/lib/phonelib/phone.rb +10 -4
- data/lib/phonelib/version.rb +1 -1
- metadata +5 -12
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1726_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1730_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1838_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1851_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1888_en +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/225_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/238_pt +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/242_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/269_fr +0 -0
- data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/55_pt +0 -0
@@ -3,7 +3,7 @@ Priority: optional
|
|
3
3
|
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
|
4
4
|
Uploaders: Daniel Pocock <daniel@pocock.pro>, Fredrik Roubert <roubert@google.com>
|
5
5
|
Build-Depends: cdbs,
|
6
|
-
cmake,
|
6
|
+
cmake (>= 3.1),
|
7
7
|
debhelper (>= 9),
|
8
8
|
default-jdk | java-sdk,
|
9
9
|
libboost-dev (>= 1.40),
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<modelVersion>4.0.0</modelVersion>
|
4
4
|
<groupId>com.googlecode.libphonenumber</groupId>
|
5
5
|
<artifactId>carrier</artifactId>
|
6
|
-
<version>1.
|
6
|
+
<version>1.27-SNAPSHOT</version>
|
7
7
|
<packaging>jar</packaging>
|
8
8
|
<url>https://github.com/googlei18n/libphonenumber/</url>
|
9
9
|
|
10
10
|
<parent>
|
11
11
|
<groupId>com.googlecode.libphonenumber</groupId>
|
12
12
|
<artifactId>libphonenumber-parent</artifactId>
|
13
|
-
<version>7.2.
|
13
|
+
<version>7.2.7-SNAPSHOT</version>
|
14
14
|
</parent>
|
15
15
|
|
16
16
|
<build>
|
@@ -34,12 +34,12 @@
|
|
34
34
|
<dependency>
|
35
35
|
<groupId>com.googlecode.libphonenumber</groupId>
|
36
36
|
<artifactId>libphonenumber</artifactId>
|
37
|
-
<version>7.2.
|
37
|
+
<version>7.2.7-SNAPSHOT</version>
|
38
38
|
</dependency>
|
39
39
|
<dependency>
|
40
40
|
<groupId>com.googlecode.libphonenumber</groupId>
|
41
41
|
<artifactId>prefixmapper</artifactId>
|
42
|
-
<version>2.
|
42
|
+
<version>2.37-SNAPSHOT</version>
|
43
43
|
</dependency>
|
44
44
|
</dependencies>
|
45
45
|
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -4,14 +4,14 @@
|
|
4
4
|
<parent>
|
5
5
|
<artifactId>libphonenumber-parent</artifactId>
|
6
6
|
<groupId>com.googlecode.libphonenumber</groupId>
|
7
|
-
<version>7.2.
|
7
|
+
<version>7.2.7-SNAPSHOT</version>
|
8
8
|
</parent>
|
9
9
|
<groupId>com.googlecode.libphonenumber</groupId>
|
10
10
|
<artifactId>demo</artifactId>
|
11
|
-
<version>7.2.
|
11
|
+
<version>7.2.7-SNAPSHOT</version>
|
12
12
|
|
13
13
|
<properties>
|
14
|
-
<gae.version>1.
|
14
|
+
<gae.version>1.9.32</gae.version>
|
15
15
|
</properties>
|
16
16
|
|
17
17
|
<repositories>
|
@@ -48,17 +48,17 @@
|
|
48
48
|
<dependency>
|
49
49
|
<groupId>com.googlecode.libphonenumber</groupId>
|
50
50
|
<artifactId>libphonenumber</artifactId>
|
51
|
-
<version>7.2.
|
51
|
+
<version>7.2.7-SNAPSHOT</version>
|
52
52
|
</dependency>
|
53
53
|
<dependency>
|
54
54
|
<groupId>com.googlecode.libphonenumber</groupId>
|
55
55
|
<artifactId>geocoder</artifactId>
|
56
|
-
<version>2.
|
56
|
+
<version>2.37-SNAPSHOT</version>
|
57
57
|
</dependency>
|
58
58
|
<dependency>
|
59
59
|
<groupId>com.googlecode.libphonenumber</groupId>
|
60
60
|
<artifactId>carrier</artifactId>
|
61
|
-
<version>1.
|
61
|
+
<version>1.27-SNAPSHOT</version>
|
62
62
|
</dependency>
|
63
63
|
</dependencies>
|
64
64
|
|
data/data/libphonenumber/java/demo/src/com/google/phonenumbers/PhoneNumberParserServlet.java
CHANGED
@@ -103,7 +103,7 @@ public class PhoneNumberParserServlet extends HttpServlet {
|
|
103
103
|
StringBuilder output;
|
104
104
|
resp.setContentType("text/html");
|
105
105
|
resp.setCharacterEncoding(UTF_8.name());
|
106
|
-
if (fileContents.length() == 0) {
|
106
|
+
if (fileContents == null || fileContents.length() == 0) {
|
107
107
|
// Redirect to a URL with the given input encoded in the query parameters.
|
108
108
|
Locale geocodingLocale = new Locale(languageCode, regionCode);
|
109
109
|
resp.sendRedirect(getPermaLinkURL(phoneNumber, defaultCountry, geocodingLocale,
|
@@ -195,8 +195,9 @@ public class PhoneNumberParserServlet extends HttpServlet {
|
|
195
195
|
StringBuilder permaLink = new StringBuilder(
|
196
196
|
absoluteURL ? "http://libphonenumber.appspot.com/phonenumberparser" : "/phonenumberparser");
|
197
197
|
try {
|
198
|
-
permaLink.append(
|
199
|
-
|
198
|
+
permaLink.append(
|
199
|
+
"?number=" + URLEncoder.encode(phoneNumber != null ? phoneNumber : "", UTF_8.name()));
|
200
|
+
if (defaultCountry != null && !defaultCountry.isEmpty()) {
|
200
201
|
permaLink.append("&country=" + URLEncoder.encode(defaultCountry, UTF_8.name()));
|
201
202
|
}
|
202
203
|
if (!geocodingLocale.getLanguage().equals(ENGLISH.getLanguage()) ||
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<modelVersion>4.0.0</modelVersion>
|
4
4
|
<groupId>com.googlecode.libphonenumber</groupId>
|
5
5
|
<artifactId>geocoder</artifactId>
|
6
|
-
<version>2.
|
6
|
+
<version>2.37-SNAPSHOT</version>
|
7
7
|
<packaging>jar</packaging>
|
8
8
|
<url>https://github.com/googlei18n/libphonenumber/</url>
|
9
9
|
|
10
10
|
<parent>
|
11
11
|
<groupId>com.googlecode.libphonenumber</groupId>
|
12
12
|
<artifactId>libphonenumber-parent</artifactId>
|
13
|
-
<version>7.2.
|
13
|
+
<version>7.2.7-SNAPSHOT</version>
|
14
14
|
</parent>
|
15
15
|
|
16
16
|
<build>
|
@@ -42,12 +42,12 @@
|
|
42
42
|
<dependency>
|
43
43
|
<groupId>com.googlecode.libphonenumber</groupId>
|
44
44
|
<artifactId>libphonenumber</artifactId>
|
45
|
-
<version>7.2.
|
45
|
+
<version>7.2.7-SNAPSHOT</version>
|
46
46
|
</dependency>
|
47
47
|
<dependency>
|
48
48
|
<groupId>com.googlecode.libphonenumber</groupId>
|
49
49
|
<artifactId>prefixmapper</artifactId>
|
50
|
-
<version>2.
|
50
|
+
<version>2.37-SNAPSHOT</version>
|
51
51
|
</dependency>
|
52
52
|
</dependencies>
|
53
53
|
|
data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1380_en
ADDED
Binary file
|
data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/1825_en
ADDED
Binary file
|
data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/212_en
CHANGED
Binary file
|
data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/46_en
CHANGED
Binary file
|
data/data/libphonenumber/java/geocoder/src/com/google/i18n/phonenumbers/geocoding/data/config
CHANGED
Binary file
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<modelVersion>4.0.0</modelVersion>
|
4
4
|
<groupId>com.googlecode.libphonenumber</groupId>
|
5
5
|
<artifactId>prefixmapper</artifactId>
|
6
|
-
<version>2.
|
6
|
+
<version>2.37-SNAPSHOT</version>
|
7
7
|
<packaging>jar</packaging>
|
8
8
|
<url>https://github.com/googlei18n/libphonenumber/</url>
|
9
9
|
|
10
10
|
<parent>
|
11
11
|
<groupId>com.googlecode.libphonenumber</groupId>
|
12
12
|
<artifactId>libphonenumber-parent</artifactId>
|
13
|
-
<version>7.2.
|
13
|
+
<version>7.2.7-SNAPSHOT</version>
|
14
14
|
<relativePath>../../pom.xml</relativePath>
|
15
15
|
</parent>
|
16
16
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<dependency>
|
30
30
|
<groupId>com.googlecode.libphonenumber</groupId>
|
31
31
|
<artifactId>libphonenumber</artifactId>
|
32
|
-
<version>7.2.
|
32
|
+
<version>7.2.7-SNAPSHOT</version>
|
33
33
|
</dependency>
|
34
34
|
</dependencies>
|
35
35
|
|
@@ -3,14 +3,14 @@
|
|
3
3
|
<modelVersion>4.0.0</modelVersion>
|
4
4
|
<groupId>com.googlecode.libphonenumber</groupId>
|
5
5
|
<artifactId>libphonenumber</artifactId>
|
6
|
-
<version>7.2.
|
6
|
+
<version>7.2.7-SNAPSHOT</version>
|
7
7
|
<packaging>jar</packaging>
|
8
8
|
<url>https://github.com/googlei18n/libphonenumber/</url>
|
9
9
|
|
10
10
|
<parent>
|
11
11
|
<groupId>com.googlecode.libphonenumber</groupId>
|
12
12
|
<artifactId>libphonenumber-parent</artifactId>
|
13
|
-
<version>7.2.
|
13
|
+
<version>7.2.7-SNAPSHOT</version>
|
14
14
|
</parent>
|
15
15
|
|
16
16
|
<build>
|
@@ -24,6 +24,7 @@ import java.io.InputStream;
|
|
24
24
|
import java.io.ObjectInputStream;
|
25
25
|
import java.util.Collections;
|
26
26
|
import java.util.HashMap;
|
27
|
+
import java.util.List;
|
27
28
|
import java.util.Map;
|
28
29
|
import java.util.logging.Level;
|
29
30
|
import java.util.logging.Logger;
|
@@ -86,7 +87,14 @@ final class MultiFileMetadataSourceImpl implements MetadataSource {
|
|
86
87
|
public PhoneMetadata getMetadataForNonGeographicalRegion(int countryCallingCode) {
|
87
88
|
synchronized (countryCodeToNonGeographicalMetadataMap) {
|
88
89
|
if (!countryCodeToNonGeographicalMetadataMap.containsKey(countryCallingCode)) {
|
89
|
-
|
90
|
+
List<String> regionCodes =
|
91
|
+
CountryCodeToRegionCodeMap.getCountryCodeToRegionCodeMap().get(countryCallingCode);
|
92
|
+
// We can assume that if the country calling code maps to the non-geo entity region code
|
93
|
+
// then that's the only region code it maps to.
|
94
|
+
if (regionCodes.size() == 1 &&
|
95
|
+
PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCodes.get(0))) {
|
96
|
+
loadMetadataFromFile(PhoneNumberUtil.REGION_CODE_FOR_NON_GEO_ENTITY, countryCallingCode);
|
97
|
+
}
|
90
98
|
}
|
91
99
|
}
|
92
100
|
return countryCodeToNonGeographicalMetadataMap.get(countryCallingCode);
|
data/data/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java
CHANGED
@@ -552,7 +552,7 @@ public class PhoneNumberUtil {
|
|
552
552
|
// load factor of roughly 0.75.
|
553
553
|
private final Set<String> supportedRegions = new HashSet<String>(320);
|
554
554
|
|
555
|
-
// The set of
|
555
|
+
// The set of country calling codes that map to the non-geo entity region ("001"). This set
|
556
556
|
// currently contains < 12 elements so the default capacity of 16 (load factor=0.75) is fine.
|
557
557
|
private final Set<Integer> countryCodesForNonGeographicalRegion = new HashSet<Integer>();
|
558
558
|
|
@@ -566,7 +566,7 @@ public class PhoneNumberUtil {
|
|
566
566
|
this.countryCallingCodeToRegionCodeMap = countryCallingCodeToRegionCodeMap;
|
567
567
|
for (Map.Entry<Integer, List<String>> entry : countryCallingCodeToRegionCodeMap.entrySet()) {
|
568
568
|
List<String> regionCodes = entry.getValue();
|
569
|
-
// We can assume that if the
|
569
|
+
// We can assume that if the country calling code maps to the non-geo entity region code then
|
570
570
|
// that's the only region code it maps to.
|
571
571
|
if (regionCodes.size() == 1 && REGION_CODE_FOR_NON_GEO_ENTITY.equals(regionCodes.get(0))) {
|
572
572
|
// This is the subset of all country codes that map to the non-geo entity region code.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<modelVersion>4.0.0</modelVersion>
|
4
4
|
<groupId>com.googlecode.libphonenumber</groupId>
|
5
5
|
<artifactId>libphonenumber-parent</artifactId>
|
6
|
-
<version>7.2.
|
6
|
+
<version>7.2.7-SNAPSHOT</version>
|
7
7
|
<packaging>pom</packaging>
|
8
8
|
<url>https://github.com/googlei18n/libphonenumber/</url>
|
9
9
|
|
@@ -1,4 +1,47 @@
|
|
1
|
+
Pending changes:
|
2
|
+
Code changes:
|
3
|
+
- Update nationalPrefixOptionalWhenFormatting documentation.
|
4
|
+
|
5
|
+
Feb 25, 2016: libphonenumber-7.2.6
|
6
|
+
Metadata changes:
|
7
|
+
- Updated phone metadata for region code(s): DJ, MA, NA, US
|
8
|
+
- Updated short number metadata for region code(s): KR
|
9
|
+
- New geocoding data for country calling code(s): 1380 (en)
|
10
|
+
- Updated geocoding data for country calling code(s): 212 (en)
|
11
|
+
|
12
|
+
Feb 10, 2016: libphonenumber-7.2.5
|
13
|
+
Code changes:
|
14
|
+
- Fix two places in demo where NPEs can occur on bad input.
|
15
|
+
- Fix an IllegalStateException when getMetadataForNonGeographicalRegion is
|
16
|
+
called with a country calling code which isn't a non-geographic entity.
|
17
|
+
Metadata changes:
|
18
|
+
- Updated phone metadata for region code(s):
|
19
|
+
AG, AI, AS, BB, BM, BS, CA, DM, DO, ET, GD, GU, JM, KN, KY, LC, MP, MS, PR,
|
20
|
+
SE, SK, SX, TC, TT, US, VC, VG, VI
|
21
|
+
- Updated geocoding data for country calling code(s): 46 (en)
|
22
|
+
- Updated carrier data for country calling code(s): 251 (en)
|
23
|
+
|
24
|
+
Jan 28, 2016: libphonenumber-7.2.4
|
25
|
+
- First release to automatically remove obsolete geocoding files
|
26
|
+
Metadata changes:
|
27
|
+
- Updated phone metadata for region code(s):
|
28
|
+
BW, CA, CI, CK, GM, IN, NA, NG, PG, TD, TM
|
29
|
+
- Updated short number metadata for region code(s): PT
|
30
|
+
- New geocoding data for country calling code(s): 1825 (en)
|
31
|
+
- Removed geocoding data for country calling code(s):
|
32
|
+
1726 (en), 1730 (en), 1838 (en), 1851 (en), 1888 (en), 225 (fr), 242 (fr),
|
33
|
+
269 (fr), 238(pt), 55 (pt)
|
34
|
+
- Updated carrier data for country calling code(s):
|
35
|
+
91 (en), 225 (en), 234 (en), 235 (en), 675 (en), 993 (en)
|
36
|
+
|
1
37
|
Jan 08, 2016: libphonenumber-7.2.3
|
38
|
+
Backwards-incompatible code changes:
|
39
|
+
- Removed deprecated ShortNumberUtil.java
|
40
|
+
Other code changes:
|
41
|
+
- Updated the demo:
|
42
|
+
added short number support;
|
43
|
+
added permalink;
|
44
|
+
added direct link to file an issue
|
2
45
|
Metadata changes:
|
3
46
|
- Updated phone metadata for region code(s):
|
4
47
|
AU, BR, CC, CR, CW, CX, ET, HN, KR, SI, TV, WF
|
@@ -6,11 +49,6 @@ Metadata changes:
|
|
6
49
|
- New geocoding data for country calling code(s): 688 (en)
|
7
50
|
- Updated carrier data for country calling code(s):
|
8
51
|
61 (en), 251 (en), 506 (en), 599 (en)
|
9
|
-
- Updated the demo:
|
10
|
-
added short number support;
|
11
|
-
added permalink;
|
12
|
-
added direct link to file an issue
|
13
|
-
- Removed deprecated ShortNumberUtil.java
|
14
52
|
|
15
53
|
Dec 15, 2015: libphonenumber-7.2.2
|
16
54
|
Metadata changes:
|
@@ -24,10 +62,13 @@ Metadata changes:
|
|
24
62
|
216 (en), 354 (en), 357 (en), 686 (en)
|
25
63
|
|
26
64
|
Nov 11, 2015: libphonenumber-7.2.1
|
65
|
+
- Fix to libphonenumber-7.2.0
|
27
66
|
Metadata changes: None
|
28
|
-
Fix to 7.2.0
|
29
67
|
|
30
68
|
Nov 10, 2015: libphonenumber-7.2.0
|
69
|
+
* Broken, do not use *
|
70
|
+
Code changes:
|
71
|
+
- Phonemetadata now generated as nanoproto
|
31
72
|
Metadata changes:
|
32
73
|
- Updated phone metadata for region code(s):
|
33
74
|
BI, BT, IL, MN, MO, NP, RU, SK, VG
|
@@ -37,7 +78,6 @@ Metadata changes:
|
|
37
78
|
- Updated carrier data for country calling code(s):
|
38
79
|
45 (en), 257 (en), 421 (en), 964 (en), 972 (en), 975 (en), 976 (en)
|
39
80
|
- Updated / refreshed time zone meta data.
|
40
|
-
- Phonemetadata now generated as nanoproto
|
41
81
|
|
42
82
|
Oct 29, 2015: libphonenumber-7.1.1
|
43
83
|
Metadata changes:
|