Skip to content

Commit df2e98e

Browse files
committed
Merge metadata changes from upstream 7.6.1
Note that this involves an XML schema change. Includes changes in resources/ up to and including upstream commit 7cc500f588db "[maven-release-plugin] prepare release libphonenumber-7.6.1"
1 parent 748b50d commit df2e98e

16 files changed

Lines changed: 1706 additions & 147 deletions

File tree

resources/PhoneNumberMetadata.xml

Lines changed: 1193 additions & 95 deletions
Large diffs are not rendered by default.

resources/PhoneNumberMetadataForTesting.xml

Lines changed: 108 additions & 2 deletions
Large diffs are not rendered by default.

resources/ShortNumberMetadata.xml

Lines changed: 118 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1307,15 +1307,42 @@
13071307
<nationalNumberPattern>
13081308
1(?:
13091309
0(?:
1310-
0|
1311-
[36]\d{2}|
1312-
5\d
1310+
[02]|
1311+
3(?:
1312+
1[2-579]|
1313+
2[13-9]|
1314+
3[124-9]|
1315+
4[1-3578]|
1316+
5[1-468]|
1317+
6[139]|
1318+
8[149]|
1319+
9[168]
1320+
)|
1321+
5[0-35-9]|
1322+
6(?:
1323+
0|
1324+
1[0-35-8]?|
1325+
2[0145]|
1326+
3[0137]?|
1327+
4[37-9]?|
1328+
5[0-35]|
1329+
6[016]?|
1330+
7[137]?|
1331+
8[5-8]|
1332+
9[1359]
1333+
)
13131334
)|
1314-
[15][26]|
1315-
2[38]|
1316-
68|
1317-
81|
1318-
9[0-5789]
1335+
1[5-8]|
1336+
2[35789]|
1337+
3(?:
1338+
[024568]|
1339+
3[12]
1340+
)|
1341+
4[12568]|
1342+
5\d|
1343+
6[0-8]|
1344+
8[015]|
1345+
9[0-4789]
13191346
)|
13201347
2(?:
13211348
7(?:
@@ -1325,36 +1352,55 @@
13251352
85959?
13261353
)|
13271354
4(?:
1328-
0404|
1355+
0404?|
1356+
11[12]|
1357+
57|
13291358
828
13301359
)|
1360+
55555|
13311361
911
13321362
</nationalNumberPattern>
13331363
<exampleNumber>168</exampleNumber>
13341364
</shortCode>
13351365
<tollFree>
1336-
<!-- http://www.sdh.gov.br/disque100 -->
1337-
<!-- http://www.181.pr.gov.br/modules/conteudo/conteudo.php?conteudo=1 -->
1366+
<!-- The plan says all numbers marked as SERVIÇOS PÚBLICOS DE EMERGÊNCIA are toll-free. The
1367+
18X and 19X ranges seem to be allocated for these kinds of numbers based on the last
1368+
numbering plan. -->
13381369
<nationalNumberPattern>
13391370
1(?:
13401371
00|
1341-
81
1372+
[89]\d
13421373
)|
1343-
4828
1374+
4(?:
1375+
57|
1376+
828
1377+
)
13441378
</nationalNumberPattern>
13451379
<possibleNumberPattern>\d{3,4}</possibleNumberPattern>
13461380
<exampleNumber>181</exampleNumber>
13471381
</tollFree>
13481382
<standardRate>
1349-
<nationalNumberPattern>27330</nationalNumberPattern>
1350-
<possibleNumberPattern>\d{5}</possibleNumberPattern>
1383+
<nationalNumberPattern>
1384+
102|
1385+
27330
1386+
</nationalNumberPattern>
1387+
<possibleNumberPattern>\d{3,5}</possibleNumberPattern>
13511388
<exampleNumber>27330</exampleNumber>
13521389
</standardRate>
13531390
<carrierSpecific>
13541391
<!-- https://support.twitter.com/articles/20170024 -->
1392+
<!-- For unsubscribing to SMS short code campaigns: 457 is Vivo, 4112 is Tim, 55555 is Oi,
1393+
4040 is Claro. For example, see
1394+
http://www.tim.com.br/sp/sobre-a-tim/regulatorio/mensagens-publicitarias. Note this
1395+
also mentions 4111 as the TIM short-code to sign up. -->
13551396
<nationalNumberPattern>
13561397
27878|
1357-
40404
1398+
4(?:
1399+
0404?|
1400+
11[12]|
1401+
57
1402+
)|
1403+
55555
13581404
</nationalNumberPattern>
13591405
<possibleNumberPattern>\d{5}</possibleNumberPattern>
13601406
<exampleNumber>27878</exampleNumber>
@@ -1376,9 +1422,10 @@
13761422
Paulo. -->
13771423
<nationalNumberPattern>
13781424
1(?:
1379-
16|
1425+
1[06]|
13801426
23|
13811427
68|
1428+
8[015]|
13821429
9[145789]
13831430
)
13841431
</nationalNumberPattern>
@@ -1400,7 +1447,7 @@
14001447
<smsServices>
14011448
<!-- https://support.twitter.com/articles/20170024 -->
14021449
<!-- Added short codes 28595, 285959 and 4828 after a report that it is used for SMS
1403-
services. -->
1450+
services. We can't find range-related information, despite emailing Anatel. -->
14041451
<nationalNumberPattern>
14051452
2(?:
14061453
7(?:
@@ -3710,7 +3757,10 @@
37103757
)|
37113758
8\d{3}
37123759
)|
3713-
2[123]|
3760+
2(?:
3761+
[123]|
3762+
50
3763+
)|
37143764
33|
37153765
4(?:
37163766
1|
@@ -3799,14 +3849,15 @@
37993849
time. This is the same for the 78, 79, 80 and 81 prefixes. -->
38003850
<smsServices>
38013851
<nationalNumberPattern>
3852+
1250|
38023853
2(?:
38033854
0202|
38043855
1300
38053856
)|
38063857
7\d{4}|
38073858
8[01]\d{3}
38083859
</nationalNumberPattern>
3809-
<possibleNumberPattern>\d{5}</possibleNumberPattern>
3860+
<possibleNumberPattern>\d{4,5}</possibleNumberPattern>
38103861
<exampleNumber>20202</exampleNumber>
38113862
</smsServices>
38123863
<tollFree>
@@ -3826,8 +3877,10 @@
38263877
<exampleNumber>116000</exampleNumber>
38273878
</tollFree>
38283879
<carrierSpecific>
3880+
<!-- 1250: White Mobile balance check. -->
38293881
<nationalNumberPattern>
38303882
1(?:
3883+
250|
38313884
571|
38323885
7[56]0
38333886
)|
@@ -7366,10 +7419,23 @@
73667419
2|
73677420
6(?:
73687421
00[06]|
7369-
123
7422+
1(?:
7423+
11|
7424+
23
7425+
)
73707426
)
73717427
)|
7372-
833
7428+
2(?:
7429+
0[0-4]|
7430+
3[34]|
7431+
44
7432+
)|
7433+
3[03-9]\d|
7434+
400|
7435+
8(?:
7436+
[02-9]\d|
7437+
1[0-79]
7438+
)
73737439
)|
73747440
911
73757441
</nationalNumberPattern>
@@ -7387,7 +7453,10 @@
73877453
<nationalNumberPattern>
73887454
116(?:
73897455
00[06]|
7390-
123
7456+
1(?:
7457+
11|
7458+
23
7459+
)
73917460
)
73927461
</nationalNumberPattern>
73937462
<possibleNumberPattern>\d{6}</possibleNumberPattern>
@@ -7397,12 +7466,20 @@
73977466
<nationalNumberPattern>
73987467
116(?:
73997468
00[06]|
7400-
123
7469+
1(?:
7470+
11|
7471+
23
7472+
)
74017473
)
74027474
</nationalNumberPattern>
74037475
<possibleNumberPattern>\d{6}</possibleNumberPattern>
74047476
<exampleNumber>116000</exampleNumber>
74057477
</tollFree>
7478+
<carrierSpecific>
7479+
<nationalNumberPattern>120[0-4]</nationalNumberPattern>
7480+
<possibleNumberPattern>\d{4}</possibleNumberPattern>
7481+
<exampleNumber>1202</exampleNumber>
7482+
</carrierSpecific>
74067483
</territory>
74077484

