File: phonenumbers.html

package info (click to toggle)
python-phonenumbers 8.12.57-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,212 kB
  • sloc: python: 332,712; xml: 46,045; makefile: 143; java: 91
file content (1753 lines) | stat: -rw-r--r-- 139,635 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: package phonenumbers</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>phonenumbers</strong></big></big> (version 8.12.40)</font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="https://github.com/daviddrysdale/python-phonenumbers/blob/dev/python/phonenumbers/__init__.py">phonenumbers/__init__.py</a></font></td></tr></table>
    <p><tt>Python&nbsp;phone&nbsp;number&nbsp;parsing&nbsp;and&nbsp;formatting&nbsp;library<br>
&nbsp;<br>
Examples&nbsp;of&nbsp;use:<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;import&nbsp;phonenumbers<br>
&gt;&gt;&gt;&nbsp;from&nbsp;phonenumbers.util&nbsp;import&nbsp;prnt&nbsp;&nbsp;#&nbsp;equivalent&nbsp;to&nbsp;Py3k&nbsp;print()<br>
&gt;&gt;&gt;&nbsp;x&nbsp;=&nbsp;phonenumbers.<a href="#-parse">parse</a>("+442083661177",&nbsp;None)<br>
&gt;&gt;&gt;&nbsp;prnt(x)<br>
Country&nbsp;Code:&nbsp;44&nbsp;National&nbsp;Number:&nbsp;2083661177<br>
&gt;&gt;&gt;&nbsp;type(x)<br>
&lt;class&nbsp;'phonenumbers.phonenumber.<a href="#PhoneNumber">PhoneNumber</a>'&gt;<br>
&gt;&gt;&gt;&nbsp;str(phonenumbers.<a href="#-format_number">format_number</a>(x,&nbsp;phonenumbers.<a href="#PhoneNumberFormat">PhoneNumberFormat</a>.NATIONAL))<br>
'020&nbsp;8366&nbsp;1177'<br>
&gt;&gt;&gt;&nbsp;str(phonenumbers.<a href="#-format_number">format_number</a>(x,&nbsp;phonenumbers.<a href="#PhoneNumberFormat">PhoneNumberFormat</a>.INTERNATIONAL))<br>
'+44&nbsp;20&nbsp;8366&nbsp;1177'<br>
&gt;&gt;&gt;&nbsp;str(phonenumbers.<a href="#-format_number">format_number</a>(x,&nbsp;phonenumbers.<a href="#PhoneNumberFormat">PhoneNumberFormat</a>.E164))<br>
'+442083661177'<br>
&gt;&gt;&gt;&nbsp;y&nbsp;=&nbsp;phonenumbers.<a href="#-parse">parse</a>("020&nbsp;8366&nbsp;1177",&nbsp;"GB")<br>
&gt;&gt;&gt;&nbsp;prnt(y)<br>
Country&nbsp;Code:&nbsp;44&nbsp;National&nbsp;Number:&nbsp;2083661177<br>
&gt;&gt;&gt;&nbsp;x&nbsp;==&nbsp;y<br>
True<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&nbsp;formatter&nbsp;=&nbsp;phonenumbers.<a href="#AsYouTypeFormatter">AsYouTypeFormatter</a>("US")<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("6"))<br>
6<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("5"))<br>
65<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("0"))<br>
650<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("2"))<br>
650-2<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("5"))<br>
650-25<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("3"))<br>
650-253<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("2"))<br>
650-2532<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("2"))<br>
(650)&nbsp;253-22<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("2"))<br>
(650)&nbsp;253-222<br>
&gt;&gt;&gt;&nbsp;prnt(formatter.input_digit("2"))<br>
(650)&nbsp;253-2222<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&nbsp;text&nbsp;=&nbsp;"Call&nbsp;me&nbsp;at&nbsp;510-748-8230&nbsp;if&nbsp;it's&nbsp;before&nbsp;9:30,&nbsp;or&nbsp;on&nbsp;703-4800500&nbsp;after&nbsp;10am."<br>
&gt;&gt;&gt;&nbsp;for&nbsp;match&nbsp;in&nbsp;phonenumbers.<a href="#PhoneNumberMatcher">PhoneNumberMatcher</a>(text,&nbsp;"US"):<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prnt(match)<br>
...<br>
<a href="#PhoneNumberMatch">PhoneNumberMatch</a>&nbsp;[11,23)&nbsp;510-748-8230<br>
<a href="#PhoneNumberMatch">PhoneNumberMatch</a>&nbsp;[51,62)&nbsp;703-4800500<br>
&gt;&gt;&gt;&nbsp;for&nbsp;match&nbsp;in&nbsp;phonenumbers.<a href="#PhoneNumberMatcher">PhoneNumberMatcher</a>(text,&nbsp;"US"):<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prnt(phonenumbers.<a href="#-format_number">format_number</a>(match.number,&nbsp;phonenumbers.<a href="#PhoneNumberFormat">PhoneNumberFormat</a>.E164))<br>
...<br>
+15107488230<br>
+17034800500<br>
&gt;&gt;&gt;</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Package Contents</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="phonenumbers.asyoutypeformatter.html">asyoutypeformatter</a><br>
<a href="phonenumbers.carrier.html">carrier</a><br>
<a href="phonenumbers.carrierdata.html"><strong>carrierdata</strong>&nbsp;(package)</a><br>
<a href="phonenumbers.data.html"><strong>data</strong>&nbsp;(package)</a><br>
<a href="phonenumbers.geocoder.html">geocoder</a><br>
</td><td width="25%" valign=top><a href="phonenumbers.geodata.html"><strong>geodata</strong>&nbsp;(package)</a><br>
<a href="phonenumbers.pb2.html"><strong>pb2</strong>&nbsp;(package)</a><br>
<a href="phonenumbers.phonemetadata.html">phonemetadata</a><br>
<a href="phonenumbers.phonenumber.html">phonenumber</a><br>
<a href="phonenumbers.phonenumbermatcher.html">phonenumbermatcher</a><br>
</td><td width="25%" valign=top><a href="phonenumbers.phonenumberutil.html">phonenumberutil</a><br>
<a href="phonenumbers.prefix.html">prefix</a><br>
<a href="phonenumbers.re_util.html">re_util</a><br>
<a href="phonenumbers.shortdata.html"><strong>shortdata</strong>&nbsp;(package)</a><br>
<a href="phonenumbers.shortnumberinfo.html">shortnumberinfo</a><br>
</td><td width="25%" valign=top><a href="phonenumbers.timezone.html">timezone</a><br>
<a href="phonenumbers.tzdata.html"><strong>tzdata</strong>&nbsp;(package)</a><br>
<a href="phonenumbers.unicode_util.html">unicode_util</a><br>
<a href="phonenumbers.util.html">util</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ee77aa">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
    
<tr><td bgcolor="#ee77aa"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl>
<dt><font face="helvetica, arial"><a href="builtins.html#Exception">builtins.Exception</a>(<a href="builtins.html#BaseException">builtins.BaseException</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="phonenumbers.phonenumberutil.html#NumberParseException">phonenumbers.phonenumberutil.NumberParseException</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="builtins.html#Exception">builtins.Exception</a>)
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="builtins.html#object">builtins.object</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="phonenumbers.asyoutypeformatter.html#AsYouTypeFormatter">phonenumbers.asyoutypeformatter.AsYouTypeFormatter</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumber.html#CountryCodeSource">phonenumbers.phonenumber.CountryCodeSource</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumbermatcher.html#Leniency">phonenumbers.phonenumbermatcher.Leniency</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumbermatcher.html#PhoneNumberMatcher">phonenumbers.phonenumbermatcher.PhoneNumberMatcher</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumberutil.html#MatchType">phonenumbers.phonenumberutil.MatchType</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumberutil.html#PhoneNumberFormat">phonenumbers.phonenumberutil.PhoneNumberFormat</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumberutil.html#PhoneNumberType">phonenumbers.phonenumberutil.PhoneNumberType</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumberutil.html#ValidationResult">phonenumbers.phonenumberutil.ValidationResult</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.shortnumberinfo.html#ShortNumberCost">phonenumbers.shortnumberinfo.ShortNumberCost</a>
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>(<a href="builtins.html#object">builtins.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="phonenumbers.phonemetadata.html#NumberFormat">phonenumbers.phonemetadata.NumberFormat</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonemetadata.html#PhoneMetadata">phonenumbers.phonemetadata.PhoneMetadata</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonemetadata.html#PhoneNumberDesc">phonenumbers.phonemetadata.PhoneNumberDesc</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>(<a href="builtins.html#object">builtins.object</a>)
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="phonenumbers.phonemetadata.html#NumberFormat">phonenumbers.phonemetadata.NumberFormat</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonemetadata.html#PhoneMetadata">phonenumbers.phonemetadata.PhoneMetadata</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonemetadata.html#PhoneNumberDesc">phonenumbers.phonemetadata.PhoneNumberDesc</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumber.html#PhoneNumber">phonenumbers.phonenumber.PhoneNumber</a>
</font></dt><dd>
<dl>
<dt><font face="helvetica, arial"><a href="phonenumbers.phonenumber.html#FrozenPhoneNumber">phonenumbers.phonenumber.FrozenPhoneNumber</a>(<a href="phonenumbers.phonenumber.html#PhoneNumber">phonenumbers.phonenumber.PhoneNumber</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)
</font></dt></dl>
</dd>
<dt><font face="helvetica, arial"><a href="phonenumbers.phonenumbermatcher.html#PhoneNumberMatch">phonenumbers.phonenumbermatcher.PhoneNumberMatch</a>
</font></dt><dt><font face="helvetica, arial"><a href="phonenumbers.phonenumberutil.html#NumberParseException">phonenumbers.phonenumberutil.NumberParseException</a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="builtins.html#Exception">builtins.Exception</a>)
</font></dt></dl>
</dd>
</dl>
 <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="AsYouTypeFormatter">class <strong>AsYouTypeFormatter</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#AsYouTypeFormatter">AsYouTypeFormatter</a>(region_code)<br>
&nbsp;<br>
<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="AsYouTypeFormatter-__init__"><strong>__init__</strong></a>(self, region_code)</dt><dd><tt>Gets&nbsp;an&nbsp;<a href="#AsYouTypeFormatter">AsYouTypeFormatter</a>&nbsp;for&nbsp;the&nbsp;specific&nbsp;region.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;where&nbsp;the&nbsp;phone&nbsp;number&nbsp;is&nbsp;being&nbsp;entered<br>
&nbsp;<br>
Return&nbsp;an&nbsp;<a href="#AsYouTypeFormatter">AsYouTypeFormatter</a>}&nbsp;<a href="builtins.html#object">object</a>,&nbsp;which&nbsp;could&nbsp;be&nbsp;used&nbsp;to&nbsp;format<br>
phone&nbsp;numbers&nbsp;in&nbsp;the&nbsp;specific&nbsp;region&nbsp;"as&nbsp;you&nbsp;type"</tt></dd></dl>

<dl><dt><a name="AsYouTypeFormatter-clear"><strong>clear</strong></a>(self)</dt><dd><tt>Clears&nbsp;the&nbsp;internal&nbsp;state&nbsp;of&nbsp;the&nbsp;formatter,&nbsp;so&nbsp;it&nbsp;can&nbsp;be&nbsp;reused.</tt></dd></dl>

<dl><dt><a name="AsYouTypeFormatter-get_remembered_position"><strong>get_remembered_position</strong></a>(self)</dt><dd><tt>Returns&nbsp;the&nbsp;current&nbsp;position&nbsp;in&nbsp;the&nbsp;partially&nbsp;formatted&nbsp;phone<br>
number&nbsp;of&nbsp;the&nbsp;character&nbsp;which&nbsp;was&nbsp;previously&nbsp;passed&nbsp;in&nbsp;as&nbsp;the<br>
parameter&nbsp;of&nbsp;<a href="#AsYouTypeFormatter-input_digit">input_digit</a>(remember_position=True).</tt></dd></dl>

<dl><dt><a name="AsYouTypeFormatter-input_digit"><strong>input_digit</strong></a>(self, next_char, remember_position=False)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;on-the-fly&nbsp;as&nbsp;each&nbsp;digit&nbsp;is&nbsp;entered.<br>
&nbsp;<br>
If&nbsp;remember_position&nbsp;is&nbsp;set,&nbsp;remembers&nbsp;the&nbsp;position&nbsp;where&nbsp;next_char&nbsp;is<br>
inserted,&nbsp;so&nbsp;that&nbsp;it&nbsp;can&nbsp;be&nbsp;retrieved&nbsp;later&nbsp;by&nbsp;using<br>
get_remembered_position.&nbsp;The&nbsp;remembered&nbsp;position&nbsp;will&nbsp;be&nbsp;automatically<br>
adjusted&nbsp;if&nbsp;additional&nbsp;formatting&nbsp;characters&nbsp;are&nbsp;later<br>
inserted/removed&nbsp;in&nbsp;front&nbsp;of&nbsp;next_char.<br>
&nbsp;<br>
Arguments:<br>
&nbsp;<br>
next_char&nbsp;--&nbsp;The&nbsp;most&nbsp;recently&nbsp;entered&nbsp;digit&nbsp;of&nbsp;a&nbsp;phone<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;number.&nbsp;Formatting&nbsp;characters&nbsp;are&nbsp;allowed,&nbsp;but&nbsp;as&nbsp;soon&nbsp;as&nbsp;they<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;are&nbsp;encountered&nbsp;this&nbsp;method&nbsp;formats&nbsp;the&nbsp;number&nbsp;as&nbsp;entered&nbsp;and<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;not&nbsp;"as&nbsp;you&nbsp;type"&nbsp;anymore.&nbsp;Full&nbsp;width&nbsp;digits&nbsp;and&nbsp;Arabic-indic<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;digits&nbsp;are&nbsp;allowed,&nbsp;and&nbsp;will&nbsp;be&nbsp;shown&nbsp;as&nbsp;they&nbsp;are.<br>
remember_position&nbsp;--&nbsp;Whether&nbsp;to&nbsp;track&nbsp;the&nbsp;position&nbsp;where&nbsp;next_char&nbsp;is<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inserted.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;partially&nbsp;formatted&nbsp;phone&nbsp;number.</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="CountryCodeSource">class <strong>CountryCodeSource</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>The&nbsp;source&nbsp;from&nbsp;which&nbsp;a&nbsp;country&nbsp;code&nbsp;is&nbsp;derived.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>FROM_DEFAULT_COUNTRY</strong> = 20</dl>

<dl><dt><strong>FROM_NUMBER_WITHOUT_PLUS_SIGN</strong> = 10</dl>

<dl><dt><strong>FROM_NUMBER_WITH_IDD</strong> = 5</dl>

<dl><dt><strong>FROM_NUMBER_WITH_PLUS_SIGN</strong> = 1</dl>

