Skip to content

Commit dfb2336

Browse files
penmetsaamizuni
authored andcommitted
Metadata updates for release 7.7.2 (#1378)
1 parent a6d1cdb commit dfb2336

File tree

110 files changed

+23861
-23585
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+23861
-23585
lines changed

cpp/src/phonenumbers/lite_metadata.cc

+10,149-10,149
Large diffs are not rendered by default.

cpp/src/phonenumbers/metadata.cc

+10,889-10,889
Large diffs are not rendered by default.

cpp/src/phonenumbers/short_metadata.cc

+2,457-2,423
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

java/pending_code_changes.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
Code changes:
2-
- Stop setting empty preferred_domestic_carrier_code, and if we are passed such
3-
a number then treat the empty field as if unset.
1+

java/release_notes.txt

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
Oct 06, 2016: libphonenumber-7.7.2
2+
Code changes:
3+
- Stop setting empty preferred_domestic_carrier_code, and if we are passed such
4+
a number then treat the empty field as if unset.
5+
Metadata changes:
6+
- Updated phone metadata for region code(s): CL, FR, KE, MU, NG
7+
- Updated short number metadata for region code(s):
8+
EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, OM, PA, PE, PF, PG, PH,
9+
PK, PL, PM, PR, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG,
10+
SH, SI, SJ, SK, SL, SM, SN, SO, SR, ST, SV, SX, SY, SZ, TC, TD, TG, TH, TJ,
11+
TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI,
12+
VN, VU, WF, WS, YE, YT, ZA, ZM, ZW
13+
- Updated geocoding data for country calling code(s): 56 (en, es)
14+
- Updated carrier data for country calling code(s):
15+
230 (en), 234 (en), 254 (en)
16+
117
Sep 27, 2016: libphonenumber-7.7.1
218
Build changes:
319
- OSGi support added to Manifest information when building jar (#1300)

javascript/i18n/phonenumbers/demo-compiled.js

+65-66
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

javascript/i18n/phonenumbers/metadata.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
15411541
,"CL":[,[,,"(?:[2-9]|600|123)\\d{7,8}","\\d{7,11}",,,,,,[9,10,11]
15421542
,[7,8]
15431543
]
1544-
,[,,"2(?:1962\\d{4}|2\\d{7}|32[0-2]\\d{5})|(?:3[2-5]|[47][1-35]|5[1-3578]|6[13-57])\\d{7}","\\d{7,9}",,,"221234567",,,[9]
1544+
,[,,"2(?:1962\\d{4}|2\\d{7}|32[0-267]\\d{5})|(?:3[2-5]|[47][1-35]|5[1-3578]|6[13-57])\\d{7}","\\d{7,9}",,,"221234567",,,[9]
15451545
]
15461546
,[,,"9[3-9]\\d{7}","\\d{8,9}",,,"961234567",,,[9]
15471547
]
@@ -2466,7 +2466,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
24662466
,"FR":[,[,,"[1-9]\\d{8}","\\d{9}",,,,,,[9]
24672467
]
24682468
,[,,"[1-5]\\d{8}","\\d{9}",,,"123456789"]
2469-
,[,,"6\\d{8}|7(?:00\\d{6}|[3-9]\\d{7})","\\d{9}",,,"612345678"]
2469+
,[,,"(?:6\\d|7[3-9])\\d{7}","\\d{9}",,,"612345678"]
24702470
,[,,"80[0-5]\\d{6}","\\d{9}",,,"801234567"]
24712471
,[,,"89[1-37-9]\\d{6}","\\d{9}",,,"891123456"]
24722472
,[,,"8(?:1[019]|2[0156]|84|90)\\d{6}","\\d{9}",,,"810123456"]
@@ -3652,7 +3652,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
36523652
]
36533653
,[,,"20\\d{6,7}|4(?:[0136]\\d{7}|[245]\\d{5,7})|5(?:[08]\\d{7}|[1-79]\\d{5,7})|6(?:[01457-9]\\d{5,7}|[26]\\d{7})","\\d{7,9}",,,"202012345",,,[7,8,9]
36543654
]
3655-
,[,,"7(?:[0-36]\\d|5[0-6]|[79][0-7]|8[0-25-9])\\d{6}","\\d{9}",,,"712123456",,,[9]
3655+
,[,,"7(?:[0-369]\\d|4[0-2]|5[0-6]|7[0-7]|8[0-25-9])\\d{6}","\\d{9}",,,"712123456",,,[9]
36563656
]
36573657
,[,,"800[24-8]\\d{5,6}","\\d{9,10}",,,"800223456",,,[9,10]
36583658
]
@@ -4770,7 +4770,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
47704770
,"MU":[,[,,"[2-9]\\d{6,7}","\\d{7,8}",,,,,,[7,8]
47714771
]
47724772
,[,,"(?:2(?:[03478]\\d|1[0-7]|6[1-69])|4(?:[013568]\\d|2[4-7])|5(?:44\\d|471)|6\\d{2}|8(?:14|3[129]))\\d{4}","\\d{7,8}",,,"2012345"]
4773-
,[,,"5(?:2[59]\\d|4(?:2[1-389]|4\\d|7[1-9]|9\\d)|7\\d{2}|8(?:[0-2568]\\d|7[15-8])|9[0-8]\\d)\\d{4}","\\d{8}",,,"52512345",,,[8]
4773+
,[,,"5(?:2[59]\\d|4(?:2[1-389]|4\\d|7[1-9]|9\\d)|7\\d{2}|8(?:[0-25689]\\d|7[15-8])|9[0-8]\\d)\\d{4}","\\d{8}",,,"52512345",,,[8]
47744774
]
47754775
,[,,"80[012]\\d{4}","\\d{7}",,,"8001234",,,[7]
47764776
]
@@ -5087,7 +5087,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
50875087
]
50885088
,[,,"[12]\\d{6,7}|9(?:0[3-9]|[1-9]\\d)\\d{5}|(?:3\\d|4[023568]|5[02368]|6[02-469]|7[4-69]|8[2-9])\\d{6}|(?:4[47]|5[14579]|6[1578]|7[0-357])\\d{5,6}|(?:78|41)\\d{5}","\\d{5,8}",,,"12345678",,,[7,8]
50895089
]
5090-
,[,,"(?:1(?:7[34]\\d|8(?:04|[124579]\\d|8[0-3])|95\\d)|287[0-7]|3(?:18[1-8]|88[0-7]|9(?:8[5-9]|6[1-5]))|4(?:28[0-2]|6(?:7[1-9]|8[02-47])|88[0-2])|5(?:2(?:7[7-9]|8\\d)|38[1-79]|48[0-7]|68[4-7])|6(?:2(?:7[7-9]|8\\d)|4(?:3[7-9]|[68][129]|7[04-69]|9[1-8])|58[0-2]|98[7-9])|7(?:38[0-7]|69[1-8]|78[2-4])|8(?:28[3-9]|38[0-2]|4(?:2[12]|3[147-9]|5[346]|7[4-9]|8[014-689]|90)|58[1-8]|78[2-9]|88[5-7])|98[07]\\d)\\d{4}|(?:70[1-689]\\d|8(?:0(?:1[01]|[2-9]\\d)|1(?:[0-8]\\d|9[01]))|90[23589]\\d)\\d{6}","\\d{8,10}",,,"8021234567",,,[8,10]
5090+
,[,,"(?:1(?:7[34]\\d|8(?:04|[124579]\\d|8[0-3])|95\\d)|287[0-7]|3(?:18[1-8]|88[0-7]|9(?:8[5-9]|6[1-5]))|4(?:28[0-2]|6(?:7[1-9]|8[02-47])|88[0-2])|5(?:2(?:7[7-9]|8\\d)|38[1-79]|48[0-7]|68[4-7])|6(?:2(?:7[7-9]|8\\d)|4(?:3[7-9]|[68][129]|7[04-69]|9[1-8])|58[0-2]|98[7-9])|7(?:38[0-7]|69[1-8]|78[2-4])|8(?:28[3-9]|38[0-2]|4(?:2[12]|3[147-9]|5[346]|7[4-9]|8[014-689]|90)|58[1-8]|78[2-9]|88[5-7])|98[07]\\d)\\d{4}|(?:70[1-689]\\d|8(?:0(?:1[01]|[2-9]\\d)|1(?:[0-8]\\d|9[01]))|90[2357-9]\\d)\\d{6}","\\d{8,10}",,,"8021234567",,,[8,10]
50915091
]
50925092
,[,,"800\\d{7,11}","\\d{10,14}",,,"80017591759",,,[10,11,12,13,14]
50935093
]
@@ -5099,9 +5099,9 @@ i18n.phonenumbers.metadata.countryToMetadata = {
50995099
]
51005100
,[,,"NA","NA",,,,,,[-1]
51015101
]
5102-
,"NG",234,"009","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["70|8[01]|90[23589]"]
5102+
,"NG",234,"009","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]
51035103
,"0$1"]
5104-
,[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]
5104+
,[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["70|8[01]|90[2357-9]"]
51055105
,"0$1"]
51065106
,[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:[1-79]|0[1-9])|8[2-9]"]
51075107
,"0$1"]

javascript/i18n/phonenumbers/metadatalite.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
15411541
,"CL":[,[,,"(?:[2-9]|600|123)\\d{7,8}","\\d{7,11}",,,,,,[9,10,11]
15421542
,[7,8]
15431543
]
1544-
,[,,"2(?:1962\\d{4}|2\\d{7}|32[0-2]\\d{5})|(?:3[2-5]|[47][1-35]|5[1-3578]|6[13-57])\\d{7}","\\d{7,9}",,,,,,[9]
1544+
,[,,"2(?:1962\\d{4}|2\\d{7}|32[0-267]\\d{5})|(?:3[2-5]|[47][1-35]|5[1-3578]|6[13-57])\\d{7}","\\d{7,9}",,,,,,[9]
15451545
]
15461546
,[,,"9[3-9]\\d{7}","\\d{8,9}",,,,,,[9]
15471547
]
@@ -2466,7 +2466,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
24662466
,"FR":[,[,,"[1-9]\\d{8}","\\d{9}",,,,,,[9]
24672467
]
24682468
,[,,"[1-5]\\d{8}","\\d{9}"]
2469-
,[,,"6\\d{8}|7(?:00\\d{6}|[3-9]\\d{7})","\\d{9}"]
2469+
,[,,"(?:6\\d|7[3-9])\\d{7}","\\d{9}"]
24702470
,[,,"80[0-5]\\d{6}","\\d{9}"]
24712471
,[,,"89[1-37-9]\\d{6}","\\d{9}"]
24722472
,[,,"8(?:1[019]|2[0156]|84|90)\\d{6}","\\d{9}"]
@@ -3652,7 +3652,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
36523652
]
36533653
,[,,"20\\d{6,7}|4(?:[0136]\\d{7}|[245]\\d{5,7})|5(?:[08]\\d{7}|[1-79]\\d{5,7})|6(?:[01457-9]\\d{5,7}|[26]\\d{7})","\\d{7,9}",,,,,,[7,8,9]
36543654
]
3655-
,[,,"7(?:[0-36]\\d|5[0-6]|[79][0-7]|8[0-25-9])\\d{6}","\\d{9}",,,,,,[9]
3655+
,[,,"7(?:[0-369]\\d|4[0-2]|5[0-6]|7[0-7]|8[0-25-9])\\d{6}","\\d{9}",,,,,,[9]
36563656
]
36573657
,[,,"800[24-8]\\d{5,6}","\\d{9,10}",,,,,,[9,10]
36583658
]
@@ -4770,7 +4770,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
47704770
,"MU":[,[,,"[2-9]\\d{6,7}","\\d{7,8}",,,,,,[7,8]
47714771
]
47724772
,[,,"(?:2(?:[03478]\\d|1[0-7]|6[1-69])|4(?:[013568]\\d|2[4-7])|5(?:44\\d|471)|6\\d{2}|8(?:14|3[129]))\\d{4}","\\d{7,8}"]
4773-
,[,,"5(?:2[59]\\d|4(?:2[1-389]|4\\d|7[1-9]|9\\d)|7\\d{2}|8(?:[0-2568]\\d|7[15-8])|9[0-8]\\d)\\d{4}","\\d{8}",,,,,,[8]
4773+
,[,,"5(?:2[59]\\d|4(?:2[1-389]|4\\d|7[1-9]|9\\d)|7\\d{2}|8(?:[0-25689]\\d|7[15-8])|9[0-8]\\d)\\d{4}","\\d{8}",,,,,,[8]
47744774
]
47754775
,[,,"80[012]\\d{4}","\\d{7}",,,,,,[7]
47764776
]
@@ -5087,7 +5087,7 @@ i18n.phonenumbers.metadata.countryToMetadata = {
50875087
]
50885088
,[,,"[12]\\d{6,7}|9(?:0[3-9]|[1-9]\\d)\\d{5}|(?:3\\d|4[023568]|5[02368]|6[02-469]|7[4-69]|8[2-9])\\d{6}|(?:4[47]|5[14579]|6[1578]|7[0-357])\\d{5,6}|(?:78|41)\\d{5}","\\d{5,8}",,,,,,[7,8]
50895089
]
5090-
,[,,"(?:1(?:7[34]\\d|8(?:04|[124579]\\d|8[0-3])|95\\d)|287[0-7]|3(?:18[1-8]|88[0-7]|9(?:8[5-9]|6[1-5]))|4(?:28[0-2]|6(?:7[1-9]|8[02-47])|88[0-2])|5(?:2(?:7[7-9]|8\\d)|38[1-79]|48[0-7]|68[4-7])|6(?:2(?:7[7-9]|8\\d)|4(?:3[7-9]|[68][129]|7[04-69]|9[1-8])|58[0-2]|98[7-9])|7(?:38[0-7]|69[1-8]|78[2-4])|8(?:28[3-9]|38[0-2]|4(?:2[12]|3[147-9]|5[346]|7[4-9]|8[014-689]|90)|58[1-8]|78[2-9]|88[5-7])|98[07]\\d)\\d{4}|(?:70[1-689]\\d|8(?:0(?:1[01]|[2-9]\\d)|1(?:[0-8]\\d|9[01]))|90[23589]\\d)\\d{6}","\\d{8,10}",,,,,,[8,10]
5090+
,[,,"(?:1(?:7[34]\\d|8(?:04|[124579]\\d|8[0-3])|95\\d)|287[0-7]|3(?:18[1-8]|88[0-7]|9(?:8[5-9]|6[1-5]))|4(?:28[0-2]|6(?:7[1-9]|8[02-47])|88[0-2])|5(?:2(?:7[7-9]|8\\d)|38[1-79]|48[0-7]|68[4-7])|6(?:2(?:7[7-9]|8\\d)|4(?:3[7-9]|[68][129]|7[04-69]|9[1-8])|58[0-2]|98[7-9])|7(?:38[0-7]|69[1-8]|78[2-4])|8(?:28[3-9]|38[0-2]|4(?:2[12]|3[147-9]|5[346]|7[4-9]|8[014-689]|90)|58[1-8]|78[2-9]|88[5-7])|98[07]\\d)\\d{4}|(?:70[1-689]\\d|8(?:0(?:1[01]|[2-9]\\d)|1(?:[0-8]\\d|9[01]))|90[2357-9]\\d)\\d{6}","\\d{8,10}",,,,,,[8,10]
50915091
]
50925092
,[,,"800\\d{7,11}","\\d{10,14}",,,,,,[10,11,12,13,14]
50935093
]
@@ -5099,9 +5099,9 @@ i18n.phonenumbers.metadata.countryToMetadata = {
50995099
]
51005100
,[,,"NA","NA",,,,,,[-1]
51015101
]
5102-
,"NG",234,"009","0",,,"0",,,,[[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["70|8[01]|90[23589]"]
5102+
,"NG",234,"009","0",,,"0",,,,[[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]
51035103
,"0$1"]
5104-
,[,"(\\d)(\\d{3})(\\d{3,4})","$1 $2 $3",["[12]|9(?:0[3-9]|[1-9])"]
5104+
,[,"(\\d{3})(\\d{3})(\\d{3,4})","$1 $2 $3",["70|8[01]|90[2357-9]"]
51055105
,"0$1"]
51065106
,[,"(\\d{2})(\\d{3})(\\d{2,3})","$1 $2 $3",["[3-6]|7(?:[1-79]|0[1-9])|8[2-9]"]
51075107
,"0$1"]

resources/PhoneNumberMetadata.xml

+26-27
Original file line numberDiff line numberDiff line change
@@ -4882,18 +4882,16 @@
48824882
<!-- In mid-2013, Chile switched from 8 digits to 9 digits for fixed-line numbers, by
48834883
inserting a '2' after the area code (which are 2 digits, with the exception of '2').
48844884
As of Aug. 2014, all of the prefixes have been switched over to the new plan.
4885-
IMPORTANT: The fact that Santiago numbers have a prefix of "22", and that numbers in
4886-
other areas have '2' as their third digit, is likely to change in the future. At some
4887-
stage, Santiago numbers will probably switch to prefix "2\d", and the third digit in
4888-
other areas will probably be allowed to take on other values.
4885+
IMPORTANT: Originally after the change Santiago numbers had a prefix of "22", but
4886+
already numbers with the prefix "23" are being added.
48894887
See: http://www.gob.cl/especiales/informate-de-la-nueva-forma-de-marcar/
48904888
http://www.subtel.cl/index.php?option=com_content&view=article&id=3081:&catid=3:noticias
4891-
-->
4889+
Added 2326 range based on online evidence. Added prefix 2327 based on user report. -->
48924890
<nationalNumberPattern>
48934891
2(?:
48944892
1962\d{4}|
48954893
2\d{7}|
4896-
32[0-2]\d{5}
4894+
32[0-267]\d{5}
48974895
)|
48984896
(?:
48994897
3[2-5]|
@@ -7971,11 +7969,10 @@
79717969
</fixedLine>
79727970
<mobile>
79737971
<nationalNumberPattern>
7974-
6\d{8}|
7975-
7(?:
7976-
00\d{6}|
7977-
[3-9]\d{7}
7978-
)
7972+
(?:
7973+
6\d|
7974+
7[3-9]
7975+
)\d{7}
79797976
</nationalNumberPattern>
79807977
<possibleLengths national="9"/>
79817978
<exampleNumber>612345678</exampleNumber>
@@ -14062,9 +14059,10 @@
1406214059
<mobile>
1406314060
<nationalNumberPattern>
1406414061
7(?:
14065-
[0-36]\d|
14062+
[0-369]\d|
14063+
4[0-2]|
1406614064
5[0-6]|
14067-
[79][0-7]|
14065+
7[0-7]|
1406814066
8[0-25-9]
1406914067
)\d{6}
1407014068
</nationalNumberPattern>
@@ -17611,7 +17609,7 @@
1761117609
<possibleLengths national="7,8"/>
1761217610
<exampleNumber>2012345</exampleNumber>
1761317611
</fixedLine>
17614-
<!-- Added prefix 580 and 581 as per information from the carrier. -->
17612+
<!-- Added prefix 580, 581 and 589 as per information from the carrier. -->
1761517613
<mobile>
1761617614
<nationalNumberPattern>
1761717615
5(?:
@@ -17624,7 +17622,7 @@
1762417622
)|
1762517623
7\d{2}|
1762617624
8(?:
17627-
[0-2568]\d|
17625+
[0-25689]\d|
1762817626
7[15-8]
1762917627
)|
1763017628
9[0-8]\d
@@ -18534,18 +18532,10 @@
1853418532
<sourceUrl>http://www.itu.int/oth/T020200009C/en</sourceUrl>
1853518533
<sourceUrl>http://www.ncc.gov.ng/index.php/index.php?option=com_content&amp;view=article&amp;id=113&amp;Itemid=102</sourceUrl>
1853618534
</references>
18537-
<!-- The first pattern which is for mobile ranges overlaps with the pattern
18538-
below it and is ordered above it as there are more mobile numbers with
18539-
the overlapping prefixes than fixed-line prefixes. -->
18535+
<!-- This pattern is for fixed-line ranges and overlaps with the pattern for mobile ranges
18536+
below it. It is ordered above that one as its numbers are shorter, to reduce switching
18537+
back and forth between the two formats as one is typing. -->
1854018538
<availableFormats>
18541-
<numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
18542-
<leadingDigits>
18543-
70|
18544-
8[01]|
18545-
90[23589]
18546-
</leadingDigits>
18547-
<format>$1 $2 $3</format>
18548-
</numberFormat>
1854918539
<numberFormat pattern="(\d)(\d{3})(\d{3,4})">
1855018540
<leadingDigits>
1855118541
[12]|
@@ -18556,6 +18546,14 @@
1855618546
</leadingDigits>
1855718547
<format>$1 $2 $3</format>
1855818548
</numberFormat>
18549+
<numberFormat pattern="(\d{3})(\d{3})(\d{3,4})">
18550+
<leadingDigits>
18551+
70|
18552+
8[01]|
18553+
90[2357-9]
18554+
</leadingDigits>
18555+
<format>$1 $2 $3</format>
18556+
</numberFormat>
1855918557
<numberFormat pattern="(\d{2})(\d{3})(\d{2,3})">
1856018558
<leadingDigits>
1856118559
[3-6]|
@@ -18619,6 +18617,7 @@
1861918617
<exampleNumber>12345678</exampleNumber>
1862018618
</fixedLine>
1862118619
<mobile>
18620+
<!-- Added 907 mobile prefix based on report. -->
1862218621
<nationalNumberPattern>
1862318622
(?:
1862418623
1(?:
@@ -18704,7 +18703,7 @@
1870418703
9[01]
1870518704
)
1870618705
)|
18707-
90[23589]\d
18706+
90[2357-9]\d
1870818707
)\d{6}
1870918708
</nationalNumberPattern>
1871018709
<possibleNumberPattern>\d{8,10}</possibleNumberPattern>

0 commit comments

Comments
 (0)