74087485
<!-- Norway -->
@@ -7531,17 +7608,31 @@
75317608
<!-- Includes Ross Dependency, Antarctica -->
75327609
<territory id="NZ">
75337610
<generalDesc>
7534-
<nationalNumberPattern>1\d{2}</nationalNumberPattern>
7535-
<possibleNumberPattern>\d{3}</possibleNumberPattern>
7611+
<nationalNumberPattern>[14]\d{2,3}</nationalNumberPattern>
7612+
<possibleNumberPattern>\d{3,4}</possibleNumberPattern>
75367613
</generalDesc>
75377614
<shortCode>
7538-
<nationalNumberPattern>111</nationalNumberPattern>
7615+
<nationalNumberPattern>
7616+
111|
7617+
4098
7618+
</nationalNumberPattern>
7619+
<possibleLengths national="3,4"/>
75397620
<exampleNumber>111</exampleNumber>
75407621
</shortCode>
75417622
<emergency>
75427623
<nationalNumberPattern>111</nationalNumberPattern>
7624+
<possibleNumberPattern>\d{3}</possibleNumberPattern>
7625+
<possibleLengths national="3"/>
75437626
<exampleNumber>111</exampleNumber>
75447627
</emergency>
7628+
<smsServices>
7629+
<!-- 4098 is a commercial SMS only short code as per Skinny Mobile carrier doc.
7630+
https://www.skinny.co.nz/assets/pdf/skinny-premium-SMS-prices-Sheet14.pdf -->
7631+
<nationalNumberPattern>4098</nationalNumberPattern>
7632+
<possibleNumberPattern>\d{4}</possibleNumberPattern>
7633+
<possibleLengths national="4"/>
7634+
<exampleNumber>4098</exampleNumber>
7635+
</smsServices>
75457636
</territory>
75467637