<dl><dt><strong>UNSPECIFIED</strong> = 0</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="FrozenPhoneNumber">class <strong>FrozenPhoneNumber</strong></a>(<a href="phonenumbers.phonenumber.html#PhoneNumber">PhoneNumber</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#FrozenPhoneNumber">FrozenPhoneNumber</a>(*__args,&nbsp;**__kwargs)<br>
&nbsp;<br>
Immutable&nbsp;version&nbsp;of&nbsp;<a href="#PhoneNumber">PhoneNumber</a><br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="phonenumbers.phonenumber.html#FrozenPhoneNumber">FrozenPhoneNumber</a></dd>
<dd><a href="phonenumbers.phonenumber.html#PhoneNumber">PhoneNumber</a></dd>
<dd><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a></dd>
<dd><a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="FrozenPhoneNumber-__hash__"><strong>__hash__</strong></a>(self)</dt><dd><tt>Return&nbsp;hash(self).</tt></dd></dl>

<dl><dt><a name="FrozenPhoneNumber-__init__"><strong>__init__</strong></a> = wrapper(self, *__args, **__kwargs)</dt></dl>

<hr>
Methods inherited from <a href="phonenumbers.phonenumber.html#PhoneNumber">PhoneNumber</a>:<br>
<dl><dt><a name="FrozenPhoneNumber-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self==value.</tt></dd></dl>

<dl><dt><a name="FrozenPhoneNumber-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self!=value.</tt></dd></dl>

<dl><dt><a name="FrozenPhoneNumber-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>

<dl><dt><a name="FrozenPhoneNumber-__unicode__"><strong>__unicode__</strong></a>(self)</dt></dl>

<dl><dt><a name="FrozenPhoneNumber-clear"><strong>clear</strong></a>(self)</dt><dd><tt>Erase&nbsp;the&nbsp;contents&nbsp;of&nbsp;the&nbsp;<a href="builtins.html#object">object</a></tt></dd></dl>

<dl><dt><a name="FrozenPhoneNumber-merge_from"><strong>merge_from</strong></a>(self, other)</dt><dd><tt>Merge&nbsp;information&nbsp;from&nbsp;another&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;into&nbsp;this&nbsp;one.</tt></dd></dl>

<hr>
Methods inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><a name="FrozenPhoneNumber-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return&nbsp;str(self).</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>:<br>
<dl><dt><a name="FrozenPhoneNumber-__delattr__"><strong>__delattr__</strong></a>(self, name)</dt><dd><tt>Implement&nbsp;delattr(self,&nbsp;name).</tt></dd></dl>

<dl><dt><a name="FrozenPhoneNumber-__setattr__"><strong>__setattr__</strong></a>(self, name, value)</dt><dd><tt>Implement&nbsp;setattr(self,&nbsp;name,&nbsp;value).</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="Leniency">class <strong>Leniency</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#Leniency">Leniency</a>&nbsp;when&nbsp;finding&nbsp;potential&nbsp;phone&nbsp;numbers&nbsp;in&nbsp;text&nbsp;segments.<br>
&nbsp;<br>
The&nbsp;levels&nbsp;here&nbsp;are&nbsp;ordered&nbsp;in&nbsp;increasing&nbsp;strictness.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>EXACT_GROUPING</strong> = 3</dl>

<dl><dt><strong>POSSIBLE</strong> = 0</dl>

<dl><dt><strong>STRICT_GROUPING</strong> = 2</dl>

<dl><dt><strong>VALID</strong> = 1</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="MatchType">class <strong>MatchType</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Types&nbsp;of&nbsp;phone&nbsp;number&nbsp;matches.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Class methods defined here:<br>
<dl><dt><a name="MatchType-to_string"><strong>to_string</strong></a>(val)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Return&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;a&nbsp;<a href="#MatchType">MatchType</a>&nbsp;value</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>EXACT_MATCH</strong> = 4</dl>

<dl><dt><strong>NOT_A_NUMBER</strong> = 0</dl>

<dl><dt><strong>NO_MATCH</strong> = 1</dl>

<dl><dt><strong>NSN_MATCH</strong> = 3</dl>

<dl><dt><strong>SHORT_NSN_MATCH</strong> = 2</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="NumberFormat">class <strong>NumberFormat</strong></a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#NumberFormat">NumberFormat</a>(*__args,&nbsp;**__kwargs)<br>
&nbsp;<br>
Representation&nbsp;of&nbsp;way&nbsp;that&nbsp;a&nbsp;phone&nbsp;number&nbsp;can&nbsp;be&nbsp;formatted&nbsp;for&nbsp;output<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="phonenumbers.phonemetadata.html#NumberFormat">NumberFormat</a></dd>
<dd><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a></dd>
<dd><a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="NumberFormat-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self==value.</tt></dd></dl>

<dl><dt><a name="NumberFormat-__init__"><strong>__init__</strong></a> = wrapper(self, *__args, **__kwargs)</dt></dl>

<dl><dt><a name="NumberFormat-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self!=value.</tt></dd></dl>

<dl><dt><a name="NumberFormat-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>

<dl><dt><a name="NumberFormat-__unicode__"><strong>__unicode__</strong></a>(self)</dt></dl>

<dl><dt><a name="NumberFormat-merge_from"><strong>merge_from</strong></a>(self, other)</dt><dd><tt>Merge&nbsp;information&nbsp;from&nbsp;another&nbsp;<a href="#NumberFormat">NumberFormat</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;into&nbsp;this&nbsp;one.</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__hash__</strong> = None</dl>

<hr>
Methods inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><a name="NumberFormat-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return&nbsp;str(self).</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>:<br>
<dl><dt><a name="NumberFormat-__delattr__"><strong>__delattr__</strong></a>(self, name)</dt><dd><tt>Implement&nbsp;delattr(self,&nbsp;name).</tt></dd></dl>

<dl><dt><a name="NumberFormat-__setattr__"><strong>__setattr__</strong></a>(self, name, value)</dt><dd><tt>Implement&nbsp;setattr(self,&nbsp;name,&nbsp;value).</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="NumberParseException">class <strong>NumberParseException</strong></a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="builtins.html#Exception">builtins.Exception</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#NumberParseException">NumberParseException</a>(error_type,&nbsp;msg)<br>
&nbsp;<br>
<a href="builtins.html#Exception">Exception</a>&nbsp;when&nbsp;attempting&nbsp;to&nbsp;parse&nbsp;a&nbsp;putative&nbsp;phone&nbsp;number<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="phonenumbers.phonenumberutil.html#NumberParseException">NumberParseException</a></dd>
<dd><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a></dd>
<dd><a href="builtins.html#Exception">builtins.Exception</a></dd>
<dd><a href="builtins.html#BaseException">builtins.BaseException</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="NumberParseException-__init__"><strong>__init__</strong></a>(self, error_type, msg)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>

<dl><dt><a name="NumberParseException-__reduce__"><strong>__reduce__</strong></a>(self)</dt><dd><tt>Helper&nbsp;for&nbsp;pickle.</tt></dd></dl>

<dl><dt><a name="NumberParseException-__unicode__"><strong>__unicode__</strong></a>(self)</dt></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>INVALID_COUNTRY_CODE</strong> = 0</dl>

<dl><dt><strong>NOT_A_NUMBER</strong> = 1</dl>

<dl><dt><strong>TOO_LONG</strong> = 4</dl>

<dl><dt><strong>TOO_SHORT_AFTER_IDD</strong> = 2</dl>

<dl><dt><strong>TOO_SHORT_NSN</strong> = 3</dl>

<hr>
Methods inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><a name="NumberParseException-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return&nbsp;str(self).</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Static methods inherited from <a href="builtins.html#Exception">builtins.Exception</a>:<br>
<dl><dt><a name="NumberParseException-__new__"><strong>__new__</strong></a>(*args, **kwargs)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Create&nbsp;and&nbsp;return&nbsp;a&nbsp;new&nbsp;<a href="builtins.html#object">object</a>.&nbsp;&nbsp;See&nbsp;help(type)&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>

<hr>
Methods inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br>
<dl><dt><a name="NumberParseException-__delattr__"><strong>__delattr__</strong></a>(self, name, /)</dt><dd><tt>Implement&nbsp;delattr(self,&nbsp;name).</tt></dd></dl>

<dl><dt><a name="NumberParseException-__getattribute__"><strong>__getattribute__</strong></a>(self, name, /)</dt><dd><tt>Return&nbsp;getattr(self,&nbsp;name).</tt></dd></dl>

<dl><dt><a name="NumberParseException-__repr__"><strong>__repr__</strong></a>(self, /)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>

<dl><dt><a name="NumberParseException-__setattr__"><strong>__setattr__</strong></a>(self, name, value, /)</dt><dd><tt>Implement&nbsp;setattr(self,&nbsp;name,&nbsp;value).</tt></dd></dl>

<dl><dt><a name="NumberParseException-__setstate__"><strong>__setstate__</strong></a>(...)</dt></dl>

<dl><dt><a name="NumberParseException-with_traceback"><strong>with_traceback</strong></a>(...)</dt><dd><tt><a href="builtins.html#Exception">Exception</a>.<a href="#NumberParseException-with_traceback">with_traceback</a>(tb)&nbsp;--<br>
set&nbsp;self.<strong>__traceback__</strong>&nbsp;to&nbsp;tb&nbsp;and&nbsp;return&nbsp;self.</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="builtins.html#BaseException">builtins.BaseException</a>:<br>
<dl><dt><strong>__cause__</strong></dt>
<dd><tt>exception&nbsp;cause</tt></dd>
</dl>
<dl><dt><strong>__context__</strong></dt>
<dd><tt>exception&nbsp;context</tt></dd>
</dl>
<dl><dt><strong>__suppress_context__</strong></dt>
</dl>
<dl><dt><strong>__traceback__</strong></dt>
</dl>
<dl><dt><strong>args</strong></dt>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PhoneMetadata">class <strong>PhoneMetadata</strong></a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#PhoneMetadata">PhoneMetadata</a>(*__args,&nbsp;**__kwargs)<br>
&nbsp;<br>
Class&nbsp;representing&nbsp;metadata&nbsp;for&nbsp;international&nbsp;telephone&nbsp;numbers&nbsp;for&nbsp;a&nbsp;region.<br>
&nbsp;<br>
This&nbsp;class&nbsp;is&nbsp;hand&nbsp;created&nbsp;based&nbsp;on&nbsp;phonemetadata.proto.&nbsp;Please&nbsp;refer&nbsp;to&nbsp;that&nbsp;file<br>
for&nbsp;detailed&nbsp;descriptions&nbsp;of&nbsp;the&nbsp;meaning&nbsp;of&nbsp;each&nbsp;field.<br>
&nbsp;<br>
WARNING:&nbsp;This&nbsp;API&nbsp;isn't&nbsp;stable.&nbsp;It&nbsp;is&nbsp;considered&nbsp;libphonenumber-internal<br>
and&nbsp;can&nbsp;change&nbsp;at&nbsp;any&nbsp;time.&nbsp;We&nbsp;only&nbsp;declare&nbsp;it&nbsp;as&nbsp;public&nbsp;for&nbsp;easy<br>
inclusion&nbsp;in&nbsp;our&nbsp;build&nbsp;tools&nbsp;not&nbsp;in&nbsp;this&nbsp;package.&nbsp;&nbsp;Clients&nbsp;should&nbsp;not<br>
refer&nbsp;to&nbsp;this&nbsp;file,&nbsp;we&nbsp;do&nbsp;not&nbsp;commit&nbsp;to&nbsp;support&nbsp;backwards-compatibility&nbsp;or<br>
to&nbsp;warn&nbsp;about&nbsp;breaking&nbsp;changes.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="phonenumbers.phonemetadata.html#PhoneMetadata">PhoneMetadata</a></dd>
<dd><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a></dd>
<dd><a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PhoneMetadata-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self==value.</tt></dd></dl>

<dl><dt><a name="PhoneMetadata-__init__"><strong>__init__</strong></a> = wrapper(self, *__args, **__kwargs)</dt></dl>

<dl><dt><a name="PhoneMetadata-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self!=value.</tt></dd></dl>

<dl><dt><a name="PhoneMetadata-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>

<dl><dt><a name="PhoneMetadata-__unicode__"><strong>__unicode__</strong></a>(self)</dt></dl>

<hr>
Class methods defined here:<br>
<dl><dt><a name="PhoneMetadata-load_all"><strong>load_all</strong></a>()<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Force&nbsp;immediate&nbsp;load&nbsp;of&nbsp;all&nbsp;metadata</tt></dd></dl>

<dl><dt><a name="PhoneMetadata-metadata_for_nongeo_region"><strong>metadata_for_nongeo_region</strong></a>(country_code, default=None)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<dl><dt><a name="PhoneMetadata-metadata_for_region"><strong>metadata_for_region</strong></a>(region_code, default=None)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<dl><dt><a name="PhoneMetadata-metadata_for_region_or_calling_code"><strong>metadata_for_region_or_calling_code</strong></a>(country_calling_code, region_code)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<dl><dt><a name="PhoneMetadata-register_nongeo_region_loader"><strong>register_nongeo_region_loader</strong></a>(country_code, loader)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<dl><dt><a name="PhoneMetadata-register_region_loader"><strong>register_region_loader</strong></a>(region_code, loader)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<dl><dt><a name="PhoneMetadata-register_short_region_loader"><strong>register_short_region_loader</strong></a>(region_code, loader)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<dl><dt><a name="PhoneMetadata-short_metadata_for_region"><strong>short_metadata_for_region</strong></a>(region_code, default=None)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__hash__</strong> = None</dl>

<hr>
Methods inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><a name="PhoneMetadata-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return&nbsp;str(self).</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>:<br>
<dl><dt><a name="PhoneMetadata-__delattr__"><strong>__delattr__</strong></a>(self, name)</dt><dd><tt>Implement&nbsp;delattr(self,&nbsp;name).</tt></dd></dl>

<dl><dt><a name="PhoneMetadata-__setattr__"><strong>__setattr__</strong></a>(self, name, value)</dt><dd><tt>Implement&nbsp;setattr(self,&nbsp;name,&nbsp;value).</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PhoneNumber">class <strong>PhoneNumber</strong></a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#PhoneNumber">PhoneNumber</a>(country_code=None,&nbsp;national_number=None,&nbsp;extension=None,&nbsp;italian_leading_zero=None,&nbsp;number_of_leading_zeros=None,&nbsp;raw_input=None,&nbsp;country_code_source=0,&nbsp;preferred_domestic_carrier_code=None)<br>
&nbsp;<br>
Class&nbsp;representing&nbsp;international&nbsp;telephone&nbsp;numbers.<br>
&nbsp;<br>
This&nbsp;class&nbsp;is&nbsp;hand-created&nbsp;based&nbsp;on&nbsp;phonenumber.proto.&nbsp;Please&nbsp;refer<br>
to&nbsp;that&nbsp;file&nbsp;for&nbsp;detailed&nbsp;descriptions&nbsp;of&nbsp;the&nbsp;meaning&nbsp;of&nbsp;each&nbsp;field.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="phonenumbers.phonenumber.html#PhoneNumber">PhoneNumber</a></dd>
<dd><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PhoneNumber-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self==value.</tt></dd></dl>

<dl><dt><a name="PhoneNumber-__init__"><strong>__init__</strong></a>(self, country_code=None, national_number=None, extension=None, italian_leading_zero=None, number_of_leading_zeros=None, raw_input=None, country_code_source=0, preferred_domestic_carrier_code=None)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>

<dl><dt><a name="PhoneNumber-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self!=value.</tt></dd></dl>

<dl><dt><a name="PhoneNumber-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>

<dl><dt><a name="PhoneNumber-__unicode__"><strong>__unicode__</strong></a>(self)</dt></dl>

<dl><dt><a name="PhoneNumber-clear"><strong>clear</strong></a>(self)</dt><dd><tt>Erase&nbsp;the&nbsp;contents&nbsp;of&nbsp;the&nbsp;<a href="builtins.html#object">object</a></tt></dd></dl>

<dl><dt><a name="PhoneNumber-merge_from"><strong>merge_from</strong></a>(self, other)</dt><dd><tt>Merge&nbsp;information&nbsp;from&nbsp;another&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;into&nbsp;this&nbsp;one.</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__hash__</strong> = None</dl>

<hr>
Methods inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><a name="PhoneNumber-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return&nbsp;str(self).</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PhoneNumberDesc">class <strong>PhoneNumberDesc</strong></a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>, <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#PhoneNumberDesc">PhoneNumberDesc</a>(*__args,&nbsp;**__kwargs)<br>
&nbsp;<br>
Class&nbsp;representing&nbsp;the&nbsp;description&nbsp;of&nbsp;a&nbsp;set&nbsp;of&nbsp;phone&nbsp;numbers.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="phonenumbers.phonemetadata.html#PhoneNumberDesc">PhoneNumberDesc</a></dd>
<dd><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a></dd>
<dd><a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PhoneNumberDesc-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self==value.</tt></dd></dl>

<dl><dt><a name="PhoneNumberDesc-__init__"><strong>__init__</strong></a> = wrapper(self, *__args, **__kwargs)</dt></dl>

<dl><dt><a name="PhoneNumberDesc-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self!=value.</tt></dd></dl>

<dl><dt><a name="PhoneNumberDesc-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>

<dl><dt><a name="PhoneNumberDesc-__unicode__"><strong>__unicode__</strong></a>(self)</dt></dl>

<dl><dt><a name="PhoneNumberDesc-merge_from"><strong>merge_from</strong></a>(self, other)</dt><dd><tt>Merge&nbsp;information&nbsp;from&nbsp;another&nbsp;<a href="#PhoneNumberDesc">PhoneNumberDesc</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;into&nbsp;this&nbsp;one.</tt></dd></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__hash__</strong> = None</dl>

<hr>
Methods inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><a name="PhoneNumberDesc-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return&nbsp;str(self).</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Methods inherited from <a href="phonenumbers.util.html#ImmutableMixin">phonenumbers.util.ImmutableMixin</a>:<br>
<dl><dt><a name="PhoneNumberDesc-__delattr__"><strong>__delattr__</strong></a>(self, name)</dt><dd><tt>Implement&nbsp;delattr(self,&nbsp;name).</tt></dd></dl>

<dl><dt><a name="PhoneNumberDesc-__setattr__"><strong>__setattr__</strong></a>(self, name, value)</dt><dd><tt>Implement&nbsp;setattr(self,&nbsp;name,&nbsp;value).</tt></dd></dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PhoneNumberFormat">class <strong>PhoneNumberFormat</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Phone&nbsp;number&nbsp;format.<br>
&nbsp;<br>
INTERNATIONAL&nbsp;and&nbsp;NATIONAL&nbsp;formats&nbsp;are&nbsp;consistent&nbsp;with&nbsp;the&nbsp;definition&nbsp;in<br>
ITU-T&nbsp;Recommendation&nbsp;E123.&nbsp;However&nbsp;we&nbsp;follow&nbsp;local&nbsp;conventions&nbsp;such&nbsp;as&nbsp;using<br>
'-'&nbsp;instead&nbsp;of&nbsp;whitespace&nbsp;as&nbsp;separators.&nbsp;For&nbsp;example,&nbsp;the&nbsp;number&nbsp;of&nbsp;the<br>
Google&nbsp;Switzerland&nbsp;office&nbsp;will&nbsp;be&nbsp;written&nbsp;as&nbsp;"+41&nbsp;44&nbsp;668&nbsp;1800"&nbsp;in<br>
INTERNATIONAL&nbsp;format,&nbsp;and&nbsp;as&nbsp;"044&nbsp;668&nbsp;1800"&nbsp;in&nbsp;NATIONAL&nbsp;format.&nbsp;E164&nbsp;format<br>
is&nbsp;as&nbsp;per&nbsp;INTERNATIONAL&nbsp;format&nbsp;but&nbsp;with&nbsp;no&nbsp;formatting&nbsp;applied,<br>
e.g.&nbsp;"+41446681800".&nbsp;<a href="http://www.rfc-editor.org/rfc/rfc3966.txt">RFC3966</a>&nbsp;is&nbsp;as&nbsp;per&nbsp;INTERNATIONAL&nbsp;format,&nbsp;but&nbsp;with&nbsp;all<br>
spaces&nbsp;and&nbsp;other&nbsp;separating&nbsp;symbols&nbsp;replaced&nbsp;with&nbsp;a&nbsp;hyphen,&nbsp;and&nbsp;with&nbsp;any<br>
phone&nbsp;number&nbsp;extension&nbsp;appended&nbsp;with&nbsp;";ext=".&nbsp;It&nbsp;also&nbsp;will&nbsp;have&nbsp;a&nbsp;prefix&nbsp;of<br>
"tel:"&nbsp;added,&nbsp;e.g.&nbsp;"tel:+41-44-668-1800".<br>
&nbsp;<br>
Note:&nbsp;If&nbsp;you&nbsp;are&nbsp;considering&nbsp;storing&nbsp;the&nbsp;number&nbsp;in&nbsp;a&nbsp;neutral&nbsp;format,&nbsp;you<br>
are&nbsp;highly&nbsp;advised&nbsp;to&nbsp;use&nbsp;the&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;class.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Class methods defined here:<br>
<dl><dt><a name="PhoneNumberFormat-to_string"><strong>to_string</strong></a>(val)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Return&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;a&nbsp;<a href="#PhoneNumberFormat">PhoneNumberFormat</a>&nbsp;value</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>E164</strong> = 0</dl>

<dl><dt><strong>INTERNATIONAL</strong> = 1</dl>

<dl><dt><strong>NATIONAL</strong> = 2</dl>

<dl><dt><strong>RFC3966</strong> = 3</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PhoneNumberMatch">class <strong>PhoneNumberMatch</strong></a>(<a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#PhoneNumberMatch">PhoneNumberMatch</a>(start,&nbsp;raw_string,&nbsp;numobj)<br>
&nbsp;<br>
The&nbsp;immutable&nbsp;match&nbsp;of&nbsp;a&nbsp;phone&nbsp;number&nbsp;within&nbsp;a&nbsp;piece&nbsp;of&nbsp;text.<br>
&nbsp;<br>
Matches&nbsp;may&nbsp;be&nbsp;found&nbsp;using&nbsp;the&nbsp;find()&nbsp;method&nbsp;of&nbsp;<a href="#PhoneNumberMatcher">PhoneNumberMatcher</a>.<br>
&nbsp;<br>
A&nbsp;match&nbsp;consists&nbsp;of&nbsp;the&nbsp;phone&nbsp;number&nbsp;(in&nbsp;.number)&nbsp;as&nbsp;well&nbsp;as&nbsp;the&nbsp;.start<br>
and&nbsp;.end&nbsp;offsets&nbsp;of&nbsp;the&nbsp;corresponding&nbsp;subsequence&nbsp;of&nbsp;the&nbsp;searched<br>
text.&nbsp;Use&nbsp;.raw_string&nbsp;to&nbsp;obtain&nbsp;a&nbsp;copy&nbsp;of&nbsp;the&nbsp;matched&nbsp;subsequence.<br>
&nbsp;<br>
The&nbsp;following&nbsp;annotated&nbsp;example&nbsp;clarifies&nbsp;the&nbsp;relationship&nbsp;between&nbsp;the<br>
searched&nbsp;text,&nbsp;the&nbsp;match&nbsp;offsets,&nbsp;and&nbsp;the&nbsp;parsed&nbsp;number:<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;text&nbsp;=&nbsp;"Call&nbsp;me&nbsp;at&nbsp;+1&nbsp;425&nbsp;882-8080&nbsp;for&nbsp;details."<br>
&gt;&gt;&gt;&nbsp;country&nbsp;=&nbsp;"US"<br>
&gt;&gt;&gt;&nbsp;import&nbsp;phonenumbers<br>
&gt;&gt;&gt;&nbsp;matcher&nbsp;=&nbsp;phonenumbers.<a href="#PhoneNumberMatcher">PhoneNumberMatcher</a>(text,&nbsp;country)<br>
&gt;&gt;&gt;&nbsp;matcher.has_next()<br>
True<br>
&gt;&gt;&gt;&nbsp;m&nbsp;=&nbsp;matcher.next()&nbsp;&nbsp;#&nbsp;Find&nbsp;the&nbsp;first&nbsp;phone&nbsp;number&nbsp;match<br>
&gt;&gt;&gt;&nbsp;m.raw_string&nbsp;#&nbsp;contains&nbsp;the&nbsp;phone&nbsp;number&nbsp;as&nbsp;it&nbsp;appears&nbsp;in&nbsp;the&nbsp;text.<br>
"+1&nbsp;425&nbsp;882-8080"<br>
&gt;&gt;&gt;&nbsp;(m.start,&nbsp;m.end)&nbsp;&nbsp;#&nbsp;define&nbsp;the&nbsp;range&nbsp;of&nbsp;the&nbsp;matched&nbsp;subsequence.<br>
(11,&nbsp;26)<br>
&gt;&gt;&gt;&nbsp;text[m.start,&nbsp;m.end]<br>
"+1&nbsp;425&nbsp;882-8080"<br>
&gt;&gt;&gt;&nbsp;phonenumberutil.<a href="#-parse">parse</a>("+1&nbsp;425&nbsp;882-8080",&nbsp;"US")&nbsp;==&nbsp;m.number<br>
True<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%"><dl><dt>Method resolution order:</dt>
<dd><a href="phonenumbers.phonenumbermatcher.html#PhoneNumberMatch">PhoneNumberMatch</a></dd>
<dd><a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a></dd>
<dd><a href="builtins.html#object">builtins.object</a></dd>
</dl>
<hr>
Methods defined here:<br>
<dl><dt><a name="PhoneNumberMatch-__eq__"><strong>__eq__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self==value.</tt></dd></dl>

<dl><dt><a name="PhoneNumberMatch-__init__"><strong>__init__</strong></a>(self, start, raw_string, numobj)</dt><dd><tt>Initialize&nbsp;self.&nbsp;&nbsp;See&nbsp;help(type(self))&nbsp;for&nbsp;accurate&nbsp;signature.</tt></dd></dl>

<dl><dt><a name="PhoneNumberMatch-__ne__"><strong>__ne__</strong></a>(self, other)</dt><dd><tt>Return&nbsp;self!=value.</tt></dd></dl>

<dl><dt><a name="PhoneNumberMatch-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Return&nbsp;repr(self).</tt></dd></dl>

<dl><dt><a name="PhoneNumberMatch-__unicode__"><strong>__unicode__</strong></a>(self)</dt></dl>

<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>__hash__</strong> = None</dl>

<hr>
Methods inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><a name="PhoneNumberMatch-__str__"><strong>__str__</strong></a>(self)</dt><dd><tt>Return&nbsp;str(self).</tt></dd></dl>

<hr>
Data descriptors inherited from <a href="phonenumbers.util.html#UnicodeMixin">phonenumbers.util.UnicodeMixin</a>:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PhoneNumberMatcher">class <strong>PhoneNumberMatcher</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt><a href="#PhoneNumberMatcher">PhoneNumberMatcher</a>(text,&nbsp;region,&nbsp;leniency=1,&nbsp;max_tries=65535)<br>
&nbsp;<br>
A&nbsp;stateful&nbsp;class&nbsp;that&nbsp;finds&nbsp;and&nbsp;extracts&nbsp;telephone&nbsp;numbers&nbsp;from&nbsp;text.<br>
&nbsp;<br>
Vanity&nbsp;numbers&nbsp;(phone&nbsp;numbers&nbsp;using&nbsp;alphabetic&nbsp;digits&nbsp;such&nbsp;as&nbsp;'1-800-SIX-FLAGS'&nbsp;are<br>
not&nbsp;found.<br>
&nbsp;<br>
This&nbsp;class&nbsp;is&nbsp;not&nbsp;thread-safe.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Methods defined here:<br>
<dl><dt><a name="PhoneNumberMatcher-__init__"><strong>__init__</strong></a>(self, text, region, leniency=1, max_tries=65535)</dt><dd><tt>Creates&nbsp;a&nbsp;new&nbsp;instance.<br>
&nbsp;<br>
Arguments:<br>
text&nbsp;--&nbsp;The&nbsp;character&nbsp;sequence&nbsp;that&nbsp;we&nbsp;will&nbsp;search,&nbsp;None&nbsp;for&nbsp;no&nbsp;text.<br>
country&nbsp;--&nbsp;The&nbsp;country&nbsp;to&nbsp;assume&nbsp;for&nbsp;phone&nbsp;numbers&nbsp;not&nbsp;written&nbsp;in<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;international&nbsp;format&nbsp;(with&nbsp;a&nbsp;leading&nbsp;plus,&nbsp;or&nbsp;with&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;international&nbsp;dialing&nbsp;prefix&nbsp;of&nbsp;the&nbsp;specified&nbsp;region).&nbsp;May&nbsp;be<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;None&nbsp;or&nbsp;"ZZ"&nbsp;if&nbsp;only&nbsp;numbers&nbsp;with&nbsp;a&nbsp;leading&nbsp;plus&nbsp;should&nbsp;be<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;considered.<br>
leniency&nbsp;--&nbsp;The&nbsp;leniency&nbsp;to&nbsp;use&nbsp;when&nbsp;evaluating&nbsp;candidate&nbsp;phone<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numbers.<br>
max_tries&nbsp;--&nbsp;The&nbsp;maximum&nbsp;number&nbsp;of&nbsp;invalid&nbsp;numbers&nbsp;to&nbsp;try&nbsp;before<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;giving&nbsp;up&nbsp;on&nbsp;the&nbsp;text.&nbsp;&nbsp;This&nbsp;is&nbsp;to&nbsp;cover&nbsp;degenerate&nbsp;cases&nbsp;where<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the&nbsp;text&nbsp;has&nbsp;a&nbsp;lot&nbsp;of&nbsp;false&nbsp;positives&nbsp;in&nbsp;it.&nbsp;Must&nbsp;be&nbsp;&gt;=&nbsp;0.</tt></dd></dl>

<dl><dt><a name="PhoneNumberMatcher-__iter__"><strong>__iter__</strong></a>(self)</dt></dl>

<dl><dt><a name="PhoneNumberMatcher-has_next"><strong>has_next</strong></a>(self)</dt><dd><tt>Indicates&nbsp;whether&nbsp;there&nbsp;is&nbsp;another&nbsp;match&nbsp;available</tt></dd></dl>

<dl><dt><a name="PhoneNumberMatcher-next"><strong>next</strong></a>(self)</dt><dd><tt>Return&nbsp;the&nbsp;next&nbsp;match;&nbsp;raises&nbsp;<a href="builtins.html#Exception">Exception</a>&nbsp;if&nbsp;no&nbsp;next&nbsp;match&nbsp;available</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="PhoneNumberType">class <strong>PhoneNumberType</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Type&nbsp;of&nbsp;phone&nbsp;numbers.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Class methods defined here:<br>
<dl><dt><a name="PhoneNumberType-to_string"><strong>to_string</strong></a>(val)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Return&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;a&nbsp;<a href="#PhoneNumberType">PhoneNumberType</a>&nbsp;value</tt></dd></dl>

<dl><dt><a name="PhoneNumberType-values"><strong>values</strong></a>()<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>FIXED_LINE</strong> = 0</dl>

<dl><dt><strong>FIXED_LINE_OR_MOBILE</strong> = 2</dl>

<dl><dt><strong>MOBILE</strong> = 1</dl>

<dl><dt><strong>PAGER</strong> = 8</dl>

<dl><dt><strong>PERSONAL_NUMBER</strong> = 7</dl>

<dl><dt><strong>PREMIUM_RATE</strong> = 4</dl>

<dl><dt><strong>SHARED_COST</strong> = 5</dl>

<dl><dt><strong>TOLL_FREE</strong> = 3</dl>

<dl><dt><strong>UAN</strong> = 9</dl>

<dl><dt><strong>UNKNOWN</strong> = 99</dl>

<dl><dt><strong>VOICEMAIL</strong> = 10</dl>

<dl><dt><strong>VOIP</strong> = 6</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ShortNumberCost">class <strong>ShortNumberCost</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Cost&nbsp;categories&nbsp;of&nbsp;short&nbsp;numbers.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>PREMIUM_RATE</strong> = 2</dl>

<dl><dt><strong>STANDARD_RATE</strong> = 1</dl>

<dl><dt><strong>TOLL_FREE</strong> = 0</dl>

<dl><dt><strong>UNKNOWN_COST</strong> = 3</dl>

</td></tr></table> <p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#ffc8d8">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#000000" face="helvetica, arial"><a name="ValidationResult">class <strong>ValidationResult</strong></a>(<a href="builtins.html#object">builtins.object</a>)</font></td></tr>
    
<tr bgcolor="#ffc8d8"><td rowspan=2><tt>&nbsp;&nbsp;&nbsp;</tt></td>
<td colspan=2><tt>Possible&nbsp;outcomes&nbsp;when&nbsp;testing&nbsp;if&nbsp;a&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;is&nbsp;a&nbsp;possible&nbsp;number.<br>&nbsp;</tt></td></tr>
<tr><td>&nbsp;</td>
<td width="100%">Class methods defined here:<br>
<dl><dt><a name="ValidationResult-to_string"><strong>to_string</strong></a>(val)<font color="#909090"><font face="helvetica, arial"> from <a href="builtins.html#type">builtins.type</a></font></font></dt><dd><tt>Return&nbsp;a&nbsp;string&nbsp;representation&nbsp;of&nbsp;a&nbsp;<a href="#ValidationResult">ValidationResult</a>&nbsp;value</tt></dd></dl>

<hr>
Data descriptors defined here:<br>
<dl><dt><strong>__dict__</strong></dt>
<dd><tt>dictionary&nbsp;for&nbsp;instance&nbsp;variables&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<dl><dt><strong>__weakref__</strong></dt>
<dd><tt>list&nbsp;of&nbsp;weak&nbsp;references&nbsp;to&nbsp;the&nbsp;object&nbsp;(if&nbsp;defined)</tt></dd>
</dl>
<hr>
Data and other attributes defined here:<br>
<dl><dt><strong>INVALID_COUNTRY_CODE</strong> = 1</dl>

<dl><dt><strong>INVALID_LENGTH</strong> = 5</dl>

<dl><dt><strong>IS_POSSIBLE</strong> = 0</dl>

<dl><dt><strong>IS_POSSIBLE_LOCAL_ONLY</strong> = 4</dl>

<dl><dt><strong>TOO_LONG</strong> = 3</dl>

<dl><dt><strong>TOO_SHORT</strong> = 2</dl>

</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-can_be_internationally_dialled"><strong>can_be_internationally_dialled</strong></a>(numobj)</dt><dd><tt>Returns&nbsp;True&nbsp;if&nbsp;the&nbsp;number&nbsp;can&nbsp;only&nbsp;be&nbsp;dialled&nbsp;from&nbsp;outside&nbsp;the&nbsp;region,<br>
or&nbsp;unknown.<br>
&nbsp;<br>
If&nbsp;the&nbsp;number&nbsp;can&nbsp;only&nbsp;be&nbsp;dialled&nbsp;from&nbsp;within&nbsp;the&nbsp;region<br>
as&nbsp;well,&nbsp;returns&nbsp;False.&nbsp;Does&nbsp;not&nbsp;check&nbsp;the&nbsp;number&nbsp;is&nbsp;a&nbsp;valid&nbsp;number.<br>
Note&nbsp;that,&nbsp;at&nbsp;the&nbsp;moment,&nbsp;this&nbsp;method&nbsp;does&nbsp;not&nbsp;handle&nbsp;short&nbsp;numbers&nbsp;(which<br>
are&nbsp;currently&nbsp;all&nbsp;presumed&nbsp;to&nbsp;not&nbsp;be&nbsp;diallable&nbsp;from&nbsp;outside&nbsp;their&nbsp;country).<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;phone&nbsp;number&nbsp;objectfor&nbsp;which&nbsp;we&nbsp;want&nbsp;to&nbsp;know&nbsp;whether&nbsp;it&nbsp;is<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;diallable&nbsp;from&nbsp;outside&nbsp;the&nbsp;region.</tt></dd></dl>
 <dl><dt><a name="-connects_to_emergency_number"><strong>connects_to_emergency_number</strong></a>(number, region_code)</dt><dd><tt>Returns&nbsp;whether&nbsp;the&nbsp;given&nbsp;number,&nbsp;exactly&nbsp;as&nbsp;dialled,&nbsp;might&nbsp;be&nbsp;used&nbsp;to<br>
connect&nbsp;to&nbsp;an&nbsp;emergency&nbsp;service&nbsp;in&nbsp;the&nbsp;given&nbsp;region.<br>
&nbsp;<br>
This&nbsp;function&nbsp;accepts&nbsp;a&nbsp;string,&nbsp;rather&nbsp;than&nbsp;a&nbsp;<a href="#PhoneNumber">PhoneNumber</a>,&nbsp;because&nbsp;it<br>
needs&nbsp;to&nbsp;distinguish&nbsp;cases&nbsp;such&nbsp;as&nbsp;"+1&nbsp;911"&nbsp;and&nbsp;"911",&nbsp;where&nbsp;the&nbsp;former<br>
may&nbsp;not&nbsp;connect&nbsp;to&nbsp;an&nbsp;emergency&nbsp;service&nbsp;in&nbsp;all&nbsp;cases&nbsp;but&nbsp;the&nbsp;latter&nbsp;would.<br>
&nbsp;<br>
This&nbsp;function&nbsp;takes&nbsp;into&nbsp;account&nbsp;cases&nbsp;where&nbsp;the&nbsp;number&nbsp;might&nbsp;contain<br>
formatting,&nbsp;or&nbsp;might&nbsp;have&nbsp;additional&nbsp;digits&nbsp;appended&nbsp;(when&nbsp;it&nbsp;is&nbsp;okay&nbsp;to<br>
do&nbsp;that&nbsp;in&nbsp;the&nbsp;specified&nbsp;region).<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;test.<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;where&nbsp;the&nbsp;phone&nbsp;number&nbsp;is&nbsp;being&nbsp;dialed.<br>
&nbsp;<br>
Returns&nbsp;whether&nbsp;the&nbsp;number&nbsp;might&nbsp;be&nbsp;used&nbsp;to&nbsp;connect&nbsp;to&nbsp;an&nbsp;emergency<br>
service&nbsp;in&nbsp;the&nbsp;given&nbsp;region.</tt></dd></dl>
 <dl><dt><a name="-convert_alpha_characters_in_number"><strong>convert_alpha_characters_in_number</strong></a>(number)</dt><dd><tt>Convert&nbsp;alpha&nbsp;chars&nbsp;in&nbsp;a&nbsp;number&nbsp;to&nbsp;their&nbsp;respective&nbsp;digits&nbsp;on&nbsp;a&nbsp;keypad,<br>
but&nbsp;retains&nbsp;existing&nbsp;formatting.</tt></dd></dl>
 <dl><dt><a name="-country_code_for_region"><strong>country_code_for_region</strong></a>(region_code)</dt><dd><tt>Returns&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;a&nbsp;specific&nbsp;region.<br>
&nbsp;<br>
For&nbsp;example,&nbsp;this&nbsp;would&nbsp;be&nbsp;1&nbsp;for&nbsp;the&nbsp;United&nbsp;States,&nbsp;and&nbsp;64&nbsp;for&nbsp;New<br>
Zealand.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;that&nbsp;we&nbsp;want&nbsp;to&nbsp;get&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;the&nbsp;region&nbsp;denoted&nbsp;by&nbsp;region_code.</tt></dd></dl>
 <dl><dt><a name="-country_code_for_valid_region"><strong>country_code_for_valid_region</strong></a>(region_code)</dt><dd><tt>Returns&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;a&nbsp;specific&nbsp;region.<br>
&nbsp;<br>
For&nbsp;example,&nbsp;this&nbsp;would&nbsp;be&nbsp;1&nbsp;for&nbsp;the&nbsp;United&nbsp;States,&nbsp;and&nbsp;64&nbsp;for&nbsp;New<br>
Zealand.&nbsp;&nbsp;Assumes&nbsp;the&nbsp;region&nbsp;is&nbsp;already&nbsp;valid.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;that&nbsp;we&nbsp;want&nbsp;to&nbsp;get&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;the&nbsp;region&nbsp;denoted&nbsp;by&nbsp;region_code.</tt></dd></dl>
 <dl><dt><a name="-country_mobile_token"><strong>country_mobile_token</strong></a>(country_code)</dt><dd><tt>Returns&nbsp;the&nbsp;mobile&nbsp;token&nbsp;for&nbsp;the&nbsp;provided&nbsp;country&nbsp;calling&nbsp;code&nbsp;if&nbsp;it&nbsp;has&nbsp;one,&nbsp;otherwise<br>
returns&nbsp;an&nbsp;empty&nbsp;string.&nbsp;A&nbsp;mobile&nbsp;token&nbsp;is&nbsp;a&nbsp;number&nbsp;inserted&nbsp;before&nbsp;the&nbsp;area&nbsp;code&nbsp;when&nbsp;dialing<br>
a&nbsp;mobile&nbsp;number&nbsp;from&nbsp;that&nbsp;country&nbsp;from&nbsp;abroad.<br>
&nbsp;<br>
Arguments:<br>
country_code&nbsp;--&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;which&nbsp;we&nbsp;want&nbsp;the&nbsp;mobile&nbsp;token<br>
Returns&nbsp;the&nbsp;mobile&nbsp;token,&nbsp;as&nbsp;a&nbsp;string,&nbsp;for&nbsp;the&nbsp;given&nbsp;country&nbsp;calling&nbsp;code.</tt></dd></dl>
 <dl><dt><a name="-example_number"><strong>example_number</strong></a>(region_code)</dt><dd><tt>Gets&nbsp;a&nbsp;valid&nbsp;number&nbsp;for&nbsp;the&nbsp;specified&nbsp;region.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;for&nbsp;which&nbsp;an&nbsp;example&nbsp;number&nbsp;is&nbsp;needed.<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;valid&nbsp;fixed-line&nbsp;number&nbsp;for&nbsp;the&nbsp;specified&nbsp;region.&nbsp;Returns&nbsp;None<br>
when&nbsp;the&nbsp;metadata&nbsp;does&nbsp;not&nbsp;contain&nbsp;such&nbsp;information,&nbsp;or&nbsp;the&nbsp;region&nbsp;001&nbsp;is<br>
passed&nbsp;in.&nbsp;&nbsp;For&nbsp;001&nbsp;(representing&nbsp;non-geographical&nbsp;numbers),&nbsp;call<br>
example_number_for_non_geo_entity&nbsp;instead.</tt></dd></dl>
 <dl><dt><a name="-example_number_for_non_geo_entity"><strong>example_number_for_non_geo_entity</strong></a>(country_calling_code)</dt><dd><tt>Gets&nbsp;a&nbsp;valid&nbsp;number&nbsp;for&nbsp;the&nbsp;specified&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;a&nbsp;non-geographical&nbsp;entity.<br>
&nbsp;<br>
Arguments:<br>
country_calling_code&nbsp;--&nbsp;The&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;a&nbsp;non-geographical&nbsp;entity.<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;valid&nbsp;number&nbsp;for&nbsp;the&nbsp;non-geographical&nbsp;entity.&nbsp;Returns&nbsp;None&nbsp;when<br>
the&nbsp;metadata&nbsp;does&nbsp;not&nbsp;contain&nbsp;such&nbsp;information,&nbsp;or&nbsp;the&nbsp;country&nbsp;calling<br>
code&nbsp;passed&nbsp;in&nbsp;does&nbsp;not&nbsp;belong&nbsp;to&nbsp;a&nbsp;non-geographical&nbsp;entity.</tt></dd></dl>
 <dl><dt><a name="-example_number_for_type"><strong>example_number_for_type</strong></a>(region_code, num_type)</dt><dd><tt>Gets&nbsp;a&nbsp;valid&nbsp;number&nbsp;for&nbsp;the&nbsp;specified&nbsp;region&nbsp;and&nbsp;number&nbsp;type.<br>
&nbsp;<br>
If&nbsp;None&nbsp;is&nbsp;given&nbsp;as&nbsp;the&nbsp;region_code,&nbsp;then&nbsp;the&nbsp;returned&nbsp;number&nbsp;<a href="builtins.html#object">object</a><br>
may&nbsp;belong&nbsp;to&nbsp;any&nbsp;country.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;for&nbsp;which&nbsp;an&nbsp;example&nbsp;number&nbsp;is&nbsp;needed,&nbsp;or&nbsp;None.<br>
num_type&nbsp;--&nbsp;The&nbsp;type&nbsp;of&nbsp;number&nbsp;that&nbsp;is&nbsp;needed.<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;valid&nbsp;number&nbsp;for&nbsp;the&nbsp;specified&nbsp;region&nbsp;and&nbsp;type.&nbsp;Returns&nbsp;None<br>
when&nbsp;the&nbsp;metadata&nbsp;does&nbsp;not&nbsp;contain&nbsp;such&nbsp;information&nbsp;or&nbsp;if&nbsp;an&nbsp;invalid<br>
region&nbsp;or&nbsp;region&nbsp;001&nbsp;was&nbsp;specified.&nbsp;&nbsp;For&nbsp;001&nbsp;(representing<br>
non-geographical&nbsp;numbers),&nbsp;call&nbsp;example_number_for_non_geo_entity&nbsp;instead.</tt></dd></dl>
 <dl><dt><a name="-expected_cost"><strong>expected_cost</strong></a>(numobj)</dt><dd><tt>Gets&nbsp;the&nbsp;expected&nbsp;cost&nbsp;category&nbsp;of&nbsp;a&nbsp;short&nbsp;number&nbsp;(however,&nbsp;nothing&nbsp;is<br>
implied&nbsp;about&nbsp;its&nbsp;validity).&nbsp;If&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;is&nbsp;unique&nbsp;to&nbsp;a<br>
region,&nbsp;this&nbsp;method&nbsp;behaves&nbsp;exactly&nbsp;the&nbsp;same&nbsp;as<br>
expected_cost_for_region.&nbsp;However,&nbsp;if&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;is<br>
shared&nbsp;by&nbsp;multiple&nbsp;regions,&nbsp;then&nbsp;it&nbsp;returns&nbsp;the&nbsp;highest&nbsp;cost&nbsp;in&nbsp;the<br>
sequence&nbsp;PREMIUM_RATE,&nbsp;UNKNOWN_COST,&nbsp;STANDARD_RATE,&nbsp;TOLL_FREE.&nbsp;The&nbsp;reason<br>
for&nbsp;the&nbsp;position&nbsp;of&nbsp;UNKNOWN_COST&nbsp;in&nbsp;this&nbsp;order&nbsp;is&nbsp;that&nbsp;if&nbsp;a&nbsp;number&nbsp;is<br>
UNKNOWN_COST&nbsp;in&nbsp;one&nbsp;region&nbsp;but&nbsp;STANDARD_RATE&nbsp;or&nbsp;TOLL_FREE&nbsp;in&nbsp;another,&nbsp;its<br>
expected&nbsp;cost&nbsp;cannot&nbsp;be&nbsp;estimated&nbsp;as&nbsp;one&nbsp;of&nbsp;the&nbsp;latter&nbsp;since&nbsp;it&nbsp;might&nbsp;be&nbsp;a<br>
PREMIUM_RATE&nbsp;number.<br>
&nbsp;<br>
For&nbsp;example,&nbsp;if&nbsp;a&nbsp;number&nbsp;is&nbsp;STANDARD_RATE&nbsp;in&nbsp;the&nbsp;US,&nbsp;but&nbsp;TOLL_FREE&nbsp;in<br>
Canada,&nbsp;the&nbsp;expected&nbsp;cost&nbsp;returned&nbsp;by&nbsp;this&nbsp;method&nbsp;will&nbsp;be&nbsp;STANDARD_RATE,<br>
since&nbsp;the&nbsp;NANPA&nbsp;countries&nbsp;share&nbsp;the&nbsp;same&nbsp;country&nbsp;calling&nbsp;code.<br>
&nbsp;<br>
Note:&nbsp;If&nbsp;the&nbsp;region&nbsp;from&nbsp;which&nbsp;the&nbsp;number&nbsp;is&nbsp;dialed&nbsp;is&nbsp;known,&nbsp;it&nbsp;is&nbsp;highly&nbsp;preferable&nbsp;to&nbsp;call<br>
expected_cost_for_region&nbsp;instead.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;short&nbsp;number&nbsp;for&nbsp;which&nbsp;we&nbsp;want&nbsp;to&nbsp;know&nbsp;the&nbsp;expected&nbsp;cost&nbsp;category<br>
&nbsp;<br>
Return&nbsp;the&nbsp;highest&nbsp;expected&nbsp;cost&nbsp;category&nbsp;of&nbsp;the&nbsp;short&nbsp;number&nbsp;in&nbsp;the<br>
region(s)&nbsp;with&nbsp;the&nbsp;given&nbsp;country&nbsp;calling&nbsp;code</tt></dd></dl>
 <dl><dt><a name="-expected_cost_for_region"><strong>expected_cost_for_region</strong></a>(short_numobj, region_dialing_from)</dt><dd><tt>Gets&nbsp;the&nbsp;expected&nbsp;cost&nbsp;category&nbsp;of&nbsp;a&nbsp;short&nbsp;number&nbsp;when&nbsp;dialled&nbsp;from&nbsp;a<br>
region&nbsp;(however,&nbsp;nothing&nbsp;is&nbsp;implied&nbsp;about&nbsp;its&nbsp;validity).&nbsp;If&nbsp;it&nbsp;is<br>
important&nbsp;that&nbsp;the&nbsp;number&nbsp;is&nbsp;valid,&nbsp;then&nbsp;its&nbsp;validity&nbsp;must&nbsp;first&nbsp;be<br>
checked&nbsp;using&nbsp;is_valid_short_number_for_region.&nbsp;Note&nbsp;that&nbsp;emergency<br>
numbers&nbsp;are&nbsp;always&nbsp;considered&nbsp;toll-free.<br>
&nbsp;<br>
Example&nbsp;usage:<br>
short_number&nbsp;=&nbsp;"110"<br>
region_code&nbsp;=&nbsp;"FR"<br>
if&nbsp;phonenumbers.<a href="#-is_valid_short_number_for_region">is_valid_short_number_for_region</a>(short_number,&nbsp;region_code):<br>
&nbsp;&nbsp;&nbsp;&nbsp;cost&nbsp;=&nbsp;phonenumbers.<a href="#-expected_cost">expected_cost</a>(short_number,&nbsp;region_code)&nbsp;&nbsp;#&nbsp;<a href="#ShortNumberCost">ShortNumberCost</a><br>
&nbsp;&nbsp;&nbsp;&nbsp;#&nbsp;Do&nbsp;something&nbsp;with&nbsp;the&nbsp;cost&nbsp;information&nbsp;here.<br>
&nbsp;<br>
Arguments:<br>
short_numobj&nbsp;--&nbsp;the&nbsp;short&nbsp;number&nbsp;for&nbsp;which&nbsp;we&nbsp;want&nbsp;to&nbsp;know&nbsp;the&nbsp;expected&nbsp;cost&nbsp;category<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;as&nbsp;a&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
region_dialing_from&nbsp;--&nbsp;the&nbsp;region&nbsp;from&nbsp;which&nbsp;the&nbsp;number&nbsp;is&nbsp;dialed<br>
&nbsp;<br>
Return&nbsp;the&nbsp;expected&nbsp;cost&nbsp;category&nbsp;for&nbsp;that&nbsp;region&nbsp;of&nbsp;the&nbsp;short<br>
number.&nbsp;Returns&nbsp;UNKNOWN_COST&nbsp;if&nbsp;the&nbsp;number&nbsp;does&nbsp;not&nbsp;match&nbsp;a&nbsp;cost<br>
category.&nbsp;Note&nbsp;that&nbsp;an&nbsp;invalid&nbsp;number&nbsp;may&nbsp;match&nbsp;any&nbsp;cost&nbsp;category.</tt></dd></dl>
 <dl><dt><a name="-format_by_pattern"><strong>format_by_pattern</strong></a>(numobj, number_format, user_defined_formats)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;using&nbsp;client-defined&nbsp;formatting&nbsp;rules.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;if&nbsp;the&nbsp;phone&nbsp;number&nbsp;has&nbsp;a&nbsp;country&nbsp;calling&nbsp;code&nbsp;of&nbsp;zero&nbsp;or&nbsp;an<br>
otherwise&nbsp;invalid&nbsp;country&nbsp;calling&nbsp;code,&nbsp;we&nbsp;cannot&nbsp;work&nbsp;out&nbsp;things&nbsp;like<br>
whether&nbsp;there&nbsp;should&nbsp;be&nbsp;a&nbsp;national&nbsp;prefix&nbsp;applied,&nbsp;or&nbsp;how&nbsp;to&nbsp;format<br>
extensions,&nbsp;so&nbsp;we&nbsp;return&nbsp;the&nbsp;national&nbsp;significant&nbsp;number&nbsp;with&nbsp;no<br>
formatting&nbsp;applied.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;be&nbsp;formatted<br>
number_format&nbsp;--&nbsp;The&nbsp;format&nbsp;the&nbsp;phone&nbsp;number&nbsp;should&nbsp;be&nbsp;formatted&nbsp;into,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;as&nbsp;a&nbsp;<a href="#PhoneNumberFormat">PhoneNumberFormat</a>&nbsp;value.<br>
user_defined_formats&nbsp;--&nbsp;formatting&nbsp;rules&nbsp;specified&nbsp;by&nbsp;clients,&nbsp;as&nbsp;a&nbsp;list<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of&nbsp;<a href="#NumberFormat">NumberFormat</a>&nbsp;objects.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-format_in_original_format"><strong>format_in_original_format</strong></a>(numobj, region_calling_from)</dt><dd><tt>Format&nbsp;a&nbsp;number&nbsp;using&nbsp;the&nbsp;original&nbsp;format&nbsp;that&nbsp;the&nbsp;number&nbsp;was&nbsp;parsed&nbsp;from.<br>
&nbsp;<br>
The&nbsp;original&nbsp;format&nbsp;is&nbsp;embedded&nbsp;in&nbsp;the&nbsp;country_code_source&nbsp;field&nbsp;of&nbsp;the<br>
<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in.&nbsp;If&nbsp;such&nbsp;information&nbsp;is&nbsp;missing,&nbsp;the&nbsp;number<br>
will&nbsp;be&nbsp;formatted&nbsp;into&nbsp;the&nbsp;NATIONAL&nbsp;format&nbsp;by&nbsp;default.<br>
&nbsp;<br>
When&nbsp;&nbsp;we&nbsp;don't&nbsp;have&nbsp;a&nbsp;formatting&nbsp;pattern&nbsp;for&nbsp;the&nbsp;number,&nbsp;the&nbsp;method<br>
returns&nbsp;the&nbsp;raw&nbsp;input&nbsp;when&nbsp;it&nbsp;is&nbsp;available.<br>
&nbsp;<br>
Note&nbsp;this&nbsp;method&nbsp;guarantees&nbsp;no&nbsp;digit&nbsp;will&nbsp;be&nbsp;inserted,&nbsp;removed&nbsp;or&nbsp;modified<br>
as&nbsp;a&nbsp;result&nbsp;of&nbsp;formatting.<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;that&nbsp;needs&nbsp;to&nbsp;be&nbsp;formatted&nbsp;in&nbsp;its&nbsp;original<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;number&nbsp;format<br>
region_calling_from&nbsp;--&nbsp;The&nbsp;region&nbsp;whose&nbsp;IDD&nbsp;needs&nbsp;to&nbsp;be&nbsp;prefixed&nbsp;if&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;original&nbsp;number&nbsp;has&nbsp;one.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number&nbsp;in&nbsp;its&nbsp;original&nbsp;number&nbsp;format.</tt></dd></dl>
 <dl><dt><a name="-format_national_number_with_carrier_code"><strong>format_national_number_with_carrier_code</strong></a>(numobj, carrier_code)</dt><dd><tt>Format&nbsp;a&nbsp;number&nbsp;in&nbsp;national&nbsp;format&nbsp;for&nbsp;dialing&nbsp;using&nbsp;the&nbsp;specified&nbsp;carrier.<br>
&nbsp;<br>
The&nbsp;carrier-code&nbsp;will&nbsp;always&nbsp;be&nbsp;used&nbsp;regardless&nbsp;of&nbsp;whether&nbsp;the&nbsp;phone<br>
number&nbsp;already&nbsp;has&nbsp;a&nbsp;preferred&nbsp;domestic&nbsp;carrier&nbsp;code&nbsp;stored.&nbsp;If<br>
carrier_code&nbsp;contains&nbsp;an&nbsp;empty&nbsp;string,&nbsp;returns&nbsp;the&nbsp;number&nbsp;in&nbsp;national<br>
format&nbsp;without&nbsp;any&nbsp;carrier&nbsp;code.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;be&nbsp;formatted<br>
carrier_code&nbsp;--&nbsp;The&nbsp;carrier&nbsp;selection&nbsp;code&nbsp;to&nbsp;be&nbsp;used<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number&nbsp;in&nbsp;national&nbsp;format&nbsp;for&nbsp;dialing&nbsp;using<br>
the&nbsp;carrier&nbsp;as&nbsp;specified&nbsp;in&nbsp;the&nbsp;carrier_code.</tt></dd></dl>
 <dl><dt><a name="-format_national_number_with_preferred_carrier_code"><strong>format_national_number_with_preferred_carrier_code</strong></a>(numobj, fallback_carrier_code)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;in&nbsp;national&nbsp;format&nbsp;for&nbsp;dialing&nbsp;using&nbsp;the&nbsp;carrier<br>
as&nbsp;specified&nbsp;in&nbsp;the&nbsp;preferred_domestic_carrier_code&nbsp;field&nbsp;of&nbsp;the<br>
<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in.&nbsp;If&nbsp;that&nbsp;is&nbsp;missing,&nbsp;use&nbsp;the<br>
fallback_carrier_code&nbsp;passed&nbsp;in&nbsp;instead.&nbsp;If&nbsp;there&nbsp;is&nbsp;no<br>
preferred_domestic_carrier_code,&nbsp;and&nbsp;the&nbsp;fallback_carrier_code&nbsp;contains&nbsp;an<br>
empty&nbsp;string,&nbsp;return&nbsp;the&nbsp;number&nbsp;in&nbsp;national&nbsp;format&nbsp;without&nbsp;any&nbsp;carrier<br>
code.<br>
&nbsp;<br>
Use&nbsp;format_national_number_with_carrier_code&nbsp;instead&nbsp;if&nbsp;the&nbsp;carrier&nbsp;code<br>
passed&nbsp;in&nbsp;should&nbsp;take&nbsp;precedence&nbsp;over&nbsp;the&nbsp;number's<br>
preferred_domestic_carrier_code&nbsp;when&nbsp;formatting.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;be&nbsp;formatted<br>
carrier_code&nbsp;--&nbsp;The&nbsp;carrier&nbsp;selection&nbsp;code&nbsp;to&nbsp;be&nbsp;used,&nbsp;if&nbsp;none&nbsp;is&nbsp;found&nbsp;in&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;phone&nbsp;number&nbsp;itself.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number&nbsp;in&nbsp;national&nbsp;format&nbsp;for&nbsp;dialing&nbsp;using<br>
the&nbsp;number's&nbsp;preferred_domestic_carrier_code,&nbsp;or&nbsp;the&nbsp;fallback_carrier_code<br>
pass&nbsp;in&nbsp;if&nbsp;none&nbsp;is&nbsp;found.</tt></dd></dl>
 <dl><dt><a name="-format_number"><strong>format_number</strong></a>(numobj, num_format)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;in&nbsp;the&nbsp;specified&nbsp;format&nbsp;using&nbsp;default&nbsp;rules.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;this&nbsp;does&nbsp;not&nbsp;promise&nbsp;to&nbsp;produce&nbsp;a&nbsp;phone&nbsp;number&nbsp;that&nbsp;the&nbsp;user<br>
can&nbsp;dial&nbsp;from&nbsp;where&nbsp;they&nbsp;are&nbsp;-&nbsp;although&nbsp;we&nbsp;do&nbsp;format&nbsp;in&nbsp;either&nbsp;'national'<br>
or&nbsp;'international'&nbsp;format&nbsp;depending&nbsp;on&nbsp;what&nbsp;the&nbsp;client&nbsp;asks&nbsp;for,&nbsp;we&nbsp;do&nbsp;not<br>
currently&nbsp;support&nbsp;a&nbsp;more&nbsp;abbreviated&nbsp;format,&nbsp;such&nbsp;as&nbsp;for&nbsp;users&nbsp;in&nbsp;the&nbsp;same<br>
"area"&nbsp;who&nbsp;could&nbsp;potentially&nbsp;dial&nbsp;the&nbsp;number&nbsp;without&nbsp;area&nbsp;code.&nbsp;Note&nbsp;that<br>
if&nbsp;the&nbsp;phone&nbsp;number&nbsp;has&nbsp;a&nbsp;country&nbsp;calling&nbsp;code&nbsp;of&nbsp;0&nbsp;or&nbsp;an&nbsp;otherwise<br>
invalid&nbsp;country&nbsp;calling&nbsp;code,&nbsp;we&nbsp;cannot&nbsp;work&nbsp;out&nbsp;which&nbsp;formatting&nbsp;rules&nbsp;to<br>
apply&nbsp;so&nbsp;we&nbsp;return&nbsp;the&nbsp;national&nbsp;significant&nbsp;number&nbsp;with&nbsp;no&nbsp;formatting<br>
applied.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;be&nbsp;formatted.<br>
num_format&nbsp;--&nbsp;The&nbsp;format&nbsp;the&nbsp;phone&nbsp;number&nbsp;should&nbsp;be&nbsp;formatted&nbsp;into<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-format_number_for_mobile_dialing"><strong>format_number_for_mobile_dialing</strong></a>(numobj, region_calling_from, with_formatting)</dt><dd><tt>Returns&nbsp;a&nbsp;number&nbsp;formatted&nbsp;in&nbsp;such&nbsp;a&nbsp;way&nbsp;that&nbsp;it&nbsp;can&nbsp;be&nbsp;dialed&nbsp;from&nbsp;a<br>
&nbsp;mobile&nbsp;phone&nbsp;in&nbsp;a&nbsp;specific&nbsp;region.<br>
&nbsp;<br>
If&nbsp;the&nbsp;number&nbsp;cannot&nbsp;be&nbsp;reached&nbsp;from&nbsp;the&nbsp;region&nbsp;(e.g.&nbsp;some&nbsp;countries&nbsp;block<br>
toll-free&nbsp;numbers&nbsp;from&nbsp;being&nbsp;called&nbsp;outside&nbsp;of&nbsp;the&nbsp;country),&nbsp;the&nbsp;method<br>
returns&nbsp;an&nbsp;empty&nbsp;string.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;be&nbsp;formatted<br>
region_calling_from&nbsp;--&nbsp;The&nbsp;region&nbsp;where&nbsp;the&nbsp;call&nbsp;is&nbsp;being&nbsp;placed.<br>
&nbsp;<br>
with_formatting&nbsp;--&nbsp;whether&nbsp;the&nbsp;number&nbsp;should&nbsp;be&nbsp;returned&nbsp;with&nbsp;formatting<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;symbols,&nbsp;such&nbsp;as&nbsp;spaces&nbsp;and&nbsp;dashes.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-format_out_of_country_calling_number"><strong>format_out_of_country_calling_number</strong></a>(numobj, region_calling_from)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;for&nbsp;out-of-country&nbsp;dialing&nbsp;purposes.<br>
&nbsp;<br>
If&nbsp;no&nbsp;region_calling_from&nbsp;is&nbsp;supplied,&nbsp;we&nbsp;format&nbsp;the&nbsp;number&nbsp;in&nbsp;its<br>
INTERNATIONAL&nbsp;format.&nbsp;If&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;that&nbsp;of<br>
the&nbsp;region&nbsp;where&nbsp;the&nbsp;number&nbsp;is&nbsp;from,&nbsp;then&nbsp;NATIONAL&nbsp;formatting&nbsp;will&nbsp;be<br>
applied.<br>
&nbsp;<br>
If&nbsp;the&nbsp;number&nbsp;itself&nbsp;has&nbsp;a&nbsp;country&nbsp;calling&nbsp;code&nbsp;of&nbsp;zero&nbsp;or&nbsp;an&nbsp;otherwise<br>
invalid&nbsp;country&nbsp;calling&nbsp;code,&nbsp;then&nbsp;we&nbsp;return&nbsp;the&nbsp;number&nbsp;with&nbsp;no&nbsp;formatting<br>
applied.<br>
&nbsp;<br>
Note&nbsp;this&nbsp;function&nbsp;takes&nbsp;care&nbsp;of&nbsp;the&nbsp;case&nbsp;for&nbsp;calling&nbsp;inside&nbsp;of&nbsp;NANPA&nbsp;and<br>
between&nbsp;Russia&nbsp;and&nbsp;Kazakhstan&nbsp;(who&nbsp;share&nbsp;the&nbsp;same&nbsp;country&nbsp;calling<br>
code).&nbsp;In&nbsp;those&nbsp;cases,&nbsp;no&nbsp;international&nbsp;prefix&nbsp;is&nbsp;used.&nbsp;For&nbsp;regions&nbsp;which<br>
have&nbsp;multiple&nbsp;international&nbsp;prefixes,&nbsp;the&nbsp;number&nbsp;in&nbsp;its&nbsp;INTERNATIONAL<br>
format&nbsp;will&nbsp;be&nbsp;returned&nbsp;instead.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;be&nbsp;formatted<br>
region_calling_from&nbsp;--&nbsp;The&nbsp;region&nbsp;where&nbsp;the&nbsp;call&nbsp;is&nbsp;being&nbsp;placed<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number</tt></dd></dl>
 <dl><dt><a name="-format_out_of_country_keeping_alpha_chars"><strong>format_out_of_country_keeping_alpha_chars</strong></a>(numobj, region_calling_from)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;for&nbsp;out-of-country&nbsp;dialing&nbsp;purposes.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;in&nbsp;this&nbsp;version,&nbsp;if&nbsp;the&nbsp;number&nbsp;was&nbsp;entered&nbsp;originally&nbsp;using<br>
alpha&nbsp;characters&nbsp;and&nbsp;this&nbsp;version&nbsp;of&nbsp;the&nbsp;number&nbsp;is&nbsp;stored&nbsp;in&nbsp;raw_input,<br>
this&nbsp;representation&nbsp;of&nbsp;the&nbsp;number&nbsp;will&nbsp;be&nbsp;used&nbsp;rather&nbsp;than&nbsp;the&nbsp;digit<br>
representation.&nbsp;Grouping&nbsp;information,&nbsp;as&nbsp;specified&nbsp;by&nbsp;characters&nbsp;such&nbsp;as<br>
"-"&nbsp;and&nbsp;"&nbsp;",&nbsp;will&nbsp;be&nbsp;retained.<br>
&nbsp;<br>
Caveats:<br>
&nbsp;<br>
&nbsp;-&nbsp;This&nbsp;will&nbsp;not&nbsp;produce&nbsp;good&nbsp;results&nbsp;if&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;is&nbsp;both<br>
&nbsp;&nbsp;&nbsp;present&nbsp;in&nbsp;the&nbsp;raw&nbsp;input&nbsp;_and_&nbsp;is&nbsp;the&nbsp;start&nbsp;of&nbsp;the&nbsp;national<br>
&nbsp;&nbsp;&nbsp;number.&nbsp;This&nbsp;is&nbsp;not&nbsp;a&nbsp;problem&nbsp;in&nbsp;the&nbsp;regions&nbsp;which&nbsp;typically&nbsp;use&nbsp;alpha<br>
&nbsp;&nbsp;&nbsp;numbers.<br>
&nbsp;<br>
&nbsp;-&nbsp;This&nbsp;will&nbsp;also&nbsp;not&nbsp;produce&nbsp;good&nbsp;results&nbsp;if&nbsp;the&nbsp;raw&nbsp;input&nbsp;has&nbsp;any<br>
&nbsp;&nbsp;&nbsp;grouping&nbsp;information&nbsp;within&nbsp;the&nbsp;first&nbsp;three&nbsp;digits&nbsp;of&nbsp;the&nbsp;national<br>
&nbsp;&nbsp;&nbsp;number,&nbsp;and&nbsp;if&nbsp;the&nbsp;function&nbsp;needs&nbsp;to&nbsp;strip&nbsp;preceding&nbsp;digits/words&nbsp;in<br>
&nbsp;&nbsp;&nbsp;the&nbsp;raw&nbsp;input&nbsp;before&nbsp;these&nbsp;digits.&nbsp;Normally&nbsp;people&nbsp;group&nbsp;the&nbsp;first<br>
&nbsp;&nbsp;&nbsp;three&nbsp;digits&nbsp;together&nbsp;so&nbsp;this&nbsp;is&nbsp;not&nbsp;a&nbsp;huge&nbsp;problem&nbsp;-&nbsp;and&nbsp;will&nbsp;be&nbsp;fixed<br>
&nbsp;&nbsp;&nbsp;if&nbsp;it&nbsp;proves&nbsp;to&nbsp;be&nbsp;so.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;that&nbsp;needs&nbsp;to&nbsp;be&nbsp;formatted.<br>
region_calling_from&nbsp;--&nbsp;The&nbsp;region&nbsp;where&nbsp;the&nbsp;call&nbsp;is&nbsp;being&nbsp;placed.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;formatted&nbsp;phone&nbsp;number</tt></dd></dl>
 <dl><dt><a name="-invalid_example_number"><strong>invalid_example_number</strong></a>(region_code)</dt><dd><tt>Gets&nbsp;an&nbsp;invalid&nbsp;number&nbsp;for&nbsp;the&nbsp;specified&nbsp;region.<br>
&nbsp;<br>
This&nbsp;is&nbsp;useful&nbsp;for&nbsp;unit-testing&nbsp;purposes,&nbsp;where&nbsp;you&nbsp;want&nbsp;to&nbsp;test&nbsp;what<br>
will&nbsp;happen&nbsp;with&nbsp;an&nbsp;invalid&nbsp;number.&nbsp;Note&nbsp;that&nbsp;the&nbsp;number&nbsp;that&nbsp;is<br>
returned&nbsp;will&nbsp;always&nbsp;be&nbsp;able&nbsp;to&nbsp;be&nbsp;parsed&nbsp;and&nbsp;will&nbsp;have&nbsp;the&nbsp;correct<br>
country&nbsp;code.&nbsp;It&nbsp;may&nbsp;also&nbsp;be&nbsp;a&nbsp;valid&nbsp;*short*&nbsp;number/code&nbsp;for&nbsp;this<br>
region.&nbsp;Validity&nbsp;checking&nbsp;such&nbsp;numbers&nbsp;is&nbsp;handled&nbsp;with&nbsp;shortnumberinfo.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;for&nbsp;which&nbsp;an&nbsp;example&nbsp;number&nbsp;is&nbsp;needed.<br>
&nbsp;<br>
&nbsp;<br>
Returns&nbsp;an&nbsp;invalid&nbsp;number&nbsp;for&nbsp;the&nbsp;specified&nbsp;region.&nbsp;Returns&nbsp;None&nbsp;when&nbsp;an<br>
unsupported&nbsp;region&nbsp;or&nbsp;the&nbsp;region&nbsp;001&nbsp;(Earth)&nbsp;is&nbsp;passed&nbsp;in.</tt></dd></dl>
 <dl><dt><a name="-is_alpha_number"><strong>is_alpha_number</strong></a>(number)</dt><dd><tt>Checks&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;a&nbsp;valid&nbsp;vanity&nbsp;(alpha)&nbsp;number&nbsp;such&nbsp;as&nbsp;800<br>
MICROSOFT.&nbsp;A&nbsp;valid&nbsp;vanity&nbsp;number&nbsp;will&nbsp;start&nbsp;with&nbsp;at&nbsp;least&nbsp;3&nbsp;digits&nbsp;and<br>
will&nbsp;have&nbsp;three&nbsp;or&nbsp;more&nbsp;alpha&nbsp;characters.&nbsp;This&nbsp;does&nbsp;not&nbsp;do&nbsp;region-specific<br>
checks&nbsp;-&nbsp;to&nbsp;work&nbsp;out&nbsp;if&nbsp;this&nbsp;number&nbsp;is&nbsp;actually&nbsp;valid&nbsp;for&nbsp;a&nbsp;region,&nbsp;it<br>
should&nbsp;be&nbsp;parsed&nbsp;and&nbsp;methods&nbsp;such&nbsp;as&nbsp;<a href="#-is_possible_number_with_reason">is_possible_number_with_reason</a>()&nbsp;and<br>
<a href="#-is_valid_number">is_valid_number</a>()&nbsp;should&nbsp;be&nbsp;used.<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;the&nbsp;number&nbsp;that&nbsp;needs&nbsp;to&nbsp;be&nbsp;checked<br>
&nbsp;<br>
Returns&nbsp;True&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;a&nbsp;valid&nbsp;vanity&nbsp;number</tt></dd></dl>
 <dl><dt><a name="-is_carrier_specific"><strong>is_carrier_specific</strong></a>(numobj)</dt><dd><tt>Given&nbsp;a&nbsp;valid&nbsp;short&nbsp;number,&nbsp;determines&nbsp;whether&nbsp;it&nbsp;is&nbsp;carrier-specific<br>
(however,&nbsp;nothing&nbsp;is&nbsp;implied&nbsp;about&nbsp;its&nbsp;validity).&nbsp;&nbsp;Carrier-specific&nbsp;numbers<br>
may&nbsp;connect&nbsp;to&nbsp;a&nbsp;different&nbsp;end-point,&nbsp;or&nbsp;not&nbsp;connect&nbsp;at&nbsp;all,&nbsp;depending<br>
on&nbsp;the&nbsp;user's&nbsp;carrier.&nbsp;If&nbsp;it&nbsp;is&nbsp;important&nbsp;that&nbsp;the&nbsp;number&nbsp;is&nbsp;valid,&nbsp;then<br>
its&nbsp;validity&nbsp;must&nbsp;first&nbsp;be&nbsp;checked&nbsp;using&nbsp;is_valid_short_number&nbsp;or<br>
is_valid_short_number_for_region.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;valid&nbsp;short&nbsp;number&nbsp;to&nbsp;check<br>
&nbsp;<br>
Returns&nbsp;whether&nbsp;the&nbsp;short&nbsp;number&nbsp;is&nbsp;carrier-specific,&nbsp;assuming&nbsp;the&nbsp;input<br>
was&nbsp;a&nbsp;valid&nbsp;short&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-is_carrier_specific_for_region"><strong>is_carrier_specific_for_region</strong></a>(numobj, region_dialing_from)</dt><dd><tt>Given&nbsp;a&nbsp;valid&nbsp;short&nbsp;number,&nbsp;determines&nbsp;whether&nbsp;it&nbsp;is&nbsp;carrier-specific&nbsp;when<br>
dialed&nbsp;from&nbsp;the&nbsp;given&nbsp;region&nbsp;(however,&nbsp;nothing&nbsp;is&nbsp;implied&nbsp;about&nbsp;its<br>
validity).&nbsp;Carrier-specific&nbsp;numbers&nbsp;may&nbsp;connect&nbsp;to&nbsp;a&nbsp;different&nbsp;end-point,<br>
or&nbsp;not&nbsp;connect&nbsp;at&nbsp;all,&nbsp;depending&nbsp;on&nbsp;the&nbsp;user's&nbsp;carrier.&nbsp;If&nbsp;it&nbsp;is&nbsp;important<br>
that&nbsp;the&nbsp;number&nbsp;is&nbsp;valid,&nbsp;then&nbsp;its&nbsp;validity&nbsp;must&nbsp;first&nbsp;be&nbsp;checked&nbsp;using<br>
isValidShortNumber&nbsp;or&nbsp;isValidShortNumberForRegion.&nbsp;Returns&nbsp;false&nbsp;if&nbsp;the<br>
number&nbsp;doesn't&nbsp;match&nbsp;the&nbsp;region&nbsp;provided.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;valid&nbsp;short&nbsp;number&nbsp;to&nbsp;check<br>
region_dialing_from&nbsp;--&nbsp;the&nbsp;region&nbsp;from&nbsp;which&nbsp;the&nbsp;number&nbsp;is&nbsp;dialed<br>
&nbsp;<br>
Returns&nbsp;whether&nbsp;the&nbsp;short&nbsp;number&nbsp;is&nbsp;carrier-specific,&nbsp;assuming&nbsp;the&nbsp;input<br>
was&nbsp;a&nbsp;valid&nbsp;short&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-is_emergency_number"><strong>is_emergency_number</strong></a>(number, region_code)</dt><dd><tt>Returns&nbsp;true&nbsp;if&nbsp;the&nbsp;given&nbsp;number&nbsp;exactly&nbsp;matches&nbsp;an&nbsp;emergency&nbsp;service<br>
number&nbsp;in&nbsp;the&nbsp;given&nbsp;region.<br>
&nbsp;<br>
This&nbsp;method&nbsp;takes&nbsp;into&nbsp;account&nbsp;cases&nbsp;where&nbsp;the&nbsp;number&nbsp;might&nbsp;contain<br>
formatting,&nbsp;but&nbsp;doesn't&nbsp;allow&nbsp;additional&nbsp;digits&nbsp;to&nbsp;be&nbsp;appended.&nbsp;&nbsp;Note&nbsp;that<br>
<a href="#-is_emergency_number">is_emergency_number</a>(number,&nbsp;region)&nbsp;implies<br>
<a href="#-connects_to_emergency_number">connects_to_emergency_number</a>(number,&nbsp;region).<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;to&nbsp;test.<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;where&nbsp;the&nbsp;phone&nbsp;number&nbsp;is&nbsp;being&nbsp;dialed.<br>
&nbsp;<br>
Returns&nbsp;if&nbsp;the&nbsp;number&nbsp;exactly&nbsp;matches&nbsp;an&nbsp;emergency&nbsp;services&nbsp;number&nbsp;in&nbsp;the<br>
given&nbsp;region.</tt></dd></dl>
 <dl><dt><a name="-is_mobile_number_portable_region"><strong>is_mobile_number_portable_region</strong></a>(region_code)</dt><dd><tt>Returns&nbsp;true&nbsp;if&nbsp;the&nbsp;supplied&nbsp;region&nbsp;supports&nbsp;mobile&nbsp;number&nbsp;portability.<br>
Returns&nbsp;false&nbsp;for&nbsp;invalid,&nbsp;unknown&nbsp;or&nbsp;regions&nbsp;that&nbsp;don't&nbsp;support&nbsp;mobile<br>
number&nbsp;portability.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;the&nbsp;region&nbsp;for&nbsp;which&nbsp;we&nbsp;want&nbsp;to&nbsp;know&nbsp;whether&nbsp;it&nbsp;supports&nbsp;mobile&nbsp;number<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;portability&nbsp;or&nbsp;not.</tt></dd></dl>
 <dl><dt><a name="-is_nanpa_country"><strong>is_nanpa_country</strong></a>(region_code)</dt><dd><tt>Checks&nbsp;if&nbsp;this&nbsp;region&nbsp;is&nbsp;a&nbsp;NANPA&nbsp;region.<br>
&nbsp;<br>
Returns&nbsp;True&nbsp;if&nbsp;region_code&nbsp;is&nbsp;one&nbsp;of&nbsp;the&nbsp;regions&nbsp;under&nbsp;the&nbsp;North&nbsp;American<br>
Numbering&nbsp;Plan&nbsp;Administration&nbsp;(NANPA).</tt></dd></dl>
 <dl><dt><a name="-is_number_geographical"><strong>is_number_geographical</strong></a>(numobj)</dt><dd><tt>Tests&nbsp;whether&nbsp;a&nbsp;phone&nbsp;number&nbsp;has&nbsp;a&nbsp;geographical&nbsp;association.<br>
&nbsp;<br>
It&nbsp;checks&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;associated&nbsp;with&nbsp;a&nbsp;certain&nbsp;region&nbsp;in&nbsp;the&nbsp;country<br>
to&nbsp;which&nbsp;it&nbsp;belongs.&nbsp;Note&nbsp;that&nbsp;this&nbsp;doesn't&nbsp;verify&nbsp;if&nbsp;the&nbsp;number&nbsp;is<br>
actually&nbsp;in&nbsp;use.<br>
country_code&nbsp;--&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;which&nbsp;we&nbsp;want&nbsp;the&nbsp;mobile&nbsp;token</tt></dd></dl>
 <dl><dt><a name="-is_number_match"><strong>is_number_match</strong></a>(num1, num2)</dt><dd><tt>Takes&nbsp;two&nbsp;phone&nbsp;numbers&nbsp;and&nbsp;compares&nbsp;them&nbsp;for&nbsp;equality.<br>
&nbsp;<br>
For&nbsp;example,&nbsp;the&nbsp;numbers&nbsp;+1&nbsp;345&nbsp;657&nbsp;1234&nbsp;and&nbsp;657&nbsp;1234&nbsp;are&nbsp;a&nbsp;SHORT_NSN_MATCH.<br>
The&nbsp;numbers&nbsp;+1&nbsp;345&nbsp;657&nbsp;1234&nbsp;and&nbsp;345&nbsp;657&nbsp;are&nbsp;a&nbsp;NO_MATCH.<br>
&nbsp;<br>
Arguments<br>
num1&nbsp;--&nbsp;First&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;or&nbsp;string&nbsp;to&nbsp;compare.&nbsp;Can&nbsp;contain&nbsp;formatting,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;can&nbsp;have&nbsp;country&nbsp;calling&nbsp;code&nbsp;specified&nbsp;with&nbsp;+&nbsp;at&nbsp;the&nbsp;start.<br>
num2&nbsp;--&nbsp;Second&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;or&nbsp;string&nbsp;to&nbsp;compare.&nbsp;Can&nbsp;contain&nbsp;formatting,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and&nbsp;can&nbsp;have&nbsp;country&nbsp;calling&nbsp;code&nbsp;specified&nbsp;with&nbsp;+&nbsp;at&nbsp;the&nbsp;start.<br>
&nbsp;<br>
Returns:<br>
&nbsp;-&nbsp;EXACT_MATCH&nbsp;if&nbsp;the&nbsp;country_code,&nbsp;NSN,&nbsp;presence&nbsp;of&nbsp;a&nbsp;leading&nbsp;zero&nbsp;for<br>
&nbsp;&nbsp;&nbsp;Italian&nbsp;numbers&nbsp;and&nbsp;any&nbsp;extension&nbsp;present&nbsp;are&nbsp;the&nbsp;same.<br>
&nbsp;-&nbsp;NSN_MATCH&nbsp;if&nbsp;either&nbsp;or&nbsp;both&nbsp;has&nbsp;no&nbsp;region&nbsp;specified,&nbsp;and&nbsp;the&nbsp;NSNs&nbsp;and<br>
&nbsp;&nbsp;&nbsp;extensions&nbsp;are&nbsp;the&nbsp;same.<br>
&nbsp;-&nbsp;SHORT_NSN_MATCH&nbsp;if&nbsp;either&nbsp;or&nbsp;both&nbsp;has&nbsp;no&nbsp;region&nbsp;specified,&nbsp;or&nbsp;the<br>
&nbsp;&nbsp;&nbsp;region&nbsp;specified&nbsp;is&nbsp;the&nbsp;same,&nbsp;and&nbsp;one&nbsp;NSN&nbsp;could&nbsp;be&nbsp;a&nbsp;shorter&nbsp;version&nbsp;of<br>
&nbsp;&nbsp;&nbsp;the&nbsp;other&nbsp;number.&nbsp;This&nbsp;includes&nbsp;the&nbsp;case&nbsp;where&nbsp;one&nbsp;has&nbsp;an&nbsp;extension<br>
&nbsp;&nbsp;&nbsp;specified,&nbsp;and&nbsp;the&nbsp;other&nbsp;does&nbsp;not.<br>
&nbsp;-&nbsp;NO_MATCH&nbsp;otherwise.</tt></dd></dl>
 <dl><dt><a name="-is_number_type_geographical"><strong>is_number_type_geographical</strong></a>(num_type, country_code)</dt><dd><tt>Tests&nbsp;whether&nbsp;a&nbsp;phone&nbsp;number&nbsp;has&nbsp;a&nbsp;geographical&nbsp;association,<br>
as&nbsp;represented&nbsp;by&nbsp;its&nbsp;type&nbsp;and&nbsp;the&nbsp;country&nbsp;it&nbsp;belongs&nbsp;to.<br>
&nbsp;<br>
This&nbsp;version&nbsp;of&nbsp;isNumberGeographical&nbsp;exists&nbsp;since&nbsp;calculating&nbsp;the&nbsp;phone<br>
number&nbsp;type&nbsp;is&nbsp;expensive;&nbsp;if&nbsp;we&nbsp;have&nbsp;already&nbsp;done&nbsp;this,&nbsp;we&nbsp;don't&nbsp;want&nbsp;to<br>
do&nbsp;it&nbsp;again.</tt></dd></dl>
 <dl><dt><a name="-is_possible_number"><strong>is_possible_number</strong></a>(numobj)</dt><dd><tt>Convenience&nbsp;wrapper&nbsp;around&nbsp;is_possible_number_with_reason.<br>
&nbsp;<br>
Instead&nbsp;of&nbsp;returning&nbsp;the&nbsp;reason&nbsp;for&nbsp;failure,&nbsp;this&nbsp;method&nbsp;returns&nbsp;true&nbsp;if<br>
the&nbsp;number&nbsp;is&nbsp;either&nbsp;a&nbsp;possible&nbsp;fully-qualified&nbsp;number&nbsp;(containing&nbsp;the&nbsp;area<br>
code&nbsp;and&nbsp;country&nbsp;code),&nbsp;or&nbsp;if&nbsp;the&nbsp;number&nbsp;could&nbsp;be&nbsp;a&nbsp;possible&nbsp;local&nbsp;number<br>
(with&nbsp;a&nbsp;country&nbsp;code,&nbsp;but&nbsp;missing&nbsp;an&nbsp;area&nbsp;code).&nbsp;Local&nbsp;numbers&nbsp;are<br>
considered&nbsp;possible&nbsp;if&nbsp;they&nbsp;could&nbsp;be&nbsp;possibly&nbsp;dialled&nbsp;in&nbsp;this&nbsp;format:&nbsp;if<br>
the&nbsp;area&nbsp;code&nbsp;is&nbsp;needed&nbsp;for&nbsp;a&nbsp;call&nbsp;to&nbsp;connect,&nbsp;the&nbsp;number&nbsp;is&nbsp;not&nbsp;considered<br>
possible&nbsp;without&nbsp;it.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;that&nbsp;needs&nbsp;to&nbsp;be&nbsp;checked<br>
&nbsp;<br>
Returns&nbsp;True&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;possible</tt></dd></dl>
 <dl><dt><a name="-is_possible_number_for_type"><strong>is_possible_number_for_type</strong></a>(numobj, numtype)</dt><dd><tt>Convenience&nbsp;wrapper&nbsp;around&nbsp;is_possible_number_for_type_with_reason.<br>
&nbsp;<br>
Instead&nbsp;of&nbsp;returning&nbsp;the&nbsp;reason&nbsp;for&nbsp;failure,&nbsp;this&nbsp;method&nbsp;returns&nbsp;true&nbsp;if<br>
the&nbsp;number&nbsp;is&nbsp;either&nbsp;a&nbsp;possible&nbsp;fully-qualified&nbsp;number&nbsp;(containing&nbsp;the&nbsp;area<br>
code&nbsp;and&nbsp;country&nbsp;code),&nbsp;or&nbsp;if&nbsp;the&nbsp;number&nbsp;could&nbsp;be&nbsp;a&nbsp;possible&nbsp;local&nbsp;number<br>
(with&nbsp;a&nbsp;country&nbsp;code,&nbsp;but&nbsp;missing&nbsp;an&nbsp;area&nbsp;code).&nbsp;Local&nbsp;numbers&nbsp;are<br>
considered&nbsp;possible&nbsp;if&nbsp;they&nbsp;could&nbsp;be&nbsp;possibly&nbsp;dialled&nbsp;in&nbsp;this&nbsp;format:&nbsp;if<br>
the&nbsp;area&nbsp;code&nbsp;is&nbsp;needed&nbsp;for&nbsp;a&nbsp;call&nbsp;to&nbsp;connect,&nbsp;the&nbsp;number&nbsp;is&nbsp;not&nbsp;considered<br>
possible&nbsp;without&nbsp;it.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;that&nbsp;needs&nbsp;to&nbsp;be&nbsp;checked<br>
numtype&nbsp;--&nbsp;the&nbsp;type&nbsp;we&nbsp;are&nbsp;interested&nbsp;in<br>
&nbsp;<br>
Returns&nbsp;True&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;possible</tt></dd></dl>
 <dl><dt><a name="-is_possible_number_for_type_with_reason"><strong>is_possible_number_for_type_with_reason</strong></a>(numobj, numtype)</dt><dd><tt>Check&nbsp;whether&nbsp;a&nbsp;phone&nbsp;number&nbsp;is&nbsp;a&nbsp;possible&nbsp;number&nbsp;of&nbsp;a&nbsp;particular&nbsp;type.<br>
&nbsp;<br>
For&nbsp;types&nbsp;that&nbsp;don't&nbsp;exist&nbsp;in&nbsp;a&nbsp;particular&nbsp;region,&nbsp;this&nbsp;will&nbsp;return&nbsp;a&nbsp;result<br>
that&nbsp;isn't&nbsp;so&nbsp;useful;&nbsp;it&nbsp;is&nbsp;recommended&nbsp;that&nbsp;you&nbsp;use<br>
supported_types_for_region&nbsp;or&nbsp;supported_types_for_non_geo_entity<br>
respectively&nbsp;before&nbsp;calling&nbsp;this&nbsp;method&nbsp;to&nbsp;determine&nbsp;whether&nbsp;you&nbsp;should&nbsp;call<br>
it&nbsp;for&nbsp;this&nbsp;number&nbsp;at&nbsp;all.<br>
&nbsp;<br>
This&nbsp;provides&nbsp;a&nbsp;more&nbsp;lenient&nbsp;check&nbsp;than&nbsp;is_valid_number&nbsp;in&nbsp;the&nbsp;following&nbsp;sense:<br>
&nbsp;<br>
&nbsp;-&nbsp;It&nbsp;only&nbsp;checks&nbsp;the&nbsp;length&nbsp;of&nbsp;phone&nbsp;numbers.&nbsp;In&nbsp;particular,&nbsp;it&nbsp;doesn't<br>
&nbsp;&nbsp;&nbsp;check&nbsp;starting&nbsp;digits&nbsp;of&nbsp;the&nbsp;number.<br>
&nbsp;<br>
&nbsp;-&nbsp;For&nbsp;some&nbsp;numbers&nbsp;(particularly&nbsp;fixed-line),&nbsp;many&nbsp;regions&nbsp;have&nbsp;the<br>
&nbsp;&nbsp;&nbsp;concept&nbsp;of&nbsp;area&nbsp;code,&nbsp;which&nbsp;together&nbsp;with&nbsp;subscriber&nbsp;number&nbsp;constitute<br>
&nbsp;&nbsp;&nbsp;the&nbsp;national&nbsp;significant&nbsp;number.&nbsp;It&nbsp;is&nbsp;sometimes&nbsp;okay&nbsp;to&nbsp;dial&nbsp;only&nbsp;the<br>
&nbsp;&nbsp;&nbsp;subscriber&nbsp;number&nbsp;when&nbsp;dialing&nbsp;in&nbsp;the&nbsp;same&nbsp;area.&nbsp;This&nbsp;function&nbsp;will<br>
&nbsp;&nbsp;&nbsp;return&nbsp;IS_POSSIBLE_LOCAL_ONLY&nbsp;if&nbsp;the&nbsp;subscriber-number-only&nbsp;version&nbsp;is<br>
&nbsp;&nbsp;&nbsp;passed&nbsp;in.&nbsp;On&nbsp;the&nbsp;other&nbsp;hand,&nbsp;because&nbsp;is_valid_number&nbsp;validates&nbsp;using<br>
&nbsp;&nbsp;&nbsp;information&nbsp;on&nbsp;both&nbsp;starting&nbsp;digits&nbsp;(for&nbsp;fixed&nbsp;line&nbsp;numbers,&nbsp;that&nbsp;would<br>
&nbsp;&nbsp;&nbsp;most&nbsp;likely&nbsp;be&nbsp;area&nbsp;codes)&nbsp;and&nbsp;length&nbsp;(obviously&nbsp;includes&nbsp;the&nbsp;length&nbsp;of<br>
&nbsp;&nbsp;&nbsp;area&nbsp;codes&nbsp;for&nbsp;fixed&nbsp;line&nbsp;numbers),&nbsp;it&nbsp;will&nbsp;return&nbsp;false&nbsp;for&nbsp;the<br>
&nbsp;&nbsp;&nbsp;subscriber-number-only&nbsp;version.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;that&nbsp;needs&nbsp;to&nbsp;be&nbsp;checked<br>
numtype&nbsp;--&nbsp;The&nbsp;type&nbsp;we&nbsp;are&nbsp;interested&nbsp;in<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;value&nbsp;from&nbsp;<a href="#ValidationResult">ValidationResult</a>&nbsp;which&nbsp;indicates&nbsp;whether&nbsp;the&nbsp;number<br>
is&nbsp;possible</tt></dd></dl>
 <dl><dt><a name="-is_possible_number_string"><strong>is_possible_number_string</strong></a>(number, region_dialing_from)</dt><dd><tt>Check&nbsp;whether&nbsp;a&nbsp;phone&nbsp;number&nbsp;string&nbsp;is&nbsp;a&nbsp;possible&nbsp;number.<br>
&nbsp;<br>
Takes&nbsp;a&nbsp;number&nbsp;in&nbsp;the&nbsp;form&nbsp;of&nbsp;a&nbsp;string,&nbsp;and&nbsp;the&nbsp;region&nbsp;where&nbsp;the&nbsp;number<br>
could&nbsp;be&nbsp;dialed&nbsp;from.&nbsp;It&nbsp;provides&nbsp;a&nbsp;more&nbsp;lenient&nbsp;check&nbsp;than<br>
is_valid_number;&nbsp;see&nbsp;<a href="#-is_possible_number_with_reason">is_possible_number_with_reason</a>()&nbsp;for&nbsp;details.<br>
&nbsp;<br>
This&nbsp;method&nbsp;first&nbsp;parses&nbsp;the&nbsp;number,&nbsp;then&nbsp;invokes&nbsp;is_possible_number&nbsp;with<br>
the&nbsp;resultant&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;The&nbsp;number&nbsp;that&nbsp;needs&nbsp;to&nbsp;be&nbsp;checked,&nbsp;in&nbsp;the&nbsp;form&nbsp;of&nbsp;a&nbsp;string.<br>
region_dialling_from&nbsp;--&nbsp;The&nbsp;region&nbsp;that&nbsp;we&nbsp;are&nbsp;expecting&nbsp;the&nbsp;number&nbsp;to&nbsp;be<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dialed&nbsp;from.&nbsp;&nbsp;Note&nbsp;this&nbsp;is&nbsp;different&nbsp;from&nbsp;the&nbsp;region&nbsp;where&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;number&nbsp;belongs.&nbsp;&nbsp;For&nbsp;example,&nbsp;the&nbsp;number&nbsp;+1&nbsp;650&nbsp;253&nbsp;0000&nbsp;is&nbsp;a<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;number&nbsp;that&nbsp;belongs&nbsp;to&nbsp;US.&nbsp;When&nbsp;written&nbsp;in&nbsp;this&nbsp;form,&nbsp;it&nbsp;can&nbsp;be<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dialed&nbsp;from&nbsp;any&nbsp;region.&nbsp;When&nbsp;it&nbsp;is&nbsp;written&nbsp;as&nbsp;00&nbsp;1&nbsp;650&nbsp;253&nbsp;0000,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;it&nbsp;can&nbsp;be&nbsp;dialed&nbsp;from&nbsp;any&nbsp;region&nbsp;which&nbsp;uses&nbsp;an&nbsp;international<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dialling&nbsp;prefix&nbsp;of&nbsp;00.&nbsp;When&nbsp;it&nbsp;is&nbsp;written&nbsp;as&nbsp;650&nbsp;253&nbsp;0000,&nbsp;it<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;can&nbsp;only&nbsp;be&nbsp;dialed&nbsp;from&nbsp;within&nbsp;the&nbsp;US,&nbsp;and&nbsp;when&nbsp;written&nbsp;as&nbsp;253<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0000,&nbsp;it&nbsp;can&nbsp;only&nbsp;be&nbsp;dialed&nbsp;from&nbsp;within&nbsp;a&nbsp;smaller&nbsp;area&nbsp;in&nbsp;the&nbsp;US<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Mountain&nbsp;View,&nbsp;CA,&nbsp;to&nbsp;be&nbsp;more&nbsp;specific).<br>
&nbsp;<br>
Returns&nbsp;True&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;possible</tt></dd></dl>
 <dl><dt><a name="-is_possible_number_with_reason"><strong>is_possible_number_with_reason</strong></a>(numobj)</dt></dl>
 <dl><dt><a name="-is_possible_short_number"><strong>is_possible_short_number</strong></a>(numobj)</dt><dd><tt>Check&nbsp;whether&nbsp;a&nbsp;short&nbsp;number&nbsp;is&nbsp;a&nbsp;possible&nbsp;number.<br>
&nbsp;<br>
If&nbsp;a&nbsp;country&nbsp;calling&nbsp;code&nbsp;is&nbsp;shared&nbsp;by&nbsp;multiple&nbsp;regions,&nbsp;this&nbsp;returns&nbsp;True<br>
if&nbsp;it's&nbsp;possible&nbsp;in&nbsp;any&nbsp;of&nbsp;them.&nbsp;This&nbsp;provides&nbsp;a&nbsp;more&nbsp;lenient&nbsp;check&nbsp;than<br>
is_valid_short_number.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;short&nbsp;number&nbsp;to&nbsp;check<br>
&nbsp;<br>
Return&nbsp;whether&nbsp;the&nbsp;number&nbsp;is&nbsp;a&nbsp;possible&nbsp;short&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-is_possible_short_number_for_region"><strong>is_possible_short_number_for_region</strong></a>(short_numobj, region_dialing_from)</dt><dd><tt>Check&nbsp;whether&nbsp;a&nbsp;short&nbsp;number&nbsp;is&nbsp;a&nbsp;possible&nbsp;number&nbsp;when&nbsp;dialled&nbsp;from&nbsp;a<br>
region.&nbsp;This&nbsp;provides&nbsp;a&nbsp;more&nbsp;lenient&nbsp;check&nbsp;than<br>
is_valid_short_number_for_region.<br>
&nbsp;<br>
Arguments:<br>
short_numobj&nbsp;--&nbsp;the&nbsp;short&nbsp;number&nbsp;to&nbsp;check&nbsp;as&nbsp;a&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
region_dialing_from&nbsp;--&nbsp;the&nbsp;region&nbsp;from&nbsp;which&nbsp;the&nbsp;number&nbsp;is&nbsp;dialed<br>
&nbsp;<br>
Return&nbsp;whether&nbsp;the&nbsp;number&nbsp;is&nbsp;a&nbsp;possible&nbsp;short&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-is_sms_service_for_region"><strong>is_sms_service_for_region</strong></a>(numobj, region_dialing_from)</dt><dd><tt>Given&nbsp;a&nbsp;valid&nbsp;short&nbsp;number,&nbsp;determines&nbsp;whether&nbsp;it&nbsp;is&nbsp;an&nbsp;SMS&nbsp;service<br>
(however,&nbsp;nothing&nbsp;is&nbsp;implied&nbsp;about&nbsp;its&nbsp;validity).&nbsp;An&nbsp;SMS&nbsp;service&nbsp;is&nbsp;where<br>
the&nbsp;primary&nbsp;or&nbsp;only&nbsp;intended&nbsp;usage&nbsp;is&nbsp;to&nbsp;receive&nbsp;and/or&nbsp;send&nbsp;text&nbsp;messages<br>
(SMSs).&nbsp;This&nbsp;includes&nbsp;MMS&nbsp;as&nbsp;MMS&nbsp;numbers&nbsp;downgrade&nbsp;to&nbsp;SMS&nbsp;if&nbsp;the&nbsp;other<br>
party&nbsp;isn't&nbsp;MMS-capable.&nbsp;If&nbsp;it&nbsp;is&nbsp;important&nbsp;that&nbsp;the&nbsp;number&nbsp;is&nbsp;valid,&nbsp;then<br>
its&nbsp;validity&nbsp;must&nbsp;first&nbsp;be&nbsp;checked&nbsp;using&nbsp;is_valid_short_number&nbsp;or<br>
is_valid_short_number_for_region.&nbsp;&nbsp;Returns&nbsp;False&nbsp;if&nbsp;the&nbsp;number&nbsp;doesn't<br>
match&nbsp;the&nbsp;region&nbsp;provided.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;the&nbsp;valid&nbsp;short&nbsp;number&nbsp;to&nbsp;check<br>
region_dialing_from&nbsp;--&nbsp;the&nbsp;region&nbsp;from&nbsp;which&nbsp;the&nbsp;number&nbsp;is&nbsp;dialed<br>
&nbsp;<br>
Returns&nbsp;whether&nbsp;the&nbsp;short&nbsp;number&nbsp;is&nbsp;an&nbsp;SMS&nbsp;service&nbsp;in&nbsp;the&nbsp;provided&nbsp;region,<br>
assuming&nbsp;the&nbsp;input&nbsp;was&nbsp;a&nbsp;valid&nbsp;short&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-is_valid_number"><strong>is_valid_number</strong></a>(numobj)</dt><dd><tt>Tests&nbsp;whether&nbsp;a&nbsp;phone&nbsp;number&nbsp;matches&nbsp;a&nbsp;valid&nbsp;pattern.<br>
&nbsp;<br>
Note&nbsp;this&nbsp;doesn't&nbsp;verify&nbsp;the&nbsp;number&nbsp;is&nbsp;actually&nbsp;in&nbsp;use,&nbsp;which&nbsp;is<br>
impossible&nbsp;to&nbsp;tell&nbsp;by&nbsp;just&nbsp;looking&nbsp;at&nbsp;a&nbsp;number&nbsp;itself.&nbsp;&nbsp;It&nbsp;only&nbsp;verifies<br>
whether&nbsp;the&nbsp;parsed,&nbsp;canonicalised&nbsp;number&nbsp;is&nbsp;valid:&nbsp;not&nbsp;whether&nbsp;a<br>
particular&nbsp;series&nbsp;of&nbsp;digits&nbsp;entered&nbsp;by&nbsp;the&nbsp;user&nbsp;is&nbsp;diallable&nbsp;from&nbsp;the<br>
region&nbsp;provided&nbsp;when&nbsp;parsing.&nbsp;For&nbsp;example,&nbsp;the&nbsp;number&nbsp;+41&nbsp;(0)&nbsp;78&nbsp;927&nbsp;2696<br>
can&nbsp;be&nbsp;parsed&nbsp;into&nbsp;a&nbsp;number&nbsp;with&nbsp;country&nbsp;code&nbsp;"41"&nbsp;and&nbsp;national<br>
significant&nbsp;number&nbsp;"789272696".&nbsp;This&nbsp;is&nbsp;valid,&nbsp;while&nbsp;the&nbsp;original&nbsp;string<br>
is&nbsp;not&nbsp;diallable.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;that&nbsp;we&nbsp;want&nbsp;to&nbsp;validate<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;boolean&nbsp;that&nbsp;indicates&nbsp;whether&nbsp;the&nbsp;number&nbsp;is&nbsp;of&nbsp;a&nbsp;valid&nbsp;pattern.</tt></dd></dl>
 <dl><dt><a name="-is_valid_number_for_region"><strong>is_valid_number_for_region</strong></a>(numobj, region_code)</dt><dd><tt>Tests&nbsp;whether&nbsp;a&nbsp;phone&nbsp;number&nbsp;is&nbsp;valid&nbsp;for&nbsp;a&nbsp;certain&nbsp;region.<br>
&nbsp;<br>
Note&nbsp;this&nbsp;doesn't&nbsp;verify&nbsp;the&nbsp;number&nbsp;is&nbsp;actually&nbsp;in&nbsp;use,&nbsp;which&nbsp;is<br>
impossible&nbsp;to&nbsp;tell&nbsp;by&nbsp;just&nbsp;looking&nbsp;at&nbsp;a&nbsp;number&nbsp;itself.&nbsp;If&nbsp;the&nbsp;country<br>
calling&nbsp;code&nbsp;is&nbsp;not&nbsp;the&nbsp;same&nbsp;as&nbsp;the&nbsp;country&nbsp;calling&nbsp;code&nbsp;for&nbsp;the&nbsp;region,<br>
this&nbsp;immediately&nbsp;exits&nbsp;with&nbsp;false.&nbsp;After&nbsp;this,&nbsp;the&nbsp;specific&nbsp;number&nbsp;pattern<br>
rules&nbsp;for&nbsp;the&nbsp;region&nbsp;are&nbsp;examined.&nbsp;This&nbsp;is&nbsp;useful&nbsp;for&nbsp;determining&nbsp;for<br>
example&nbsp;whether&nbsp;a&nbsp;particular&nbsp;number&nbsp;is&nbsp;valid&nbsp;for&nbsp;Canada,&nbsp;rather&nbsp;than&nbsp;just<br>
a&nbsp;valid&nbsp;NANPA&nbsp;number.<br>
&nbsp;<br>
Warning:&nbsp;In&nbsp;most&nbsp;cases,&nbsp;you&nbsp;want&nbsp;to&nbsp;use&nbsp;is_valid_number&nbsp;instead.&nbsp;For<br>
example,&nbsp;this&nbsp;method&nbsp;will&nbsp;mark&nbsp;numbers&nbsp;from&nbsp;British&nbsp;Crown&nbsp;dependencies<br>
such&nbsp;as&nbsp;the&nbsp;Isle&nbsp;of&nbsp;Man&nbsp;as&nbsp;invalid&nbsp;for&nbsp;the&nbsp;region&nbsp;"GB"&nbsp;(United&nbsp;Kingdom),<br>
since&nbsp;it&nbsp;has&nbsp;its&nbsp;own&nbsp;region&nbsp;code,&nbsp;"IM",&nbsp;which&nbsp;may&nbsp;be&nbsp;undesirable.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;that&nbsp;we&nbsp;want&nbsp;to&nbsp;validate.<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;that&nbsp;we&nbsp;want&nbsp;to&nbsp;validate&nbsp;the&nbsp;phone&nbsp;number&nbsp;for.<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;boolean&nbsp;that&nbsp;indicates&nbsp;whether&nbsp;the&nbsp;number&nbsp;is&nbsp;of&nbsp;a&nbsp;valid&nbsp;pattern.</tt></dd></dl>
 <dl><dt><a name="-is_valid_short_number"><strong>is_valid_short_number</strong></a>(numobj)</dt><dd><tt>Tests&nbsp;whether&nbsp;a&nbsp;short&nbsp;number&nbsp;matches&nbsp;a&nbsp;valid&nbsp;pattern.<br>
&nbsp;<br>
If&nbsp;a&nbsp;country&nbsp;calling&nbsp;code&nbsp;is&nbsp;shared&nbsp;by&nbsp;multiple&nbsp;regions,&nbsp;this&nbsp;returns&nbsp;True<br>
if&nbsp;it's&nbsp;valid&nbsp;in&nbsp;any&nbsp;of&nbsp;them.&nbsp;Note&nbsp;that&nbsp;this&nbsp;doesn't&nbsp;verify&nbsp;the&nbsp;number&nbsp;is<br>
actually&nbsp;in&nbsp;use,&nbsp;which&nbsp;is&nbsp;impossible&nbsp;to&nbsp;tell&nbsp;by&nbsp;just&nbsp;looking&nbsp;at&nbsp;the&nbsp;number<br>
itself.&nbsp;See&nbsp;is_valid_short_number_for_region&nbsp;for&nbsp;details.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;-&nbsp;the&nbsp;short&nbsp;number&nbsp;for&nbsp;which&nbsp;we&nbsp;want&nbsp;to&nbsp;test&nbsp;the&nbsp;validity<br>
&nbsp;<br>
Return&nbsp;whether&nbsp;the&nbsp;short&nbsp;number&nbsp;matches&nbsp;a&nbsp;valid&nbsp;pattern</tt></dd></dl>
 <dl><dt><a name="-is_valid_short_number_for_region"><strong>is_valid_short_number_for_region</strong></a>(short_numobj, region_dialing_from)</dt><dd><tt>Tests&nbsp;whether&nbsp;a&nbsp;short&nbsp;number&nbsp;matches&nbsp;a&nbsp;valid&nbsp;pattern&nbsp;in&nbsp;a&nbsp;region.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;this&nbsp;doesn't&nbsp;verify&nbsp;the&nbsp;number&nbsp;is&nbsp;actually&nbsp;in&nbsp;use,&nbsp;which&nbsp;is<br>
impossible&nbsp;to&nbsp;tell&nbsp;by&nbsp;just&nbsp;looking&nbsp;at&nbsp;the&nbsp;number&nbsp;itself.<br>
&nbsp;<br>
Arguments:<br>
short_numobj&nbsp;--&nbsp;the&nbsp;short&nbsp;number&nbsp;to&nbsp;check&nbsp;as&nbsp;a&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
region_dialing_from&nbsp;--&nbsp;the&nbsp;region&nbsp;from&nbsp;which&nbsp;the&nbsp;number&nbsp;is&nbsp;dialed<br>
&nbsp;<br>
Return&nbsp;whether&nbsp;the&nbsp;short&nbsp;number&nbsp;matches&nbsp;a&nbsp;valid&nbsp;pattern</tt></dd></dl>
 <dl><dt><a name="-length_of_geographical_area_code"><strong>length_of_geographical_area_code</strong></a>(numobj)</dt><dd><tt>Return&nbsp;length&nbsp;of&nbsp;the&nbsp;geographical&nbsp;area&nbsp;code&nbsp;for&nbsp;a&nbsp;number.<br>
&nbsp;<br>
Gets&nbsp;the&nbsp;length&nbsp;of&nbsp;the&nbsp;geographical&nbsp;area&nbsp;code&nbsp;from&nbsp;the&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a><br>
passed&nbsp;in,&nbsp;so&nbsp;that&nbsp;clients&nbsp;could&nbsp;use&nbsp;it&nbsp;to&nbsp;split&nbsp;a&nbsp;national&nbsp;significant<br>
number&nbsp;into&nbsp;geographical&nbsp;area&nbsp;code&nbsp;and&nbsp;subscriber&nbsp;number.&nbsp;It&nbsp;works&nbsp;in&nbsp;such<br>
a&nbsp;way&nbsp;that&nbsp;the&nbsp;resultant&nbsp;subscriber&nbsp;number&nbsp;should&nbsp;be&nbsp;diallable,&nbsp;at&nbsp;least<br>
on&nbsp;some&nbsp;devices.&nbsp;An&nbsp;example&nbsp;of&nbsp;how&nbsp;this&nbsp;could&nbsp;be&nbsp;used:<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;import&nbsp;phonenumbers<br>
&gt;&gt;&gt;&nbsp;numobj&nbsp;=&nbsp;phonenumbers.<a href="#-parse">parse</a>("16502530000",&nbsp;"US")<br>
&gt;&gt;&gt;&nbsp;nsn&nbsp;=&nbsp;phonenumbers.<a href="#-national_significant_number">national_significant_number</a>(numobj)<br>
&gt;&gt;&gt;&nbsp;ac_len&nbsp;=&nbsp;phonenumbers.<a href="#-length_of_geographical_area_code">length_of_geographical_area_code</a>(numobj)<br>
&gt;&gt;&gt;&nbsp;if&nbsp;ac_len&nbsp;&gt;&nbsp;0:<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;area_code&nbsp;=&nbsp;nsn[:ac_len]<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;subscriber_number&nbsp;=&nbsp;nsn[ac_len:]<br>
...&nbsp;else:<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;area_code&nbsp;=&nbsp;""<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;subscriber_number&nbsp;=&nbsp;nsn<br>
&nbsp;<br>
N.B.:&nbsp;area&nbsp;code&nbsp;is&nbsp;a&nbsp;very&nbsp;ambiguous&nbsp;concept,&nbsp;so&nbsp;the&nbsp;I18N&nbsp;team&nbsp;generally<br>
recommends&nbsp;against&nbsp;using&nbsp;it&nbsp;for&nbsp;most&nbsp;purposes,&nbsp;but&nbsp;recommends&nbsp;using&nbsp;the<br>
more&nbsp;general&nbsp;national_number&nbsp;instead.&nbsp;Read&nbsp;the&nbsp;following&nbsp;carefully&nbsp;before<br>
deciding&nbsp;to&nbsp;use&nbsp;this&nbsp;method:<br>
&nbsp;<br>
&nbsp;-&nbsp;geographical&nbsp;area&nbsp;codes&nbsp;change&nbsp;over&nbsp;time,&nbsp;and&nbsp;this&nbsp;method&nbsp;honors&nbsp;those<br>
&nbsp;&nbsp;&nbsp;changes;&nbsp;therefore,&nbsp;it&nbsp;doesn't&nbsp;guarantee&nbsp;the&nbsp;stability&nbsp;of&nbsp;the&nbsp;result&nbsp;it<br>
&nbsp;&nbsp;&nbsp;produces.<br>
&nbsp;-&nbsp;subscriber&nbsp;numbers&nbsp;may&nbsp;not&nbsp;be&nbsp;diallable&nbsp;from&nbsp;all&nbsp;devices&nbsp;(notably<br>
&nbsp;&nbsp;&nbsp;mobile&nbsp;devices,&nbsp;which&nbsp;typically&nbsp;require&nbsp;the&nbsp;full&nbsp;national_number&nbsp;to&nbsp;be<br>
&nbsp;&nbsp;&nbsp;dialled&nbsp;in&nbsp;most&nbsp;countries).<br>
&nbsp;-&nbsp;most&nbsp;non-geographical&nbsp;numbers&nbsp;have&nbsp;no&nbsp;area&nbsp;codes,&nbsp;including&nbsp;numbers<br>
&nbsp;&nbsp;&nbsp;from&nbsp;non-geographical&nbsp;entities.<br>
&nbsp;-&nbsp;some&nbsp;geographical&nbsp;numbers&nbsp;have&nbsp;no&nbsp;area&nbsp;codes.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;to&nbsp;find&nbsp;the&nbsp;length&nbsp;of&nbsp;the&nbsp;area&nbsp;code&nbsp;form.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;length&nbsp;of&nbsp;area&nbsp;code&nbsp;of&nbsp;the&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in.</tt></dd></dl>
 <dl><dt><a name="-length_of_national_destination_code"><strong>length_of_national_destination_code</strong></a>(numobj)</dt><dd><tt>Return&nbsp;length&nbsp;of&nbsp;the&nbsp;national&nbsp;destination&nbsp;code&nbsp;code&nbsp;for&nbsp;a&nbsp;number.<br>
&nbsp;<br>
Gets&nbsp;the&nbsp;length&nbsp;of&nbsp;the&nbsp;national&nbsp;destination&nbsp;code&nbsp;(NDC)&nbsp;from&nbsp;the<br>
<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in,&nbsp;so&nbsp;that&nbsp;clients&nbsp;could&nbsp;use&nbsp;it&nbsp;to&nbsp;split&nbsp;a<br>
national&nbsp;significant&nbsp;number&nbsp;into&nbsp;NDC&nbsp;and&nbsp;subscriber&nbsp;number.&nbsp;The&nbsp;NDC&nbsp;of&nbsp;a<br>
phone&nbsp;number&nbsp;is&nbsp;normally&nbsp;the&nbsp;first&nbsp;group&nbsp;of&nbsp;digit(s)&nbsp;right&nbsp;after&nbsp;the<br>
country&nbsp;calling&nbsp;code&nbsp;when&nbsp;the&nbsp;number&nbsp;is&nbsp;formatted&nbsp;in&nbsp;the&nbsp;international<br>
format,&nbsp;if&nbsp;there&nbsp;is&nbsp;a&nbsp;subscriber&nbsp;number&nbsp;part&nbsp;that&nbsp;follows.<br>
&nbsp;<br>
N.B.:&nbsp;similar&nbsp;to&nbsp;an&nbsp;area&nbsp;code,&nbsp;not&nbsp;all&nbsp;numbers&nbsp;have&nbsp;an&nbsp;NDC!<br>
&nbsp;<br>
An&nbsp;example&nbsp;of&nbsp;how&nbsp;this&nbsp;could&nbsp;be&nbsp;used:<br>
&nbsp;<br>
&gt;&gt;&gt;&nbsp;import&nbsp;phonenumbers<br>
&gt;&gt;&gt;&nbsp;numobj&nbsp;=&nbsp;phonenumbers.<a href="#-parse">parse</a>("18002530000",&nbsp;"US")<br>
&gt;&gt;&gt;&nbsp;nsn&nbsp;=&nbsp;phonenumbers.<a href="#-national_significant_number">national_significant_number</a>(numobj)<br>
&gt;&gt;&gt;&nbsp;ndc_len&nbsp;=&nbsp;phonenumbers.<a href="#-length_of_national_destination_code">length_of_national_destination_code</a>(numobj)<br>
&gt;&gt;&gt;&nbsp;if&nbsp;ndc_len&nbsp;&gt;&nbsp;0:<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;national_destination_code&nbsp;=&nbsp;nsn[:ndc_len]<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;subscriber_number&nbsp;=&nbsp;nsn[ndc_len:]<br>
...&nbsp;else:<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;national_destination_code&nbsp;=&nbsp;""<br>
...&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;subscriber_number&nbsp;=&nbsp;nsn<br>
&nbsp;<br>
Refer&nbsp;to&nbsp;the&nbsp;unittests&nbsp;to&nbsp;see&nbsp;the&nbsp;difference&nbsp;between&nbsp;this&nbsp;function&nbsp;and<br>
length_of_geographical_area_code.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;to&nbsp;find&nbsp;the&nbsp;length&nbsp;of&nbsp;the&nbsp;NDC&nbsp;from.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;length&nbsp;of&nbsp;NDC&nbsp;of&nbsp;the&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in,&nbsp;which<br>
could&nbsp;be&nbsp;zero.</tt></dd></dl>
 <dl><dt><a name="-national_significant_number"><strong>national_significant_number</strong></a>(numobj)</dt><dd><tt>Gets&nbsp;the&nbsp;national&nbsp;significant&nbsp;number&nbsp;of&nbsp;a&nbsp;phone&nbsp;number.<br>
&nbsp;<br>
Note&nbsp;that&nbsp;a&nbsp;national&nbsp;significant&nbsp;number&nbsp;doesn't&nbsp;contain&nbsp;a&nbsp;national&nbsp;prefix<br>
or&nbsp;any&nbsp;formatting.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;for&nbsp;which&nbsp;the&nbsp;national&nbsp;significant&nbsp;number<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is&nbsp;needed.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;national&nbsp;significant&nbsp;number&nbsp;of&nbsp;the&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed<br>
in.</tt></dd></dl>
 <dl><dt><a name="-ndd_prefix_for_region"><strong>ndd_prefix_for_region</strong></a>(region_code, strip_non_digits)</dt><dd><tt>Returns&nbsp;the&nbsp;national&nbsp;dialling&nbsp;prefix&nbsp;for&nbsp;a&nbsp;specific&nbsp;region.<br>
&nbsp;<br>
For&nbsp;example,&nbsp;this&nbsp;would&nbsp;be&nbsp;1&nbsp;for&nbsp;the&nbsp;United&nbsp;States,&nbsp;and&nbsp;0&nbsp;for&nbsp;New<br>
Zealand.&nbsp;Set&nbsp;strip_non_digits&nbsp;to&nbsp;True&nbsp;to&nbsp;strip&nbsp;symbols&nbsp;like&nbsp;"~"&nbsp;(which<br>
indicates&nbsp;a&nbsp;wait&nbsp;for&nbsp;a&nbsp;dialling&nbsp;tone)&nbsp;from&nbsp;the&nbsp;prefix&nbsp;returned.&nbsp;If&nbsp;no<br>
national&nbsp;prefix&nbsp;is&nbsp;present,&nbsp;we&nbsp;return&nbsp;None.<br>
&nbsp;<br>
Warning:&nbsp;Do&nbsp;not&nbsp;use&nbsp;this&nbsp;method&nbsp;for&nbsp;do-your-own&nbsp;formatting&nbsp;-&nbsp;for&nbsp;some<br>
regions,&nbsp;the&nbsp;national&nbsp;dialling&nbsp;prefix&nbsp;is&nbsp;used&nbsp;only&nbsp;for&nbsp;certain&nbsp;types&nbsp;of<br>
numbers.&nbsp;Use&nbsp;the&nbsp;library's&nbsp;formatting&nbsp;functions&nbsp;to&nbsp;prefix&nbsp;the&nbsp;national<br>
prefix&nbsp;when&nbsp;required.<br>
&nbsp;<br>
Arguments:<br>
region_code&nbsp;--&nbsp;The&nbsp;region&nbsp;that&nbsp;we&nbsp;want&nbsp;to&nbsp;get&nbsp;the&nbsp;dialling&nbsp;prefix&nbsp;for.<br>
strip_non_digits&nbsp;--&nbsp;whether&nbsp;to&nbsp;strip&nbsp;non-digits&nbsp;from&nbsp;the&nbsp;national<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dialling&nbsp;prefix.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;dialling&nbsp;prefix&nbsp;for&nbsp;the&nbsp;region&nbsp;denoted&nbsp;by&nbsp;region_code.</tt></dd></dl>
 <dl><dt><a name="-normalize_diallable_chars_only"><strong>normalize_diallable_chars_only</strong></a>(number)</dt><dd><tt>Normalizes&nbsp;a&nbsp;string&nbsp;of&nbsp;characters&nbsp;representing&nbsp;a&nbsp;phone&nbsp;number.<br>
&nbsp;<br>
This&nbsp;strips&nbsp;all&nbsp;characters&nbsp;which&nbsp;are&nbsp;not&nbsp;diallable&nbsp;on&nbsp;a&nbsp;mobile&nbsp;phone<br>
keypad&nbsp;(including&nbsp;all&nbsp;non-ASCII&nbsp;digits).<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;a&nbsp;string&nbsp;of&nbsp;characters&nbsp;representing&nbsp;a&nbsp;phone&nbsp;number<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;normalized&nbsp;string&nbsp;version&nbsp;of&nbsp;the&nbsp;phone&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-normalize_digits_only"><strong>normalize_digits_only</strong></a>(number, keep_non_digits=False)</dt><dd><tt>Normalizes&nbsp;a&nbsp;string&nbsp;of&nbsp;characters&nbsp;representing&nbsp;a&nbsp;phone&nbsp;number.<br>
&nbsp;<br>
This&nbsp;converts&nbsp;wide-ascii&nbsp;and&nbsp;arabic-indic&nbsp;numerals&nbsp;to&nbsp;European&nbsp;numerals,<br>
and&nbsp;strips&nbsp;punctuation&nbsp;and&nbsp;alpha&nbsp;characters&nbsp;(optional).<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;a&nbsp;string&nbsp;representing&nbsp;a&nbsp;phone&nbsp;number<br>
keep_non_digits&nbsp;--&nbsp;whether&nbsp;to&nbsp;keep&nbsp;non-digits<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;normalized&nbsp;string&nbsp;version&nbsp;of&nbsp;the&nbsp;phone&nbsp;number.</tt></dd></dl>
 <dl><dt><a name="-number_type"><strong>number_type</strong></a>(numobj)</dt><dd><tt>Gets&nbsp;the&nbsp;type&nbsp;of&nbsp;a&nbsp;valid&nbsp;phone&nbsp;number.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;that&nbsp;we&nbsp;want&nbsp;to&nbsp;know&nbsp;the&nbsp;type&nbsp;of.<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;type&nbsp;of&nbsp;the&nbsp;phone&nbsp;number,&nbsp;as&nbsp;a&nbsp;<a href="#PhoneNumberType">PhoneNumberType</a>&nbsp;value;<br>
returns&nbsp;<a href="#PhoneNumberType">PhoneNumberType</a>.UNKNOWN&nbsp;if&nbsp;it&nbsp;is&nbsp;invalid.</tt></dd></dl>
 <dl><dt><a name="-parse"><strong>parse</strong></a>(number, region=None, keep_raw_input=False, numobj=None, _check_region=True)</dt><dd><tt>Parse&nbsp;a&nbsp;string&nbsp;and&nbsp;return&nbsp;a&nbsp;corresponding&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>.<br>
&nbsp;<br>
The&nbsp;method&nbsp;is&nbsp;quite&nbsp;lenient&nbsp;and&nbsp;looks&nbsp;for&nbsp;a&nbsp;number&nbsp;in&nbsp;the&nbsp;input&nbsp;text<br>
(raw&nbsp;input)&nbsp;and&nbsp;does&nbsp;not&nbsp;check&nbsp;whether&nbsp;the&nbsp;string&nbsp;is&nbsp;definitely&nbsp;only&nbsp;a<br>
phone&nbsp;number.&nbsp;To&nbsp;do&nbsp;this,&nbsp;it&nbsp;ignores&nbsp;punctuation&nbsp;and&nbsp;white-space,&nbsp;as<br>
well&nbsp;as&nbsp;any&nbsp;text&nbsp;before&nbsp;the&nbsp;number&nbsp;(e.g.&nbsp;a&nbsp;leading&nbsp;"Tel:&nbsp;")&nbsp;and&nbsp;trims<br>
the&nbsp;non-number&nbsp;bits.&nbsp;&nbsp;It&nbsp;will&nbsp;accept&nbsp;a&nbsp;number&nbsp;in&nbsp;any&nbsp;format&nbsp;(E164,<br>
national,&nbsp;international&nbsp;etc),&nbsp;assuming&nbsp;it&nbsp;can&nbsp;be&nbsp;interpreted&nbsp;with&nbsp;the<br>
defaultRegion&nbsp;supplied.&nbsp;It&nbsp;also&nbsp;attempts&nbsp;to&nbsp;convert&nbsp;any&nbsp;alpha&nbsp;characters<br>
into&nbsp;digits&nbsp;if&nbsp;it&nbsp;thinks&nbsp;this&nbsp;is&nbsp;a&nbsp;vanity&nbsp;number&nbsp;of&nbsp;the&nbsp;type&nbsp;"1800<br>
MICROSOFT".<br>
&nbsp;<br>
This&nbsp;method&nbsp;will&nbsp;throw&nbsp;a&nbsp;<a href="#NumberParseException">NumberParseException</a>&nbsp;if&nbsp;the&nbsp;number&nbsp;is&nbsp;not<br>
considered&nbsp;to&nbsp;be&nbsp;a&nbsp;possible&nbsp;number.&nbsp;Note&nbsp;that&nbsp;validation&nbsp;of&nbsp;whether&nbsp;the<br>
number&nbsp;is&nbsp;actually&nbsp;a&nbsp;valid&nbsp;number&nbsp;for&nbsp;a&nbsp;particular&nbsp;region&nbsp;is&nbsp;not<br>
performed.&nbsp;This&nbsp;can&nbsp;be&nbsp;done&nbsp;separately&nbsp;with&nbsp;is_valid_number.<br>
&nbsp;<br>
Note&nbsp;this&nbsp;method&nbsp;canonicalizes&nbsp;the&nbsp;phone&nbsp;number&nbsp;such&nbsp;that&nbsp;different<br>
representations&nbsp;can&nbsp;be&nbsp;easily&nbsp;compared,&nbsp;no&nbsp;matter&nbsp;what&nbsp;form&nbsp;it&nbsp;was<br>
originally&nbsp;entered&nbsp;in&nbsp;(e.g.&nbsp;national,&nbsp;international).&nbsp;If&nbsp;you&nbsp;want&nbsp;to<br>
record&nbsp;context&nbsp;about&nbsp;the&nbsp;number&nbsp;being&nbsp;parsed,&nbsp;such&nbsp;as&nbsp;the&nbsp;raw&nbsp;input&nbsp;that<br>
was&nbsp;entered,&nbsp;how&nbsp;the&nbsp;country&nbsp;code&nbsp;was&nbsp;derived&nbsp;etc.&nbsp;then&nbsp;ensure<br>
keep_raw_input&nbsp;is&nbsp;set.<br>
&nbsp;<br>
Note&nbsp;if&nbsp;any&nbsp;new&nbsp;field&nbsp;is&nbsp;added&nbsp;to&nbsp;this&nbsp;method&nbsp;that&nbsp;should&nbsp;always&nbsp;be&nbsp;filled<br>
in,&nbsp;even&nbsp;when&nbsp;keep_raw_input&nbsp;is&nbsp;False,&nbsp;it&nbsp;should&nbsp;also&nbsp;be&nbsp;handled&nbsp;in&nbsp;the<br>
_copy_core_fields_only()&nbsp;function.<br>
&nbsp;<br>
Arguments:<br>
number&nbsp;--&nbsp;The&nbsp;number&nbsp;that&nbsp;we&nbsp;are&nbsp;attempting&nbsp;to&nbsp;parse.&nbsp;This&nbsp;can<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;contain&nbsp;formatting&nbsp;such&nbsp;as&nbsp;+,&nbsp;(&nbsp;and&nbsp;-,&nbsp;as&nbsp;well&nbsp;as&nbsp;a&nbsp;phone<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;number&nbsp;extension.&nbsp;It&nbsp;can&nbsp;also&nbsp;be&nbsp;provided&nbsp;in&nbsp;<a href="http://www.rfc-editor.org/rfc/rfc3966.txt">RFC3966</a>&nbsp;format.<br>
region&nbsp;--&nbsp;The&nbsp;region&nbsp;that&nbsp;we&nbsp;are&nbsp;expecting&nbsp;the&nbsp;number&nbsp;to&nbsp;be&nbsp;from.&nbsp;This<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;is&nbsp;only&nbsp;used&nbsp;if&nbsp;the&nbsp;number&nbsp;being&nbsp;parsed&nbsp;is&nbsp;not&nbsp;written&nbsp;in<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;international&nbsp;format.&nbsp;The&nbsp;country_code&nbsp;for&nbsp;the&nbsp;number&nbsp;in<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;this&nbsp;case&nbsp;would&nbsp;be&nbsp;stored&nbsp;as&nbsp;that&nbsp;of&nbsp;the&nbsp;default&nbsp;region<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;supplied.&nbsp;If&nbsp;the&nbsp;number&nbsp;is&nbsp;guaranteed&nbsp;to&nbsp;start&nbsp;with&nbsp;a&nbsp;'+'<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;followed&nbsp;by&nbsp;the&nbsp;country&nbsp;calling&nbsp;code,&nbsp;then&nbsp;None&nbsp;or<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UNKNOWN_REGION&nbsp;can&nbsp;be&nbsp;supplied.<br>
keep_raw_input&nbsp;--&nbsp;Whether&nbsp;to&nbsp;populate&nbsp;the&nbsp;raw_input&nbsp;field&nbsp;of&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;with&nbsp;number&nbsp;(as&nbsp;well&nbsp;as&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;country_code_source&nbsp;field).<br>
numobj&nbsp;--&nbsp;An&nbsp;optional&nbsp;existing&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;to&nbsp;receive&nbsp;the<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;parsing&nbsp;results<br>
_check_region&nbsp;--&nbsp;Whether&nbsp;to&nbsp;check&nbsp;the&nbsp;supplied&nbsp;region&nbsp;parameter;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;should&nbsp;always&nbsp;be&nbsp;True&nbsp;for&nbsp;external&nbsp;callers.<br>
&nbsp;<br>
Returns&nbsp;a&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;filled&nbsp;with&nbsp;the&nbsp;parse&nbsp;number.<br>
&nbsp;<br>
Raises:<br>
<a href="#NumberParseException">NumberParseException</a>&nbsp;if&nbsp;the&nbsp;string&nbsp;is&nbsp;not&nbsp;considered&nbsp;to&nbsp;be&nbsp;a&nbsp;viable<br>
phone&nbsp;number&nbsp;(e.g.&nbsp;&nbsp;too&nbsp;few&nbsp;or&nbsp;too&nbsp;many&nbsp;digits)&nbsp;or&nbsp;if&nbsp;no&nbsp;default<br>
region&nbsp;was&nbsp;supplied&nbsp;and&nbsp;the&nbsp;number&nbsp;is&nbsp;not&nbsp;in&nbsp;international&nbsp;format<br>
(does&nbsp;not&nbsp;start&nbsp;with&nbsp;+).</tt></dd></dl>
 <dl><dt><a name="-region_code_for_country_code"><strong>region_code_for_country_code</strong></a>(country_code)</dt><dd><tt>Returns&nbsp;the&nbsp;region&nbsp;code&nbsp;that&nbsp;matches&nbsp;a&nbsp;specific&nbsp;country&nbsp;calling&nbsp;code.<br>
&nbsp;<br>
In&nbsp;the&nbsp;case&nbsp;of&nbsp;no&nbsp;region&nbsp;code&nbsp;being&nbsp;found,&nbsp;UNKNOWN_REGION&nbsp;('ZZ')&nbsp;will&nbsp;be<br>
returned.&nbsp;In&nbsp;the&nbsp;case&nbsp;of&nbsp;multiple&nbsp;regions,&nbsp;the&nbsp;one&nbsp;designated&nbsp;in&nbsp;the<br>
metadata&nbsp;as&nbsp;the&nbsp;"main"&nbsp;region&nbsp;for&nbsp;this&nbsp;calling&nbsp;code&nbsp;will&nbsp;be&nbsp;returned.&nbsp;&nbsp;If<br>
the&nbsp;country_code&nbsp;entered&nbsp;is&nbsp;valid&nbsp;but&nbsp;doesn't&nbsp;match&nbsp;a&nbsp;specific&nbsp;region<br>
(such&nbsp;as&nbsp;in&nbsp;the&nbsp;case&nbsp;of&nbsp;non-geographical&nbsp;calling&nbsp;codes&nbsp;like&nbsp;800)&nbsp;the&nbsp;value<br>
"001"&nbsp;will&nbsp;be&nbsp;returned&nbsp;(corresponding&nbsp;to&nbsp;the&nbsp;value&nbsp;for&nbsp;World&nbsp;in&nbsp;the&nbsp;UN<br>
M.49&nbsp;schema).</tt></dd></dl>
 <dl><dt><a name="-region_code_for_number"><strong>region_code_for_number</strong></a>(numobj)</dt><dd><tt>Returns&nbsp;the&nbsp;region&nbsp;where&nbsp;a&nbsp;phone&nbsp;number&nbsp;is&nbsp;from.<br>
&nbsp;<br>
This&nbsp;could&nbsp;be&nbsp;used&nbsp;for&nbsp;geocoding&nbsp;at&nbsp;the&nbsp;region&nbsp;level.&nbsp;Only&nbsp;guarantees<br>
correct&nbsp;results&nbsp;for&nbsp;valid,&nbsp;full&nbsp;numbers&nbsp;(not&nbsp;short-codes,&nbsp;or&nbsp;invalid<br>
numbers).<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;The&nbsp;phone&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;whose&nbsp;origin&nbsp;we&nbsp;want&nbsp;to&nbsp;know<br>
&nbsp;<br>
Returns&nbsp;the&nbsp;region&nbsp;where&nbsp;the&nbsp;phone&nbsp;number&nbsp;is&nbsp;from,&nbsp;or&nbsp;None&nbsp;if&nbsp;no&nbsp;region<br>
matches&nbsp;this&nbsp;calling&nbsp;code.</tt></dd></dl>
 <dl><dt><a name="-region_codes_for_country_code"><strong>region_codes_for_country_code</strong></a>(country_code)</dt><dd><tt>Returns&nbsp;a&nbsp;list&nbsp;with&nbsp;the&nbsp;region&nbsp;codes&nbsp;that&nbsp;match&nbsp;the&nbsp;specific&nbsp;country&nbsp;calling&nbsp;code.<br>
&nbsp;<br>
For&nbsp;non-geographical&nbsp;country&nbsp;calling&nbsp;codes,&nbsp;the&nbsp;region&nbsp;code&nbsp;001&nbsp;is<br>
returned.&nbsp;Also,&nbsp;in&nbsp;the&nbsp;case&nbsp;of&nbsp;no&nbsp;region&nbsp;code&nbsp;being&nbsp;found,&nbsp;an&nbsp;empty<br>
list&nbsp;is&nbsp;returned.</tt></dd></dl>
 <dl><dt><a name="-supported_calling_codes"><strong>supported_calling_codes</strong></a>()</dt><dd><tt>Returns&nbsp;all&nbsp;country&nbsp;calling&nbsp;codes&nbsp;the&nbsp;library&nbsp;has&nbsp;metadata&nbsp;for,&nbsp;covering<br>
both&nbsp;non-geographical&nbsp;entities&nbsp;(global&nbsp;network&nbsp;calling&nbsp;codes)&nbsp;and&nbsp;those<br>
used&nbsp;for&nbsp;geographical&nbsp;entities.&nbsp;This&nbsp;could&nbsp;be&nbsp;used&nbsp;to&nbsp;populate&nbsp;a&nbsp;drop-down<br>
box&nbsp;of&nbsp;country&nbsp;calling&nbsp;codes&nbsp;for&nbsp;a&nbsp;phone-number&nbsp;widget,&nbsp;for&nbsp;instance.<br>
&nbsp;<br>
Returns&nbsp;an&nbsp;unordered&nbsp;set&nbsp;of&nbsp;the&nbsp;country&nbsp;calling&nbsp;codes&nbsp;for&nbsp;every&nbsp;geographica<br>
and&nbsp;non-geographical&nbsp;entity&nbsp;the&nbsp;library&nbsp;supports.</tt></dd></dl>
 <dl><dt><a name="-supported_types_for_non_geo_entity"><strong>supported_types_for_non_geo_entity</strong></a>(country_code)</dt><dd><tt>Returns&nbsp;the&nbsp;types&nbsp;for&nbsp;a&nbsp;country-code&nbsp;belonging&nbsp;to&nbsp;a&nbsp;non-geographical&nbsp;entity<br>
which&nbsp;the&nbsp;library&nbsp;has&nbsp;metadata&nbsp;for.&nbsp;Will&nbsp;not&nbsp;include&nbsp;FIXED_LINE_OR_MOBILE<br>
(if&nbsp;numbers&nbsp;for&nbsp;this&nbsp;non-geographical&nbsp;entity&nbsp;could&nbsp;be&nbsp;classified&nbsp;as<br>
FIXED_LINE_OR_MOBILE,&nbsp;both&nbsp;FIXED_LINE&nbsp;and&nbsp;MOBILE&nbsp;would&nbsp;be&nbsp;present)&nbsp;and<br>
UNKNOWN.<br>
&nbsp;<br>
No&nbsp;types&nbsp;will&nbsp;be&nbsp;returned&nbsp;for&nbsp;country&nbsp;calling&nbsp;codes&nbsp;that&nbsp;do&nbsp;not&nbsp;map&nbsp;to&nbsp;a<br>
known&nbsp;non-geographical&nbsp;entity.</tt></dd></dl>
 <dl><dt><a name="-supported_types_for_region"><strong>supported_types_for_region</strong></a>(region_code)</dt><dd><tt>Returns&nbsp;the&nbsp;types&nbsp;for&nbsp;a&nbsp;given&nbsp;region&nbsp;which&nbsp;the&nbsp;library&nbsp;has&nbsp;metadata&nbsp;for.<br>
&nbsp;<br>
Will&nbsp;not&nbsp;include&nbsp;FIXED_LINE_OR_MOBILE&nbsp;(if&nbsp;numbers&nbsp;in&nbsp;this&nbsp;region&nbsp;could<br>
be&nbsp;classified&nbsp;as&nbsp;FIXED_LINE_OR_MOBILE,&nbsp;both&nbsp;FIXED_LINE&nbsp;and&nbsp;MOBILE&nbsp;would<br>
be&nbsp;present)&nbsp;and&nbsp;UNKNOWN.<br>
&nbsp;<br>
No&nbsp;types&nbsp;will&nbsp;be&nbsp;returned&nbsp;for&nbsp;invalid&nbsp;or&nbsp;unknown&nbsp;region&nbsp;codes.</tt></dd></dl>
 <dl><dt><a name="-truncate_too_long_number"><strong>truncate_too_long_number</strong></a>(numobj)</dt><dd><tt>Truncate&nbsp;a&nbsp;number&nbsp;<a href="builtins.html#object">object</a>&nbsp;that&nbsp;is&nbsp;too&nbsp;long.<br>
&nbsp;<br>
Attempts&nbsp;to&nbsp;extract&nbsp;a&nbsp;valid&nbsp;number&nbsp;from&nbsp;a&nbsp;phone&nbsp;number&nbsp;that&nbsp;is&nbsp;too&nbsp;long<br>
to&nbsp;be&nbsp;valid,&nbsp;and&nbsp;resets&nbsp;the&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in&nbsp;to&nbsp;that&nbsp;valid<br>
version.&nbsp;If&nbsp;no&nbsp;valid&nbsp;number&nbsp;could&nbsp;be&nbsp;extracted,&nbsp;the&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a><br>
passed&nbsp;in&nbsp;will&nbsp;not&nbsp;be&nbsp;modified.<br>
&nbsp;<br>
Arguments:<br>
numobj&nbsp;--&nbsp;A&nbsp;<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;which&nbsp;contains&nbsp;a&nbsp;number&nbsp;that&nbsp;is&nbsp;too&nbsp;long&nbsp;to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;be&nbsp;valid.<br>
&nbsp;<br>
Returns&nbsp;True&nbsp;if&nbsp;a&nbsp;valid&nbsp;phone&nbsp;number&nbsp;can&nbsp;be&nbsp;successfully&nbsp;extracted.</tt></dd></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>COUNTRY_CODES_FOR_NON_GEO_REGIONS</strong> = {800, 808, 870, 878, 881, 882, ...}<br>
<strong>COUNTRY_CODE_TO_REGION_CODE</strong> = {1: ('US', 'AG', 'AI', 'AS', 'BB', 'BM', 'BS', 'CA', 'DM', 'DO', 'GD', 'GU', 'JM', 'KN', 'KY', 'LC', 'MP', 'MS', 'PR', 'SX', ...), 7: ('RU', 'KZ'), 20: ('EG',), 27: ('ZA',), 30: ('GR',), 31: ('NL',), 32: ('BE',), 33: ('FR',), 34: ('ES',), 36: ('HU',), ...}<br>
<strong>NON_DIGITS_PATTERN</strong> = re.compile('(?:\\D+)')<br>
<strong>REGION_CODE_FOR_NON_GEO_ENTITY</strong> = '001'<br>
<strong>SUPPORTED_REGIONS</strong> = {'AC', 'AD', 'AE', 'AF', 'AG', 'AI', ...}<br>
<strong>SUPPORTED_SHORT_REGIONS</strong> = ['AC', 'AD', 'AE', 'AF', 'AG', 'AI', 'AL', 'AM', 'AO', 'AR', 'AS', 'AT', 'AU', 'AW', 'AX', 'AZ', 'BA', 'BB', 'BD', 'BE', ...]<br>
<strong>UNKNOWN_REGION</strong> = 'ZZ'<br>
<strong>__all__</strong> = ['PhoneNumber', 'CountryCodeSource', 'FrozenPhoneNumber', 'REGION_CODE_FOR_NON_GEO_ENTITY', 'NumberFormat', 'PhoneNumberDesc', 'PhoneMetadata', 'AsYouTypeFormatter', 'COUNTRY_CODE_TO_REGION_CODE', 'SUPPORTED_REGIONS', 'UNKNOWN_REGION', 'COUNTRY_CODES_FOR_NON_GEO_REGIONS', 'NON_DIGITS_PATTERN', 'MatchType', 'NumberParseException', 'PhoneNumberFormat', 'PhoneNumberType', 'ValidationResult', 'can_be_internationally_dialled', 'convert_alpha_characters_in_number', ...]</td></tr></table>
</body></html>