75477638
<!-- Oman -->

resources/carrier/en/243.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
24384|CCT
1919
24388|Yozma Timeturns sprl -YTT
2020
24389|Tigo
21+
24390|Africell
22+
24391|Africell
2123
24397|Zain
2224
24398|Zain
2325
24399|Zain

resources/carrier/en/27.txt

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
#
1515
# The carrier prefixes were added according to the Wikipedia page
1616
# http://en.wikipedia.org/wiki/Telephone_numbers_in_South_Africa
17-
# and the open-source bug
17+
# and the open-source bugs
1818
# https://github.com/googlei18n/libphonenumber/issues/489
19+
# https://github.com/googlei18n/libphonenumber/issues/1242
1920

2021
27603|MTN
2122
27604|MTN
@@ -34,11 +35,25 @@
3435
27617|Cell C
3536
27618|Cell C
3637
27619|Cell C
37-
27620|Cell C
38-
27621|Cell C
39-
27622|Cell C
40-
27623|Cell C
41-
27624|Cell C
38+
2762|Cell C
39+
27630|MTN
40+
27631|MTN
41+
27632|MTN
42+
27633|MTN
43+
27634|MTN
44+
27635|MTN
45+
27636|Vodacom
46+
27637|Vodacom
47+
27638|MTN
48+
27639|MTN
49+
27640|MTN
50+
27641|Cell C
51+
27642|Cell C
52+
27643|Cell C
53+
27644|Cell C
54+
27645|Cell C
55+
27646|Vodacom
56+
27647|Vodacom
4257
27710|MTN
4358
27711|Vodacom
4459
27712|Vodacom

resources/carrier/en/91.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@
249249
9173279|Airtel
250250
9173280|Airtel
251251
9173288|Airtel
252+
9173307|Airtel
252253
9173376|Airtel
253254
9173377|Airtel
254255
9173378|Airtel

resources/carrier/en/963.txt

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@
1515
# Taken from https://en.wikipedia.org/wiki/Telephone_numbers_in_Syria
1616

1717
963922|Syriatel
18-
963930|Syriatel
19-
963931|Syriatel
20-
963932|Syriatel
21-
963933|Syriatel
22-
963934|Syriatel
23-
963935|Syriatel
24-
963936|Syriatel
25-
963937|Syriatel
26-
963938|Syriatel
18+
96393|Syriatel
2719
96394|MTN
2820
963950|MTN
2921
963952|MTN
@@ -40,11 +32,5 @@
4032
963967|MTN
4133
963968|MTN
4234
963969|MTN
43-
963988|Syriatel
44-
963990|Syriatel
45-
963991|Syriatel
46-
963992|Syriatel
47-
963993|Syriatel
48-
963994|Syriatel
49-
963998|Syriatel
50-
963999|Syriatel
35+
96398|Syriatel
36+
96399|Syriatel

resources/geocoding/pl/82.txt

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copyright (C) 2016 The Libphonenumber Authors
2+
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
# Translated from en/82.txt file using Wikipedia.
16+
17+
822|Seul
18+
8231|Gyeonggi
19+
8232|Incheon
20+
8233|Gangwon
21+
8241|Chungcheong Południowy
22+
8242|Daejeon
23+
8243|Chungcheong Północny
24+
8244|Sedżong
25+
8251|Pusan
26+
8252|Ulsan
27+
8253|Daegu
28+
8254|Gyeongsang Północny
29+
8255|Gyeongsang Południowy
30+
8261|Jeolla Południowa
31+
8262|Gwangju
32+
8263|Jeolla Północna
33+
8264|Czedżu

0 commit comments

Comments
 (0)