Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fst 20231227 #9

Closed
wants to merge 170 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
2dda137
Merge metadata changes from upstream 8.12.44
daviddrysdale Feb 25, 2022
81027e3
Generated files for metadata
daviddrysdale Feb 25, 2022
821454c
Prep for 8.12.44 release
daviddrysdale Feb 25, 2022
214fcb1
Merge metadata changes from upstream 8.12.45
daviddrysdale Mar 11, 2022
c3b6d23
Generated files for metadata
daviddrysdale Mar 11, 2022
6db6ffa
Prep for 8.12.45 release
daviddrysdale Mar 11, 2022
1338d6c
Merge metadata changes from upstream 8.12.46
daviddrysdale Apr 1, 2022
0e0ca00
Generated files for metadata
daviddrysdale Apr 1, 2022
f92246d
Prep for 8.12.46 release
daviddrysdale Apr 1, 2022
d84e6c1
Merge metadata changes from upstream 8.12.47
daviddrysdale Apr 21, 2022
f06ff47
Generated files for metadata
daviddrysdale Apr 21, 2022
26655fc
Add extra tests from upstream
daviddrysdale Apr 21, 2022
4da649d
Prep for 8.12.47 release
daviddrysdale Apr 21, 2022
4d017ef
Merge metadata changes from upstream 8.12.48
daviddrysdale May 6, 2022
cf45cfb
Generated files for metadata
daviddrysdale May 6, 2022
a500e29
Prep for 8.12.48 release
daviddrysdale May 6, 2022
9761786
Merge metadata changes from upstream 8.12.49
daviddrysdale May 28, 2022
0bf4931
Generated files for metadata
daviddrysdale May 28, 2022
1405136
Prep for 8.12.49 release
daviddrysdale May 28, 2022
d3209ea
ci: pin protobuf dep in coverage.yml too
daviddrysdale May 28, 2022
0271114
tests: use assertIsNone in phonenumberutiltest.py (#242)
penmetsaa Jun 10, 2022
94931e0
Merge metadata changes from upstream 8.12.50
daviddrysdale Jun 10, 2022
d86771c
Generated files for metadata
daviddrysdale Jun 10, 2022
ec339e5
Prep for 8.12.50 release
daviddrysdale Jun 10, 2022
9055710
Merge code changes from upstream 8.12.51
daviddrysdale Jul 1, 2022
dfb476f
Merge metadata changes from upstream 8.12.51
daviddrysdale Jul 1, 2022
0319ba6
Generated files for metadata
daviddrysdale Jul 1, 2022
e896b61
Prep for 8.12.51 release
daviddrysdale Jul 1, 2022
8ef0fa4
ci: pin versions of dependencies
daviddrysdale Jul 1, 2022
3981d27
Merge metadata changes from upstream 8.12.52
daviddrysdale Jul 19, 2022
11cf84c
Generated files for metadata
daviddrysdale Jul 19, 2022
fdc02ac
Prep for 8.12.52 release
daviddrysdale Jul 19, 2022
0224550
Fix new lint from pycodestyle v2.9.0
daviddrysdale Jul 31, 2022
9c98d55
docs: Fix a few typos (#246)
timgates42 Jul 31, 2022
ee2fe76
Merge metadata changes from upstream 8.12.53
daviddrysdale Aug 4, 2022
c5cf1b0
Generated files for metadata
daviddrysdale Aug 4, 2022
f12e9ac
Prep for 8.12.53 release
daviddrysdale Aug 4, 2022
cd5886b
Merge metadata changes from upstream 8.12.54
daviddrysdale Aug 19, 2022
be45325
Generated files for metadata
daviddrysdale Aug 19, 2022
c2fe6f4
Prep for 8.12.54 release
daviddrysdale Aug 19, 2022
09a7204
Merge metadata changes from upstream 8.12.55
daviddrysdale Sep 9, 2022
751ce42
Generated files for metadata
daviddrysdale Sep 9, 2022
4af9941
Prep for 8.12.55 release
daviddrysdale Sep 9, 2022
334f9d1
Merge metadata changes from upstream 8.12.56
daviddrysdale Sep 24, 2022
4002dab
Generated files for metadata
daviddrysdale Sep 24, 2022
d08079c
Prep for 8.12.56 release
daviddrysdale Sep 24, 2022
79bbe0f
Merge metadata changes from upstream 8.12.57
daviddrysdale Oct 14, 2022
679a137
Generated files for metadata
daviddrysdale Oct 14, 2022
466e4c5
Prep for 8.12.57 release
daviddrysdale Oct 14, 2022
e97c76d
tools: don’t auto-regen locale data
daviddrysdale Nov 6, 2022
e610dc9
Merge metadata changes from upstream 8.13.0
daviddrysdale Nov 6, 2022
846d48c
Generated files for metadata
daviddrysdale Nov 6, 2022
fe2f0c1
Prep for 8.13.0 release
daviddrysdale Nov 6, 2022
5963b05
tools: don't use clean target in metaclean
daviddrysdale Nov 6, 2022
6bfb588
Merge metadata changes from upstream 8.13.1
daviddrysdale Nov 28, 2022
cf0bd82
Generated files for metadata
daviddrysdale Nov 28, 2022
9983353
Prep for 8.13.1 release
daviddrysdale Nov 28, 2022
71b6326
tests: deregister fake data afterwards (#255)
daviddrysdale Nov 30, 2022
3dba77a
Merge metadata changes from upstream 8.13.2
daviddrysdale Dec 8, 2022
3c76d07
Generated files for metadata
daviddrysdale Dec 8, 2022
68ec061
Prep for 8.13.2 release
daviddrysdale Dec 8, 2022
111b3db
Merge metadata changes from upstream 8.13.3
daviddrysdale Dec 22, 2022
b129b66
Generated files for metadata
daviddrysdale Dec 22, 2022
525bc01
Prep for 8.13.3 release
daviddrysdale Dec 22, 2022
220ab0b
tests: deregister fake data afterwards
daviddrysdale Jan 3, 2023
b3e8f97
Update copyright dates to 2023 in generated files
daviddrysdale Jan 3, 2023
dfc6e82
Merge metadata changes from upstream 8.13.4
daviddrysdale Jan 9, 2023
0681fa3
Generated files for metadata
daviddrysdale Jan 9, 2023
e6c0866
Prep for 8.13.4 release
daviddrysdale Jan 9, 2023
6c19ffb
chore(tests): add Python 3.11 in CI runs/trove classifier (#265)
stegayet Jan 24, 2023
1f13816
Merge metadata changes from upstream 8.13.5
daviddrysdale Jan 29, 2023
c760aa4
Generated files for metadata
daviddrysdale Jan 29, 2023
0c34b8a
Prep for 8.13.5 release
daviddrysdale Jan 29, 2023
6915d82
Merge metadata changes from upstream 8.13.6
daviddrysdale Feb 10, 2023
c3256b4
Generated files for metadata
daviddrysdale Feb 10, 2023
056702d
Prep for 8.13.6 release
daviddrysdale Feb 10, 2023
f79a987
Merge metadata changes from upstream 8.13.7
daviddrysdale Mar 3, 2023
5abcfbf
Generated files for metadata
daviddrysdale Mar 3, 2023
4d8fa31
Prep for 8.13.7 release
daviddrysdale Mar 3, 2023
cb25526
Merge metadata changes from upstream 8.13.8
daviddrysdale Mar 27, 2023
a2bb276
Generated files for metadata
daviddrysdale Mar 27, 2023
7e6378a
Merge code changes from upstream v8.13.8
daviddrysdale Mar 27, 2023
a60408d
Prep for 8.13.8 release
daviddrysdale Mar 27, 2023
f2f5a22
Merge metadata changes from upstream 8.13.9
daviddrysdale Apr 10, 2023
216dc62
Generated files for metadata
daviddrysdale Apr 10, 2023
56f8c3a
Prep for 8.13.9 release
daviddrysdale Apr 10, 2023
0b7a399
ci: move to ubuntu-20.04
daviddrysdale Apr 11, 2023
c464a74
Fix up doc comments
daviddrysdale Apr 18, 2023
19b9e52
Add CountryCodeSource.to_string() helper
daviddrysdale Apr 18, 2023
60389e4
Add local utility to simulate Java code results
daviddrysdale Apr 18, 2023
c9ecd77
appspot.py: add command line options
daviddrysdale Apr 18, 2023
8dd9d82
Tests for CountryCodeSource.to_string
daviddrysdale Apr 18, 2023
81c117a
Merge metadata changes from upstream 8.13.10
daviddrysdale Apr 18, 2023
e1dd7e5
Generated files for metadata
daviddrysdale Apr 18, 2023
a7a9796
Prep for 8.13.10 release
daviddrysdale Apr 18, 2023
5d48593
Merge metadata changes from upstream 8.13.11
daviddrysdale Apr 27, 2023
59f0ef6
Generated files for metadata
daviddrysdale Apr 27, 2023
653a6b5
Prep for 8.13.11 release
daviddrysdale Apr 27, 2023
76934f5
Merge metadata changes from upstream 8.13.12
daviddrysdale May 30, 2023
aea7e87
Generated files for metadata
daviddrysdale May 30, 2023
e4b0573
Prep for 8.13.12 release
daviddrysdale May 30, 2023
caeb8c6
Merge metadata changes from upstream 8.13.13
daviddrysdale May 30, 2023
a75b9ca
Generated files for metadata
daviddrysdale May 30, 2023
fbe4492
Prep for 8.13.13 release
daviddrysdale May 30, 2023
19f942a
Merge metadata changes from upstream 8.13.14
daviddrysdale Jun 13, 2023
71ff9c7
Generated files for metadata
daviddrysdale Jun 13, 2023
be79521
Prep for 8.13.14 release
daviddrysdale Jun 13, 2023
4649568
Merge metadata changes from upstream 8.13.15
daviddrysdale Jun 23, 2023
cf8f589
Generated files for metadata
daviddrysdale Jun 23, 2023
6541995
Prep for 8.13.15 release
daviddrysdale Jun 23, 2023
3452a50
ci: no python-2.7 in setup-python
daviddrysdale Jun 23, 2023
76b9648
Merge metadata changes from upstream 8.13.16
daviddrysdale Jul 10, 2023
2e61fc7
Generated files for metadata
daviddrysdale Jul 10, 2023
6a69bbd
Prep for 8.13.16 release
daviddrysdale Jul 10, 2023
d9c6705
Merge metadata changes from upstream 8.13.17
daviddrysdale Jul 21, 2023
4b25433
Generated files for metadata
daviddrysdale Jul 21, 2023
2cc6ae1
Prep for 8.13.17 release
daviddrysdale Jul 21, 2023
b41129d
Add a scheduled GitHub Action to check upstream version (#275)
jlaine Jul 24, 2023
177d99a
ci: fix upstream workflow filter
daviddrysdale Jul 24, 2023
793762c
Add missing enum to CountryCodeSource.to_string
daviddrysdale Jul 29, 2023
f68af85
appspot: match upstream output better
daviddrysdale Jul 29, 2023
a715dfd
Update generated docs
daviddrysdale Aug 3, 2023
f9a8d47
Merge metadata changes from upstream 8.13.18
daviddrysdale Aug 4, 2023
b96947d
Generated files for metadata
daviddrysdale Aug 4, 2023
6a34224
Prep for 8.13.18 release
daviddrysdale Aug 4, 2023
959aeab
ci: add Python 3.12 in test matrix (#278)
stegayet Aug 6, 2023
e6c7570
Added documentation link to README (#281)
jonesnc Aug 8, 2023
24f3fb0
Merge metadata changes from upstream 8.13.19
daviddrysdale Aug 22, 2023
bc610e7
Generated files for metadata
daviddrysdale Aug 22, 2023
2f06ef6
Prep for 8.13.19 release
daviddrysdale Aug 22, 2023
bcde858
Merge metadata changes from upstream 8.13.20
daviddrysdale Sep 7, 2023
7b54650
Generated files for metadata
daviddrysdale Sep 7, 2023
01bcacd
Prep for 8.13.20 release
daviddrysdale Sep 7, 2023
36312a3
Merge metadata changes from upstream 8.13.21
daviddrysdale Sep 20, 2023
03fdac5
Generated files for metadata
daviddrysdale Sep 20, 2023
edb942c
Prep for 8.13.21 release
daviddrysdale Sep 20, 2023
10ab246
Merge metadata changes from upstream 8.13.22
daviddrysdale Sep 29, 2023
bd5e083
Generated files for metadata
daviddrysdale Sep 29, 2023
0ef8128
Prep for 8.13.22 release
daviddrysdale Sep 29, 2023
95ba815
Merge metadata changes from upstream 8.13.23
daviddrysdale Oct 17, 2023
6febd4e
Generated files for metadata
daviddrysdale Oct 17, 2023
255da01
Prep for 8.13.23 release
daviddrysdale Oct 17, 2023
938292c
Merge metadata changes from upstream 8.13.24
daviddrysdale Oct 31, 2023
02ae8f0
Generated files for metadata
daviddrysdale Oct 31, 2023
5d19ef9
Prep for 8.13.24 release
daviddrysdale Oct 31, 2023
1877e88
Merge metadata changes from upstream 8.13.25
daviddrysdale Nov 14, 2023
c1fc96e
Generated files for metadata
daviddrysdale Nov 14, 2023
75b0de5
Prep for 8.13.25 release
daviddrysdale Nov 14, 2023
c08b169
Merge metadata changes from upstream 8.13.26
daviddrysdale Nov 23, 2023
44b61d7
Generated files for metadata
daviddrysdale Nov 23, 2023
1df6d7d
Prep for 8.13.26 release
daviddrysdale Nov 23, 2023
dc46a8e
Use re.fullmatch when available (#286)
Tasssadar Dec 5, 2023
070f7c6
coverage: exclude old fullmatch()
daviddrysdale Dec 5, 2023
7cd37bd
New Tests
rajpan Aug 26, 2019
f9ec117
New Tests
rajpan Aug 26, 2019
3498c65
Add Dialpadistan region
CoreyFirespotter Jul 31, 2018
5a5c8db
TEL-10934 - Unable To Dialpad Florida Number From Desktop & Mobile App
rajpan Feb 12, 2020
1df10a6
Changes for new NPA in Canada
rajpan Jul 1, 2020
dae4865
DP-13742: Fix to Indonesia toll free numbers
danadialpad Sep 20, 2018
5a5b687
TEL-12621 - Unable dial new Poland Police prefix +48 47 731 4848
rajpan Oct 15, 2020
99ca88e
Rename test file
rajpan Oct 15, 2020
7533704
TEL-13057 - Supporting new Number format for Ivory Coast
rajpan Jan 27, 2021
721bf48
Quarterly update
rajpan Jul 13, 2021
5661fbd
New Colombia format
rajpan Sep 7, 2021
1476a58
Fixing the Unit Tests for Region Dialpadistan
rajpan Sep 14, 2021
bb8fa88
fix for https://dialpad.atlassian.net/browse/DP-60739
hassan-dialpad Nov 18, 2022
31ef0ef
DP-67544:Issue with phone numbers not showing in CSR, but are in FST
JerinDialpad Mar 21, 2023
8af0973
Add test
JerinDialpad Jun 14, 2023
47432f9
Add DP test for area code 329
aickowicz-dp Dec 19, 2023
4858e38
Support new prefix for Nigeria
aickowicz-dp Dec 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 5 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,18 @@ permissions:
jobs:
build:

runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
python-version: [2.7, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10", pypy2, pypy3]
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11, 3.12, pypy2.7, pypy3.9]

steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@f38219332975fe8f9c04cca981d674bf22aea1d3 # v2
uses: actions/setup-python@61a6322f88396a6271a6ee3565807d608ecaddd1 # v4.7.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@629c2de402a417ea7690ca6ce3f33229e27606a5 # v2
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- name: Set up latest Python 3
uses: actions/setup-python@f38219332975fe8f9c04cca981d674bf22aea1d3 # v2
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4
with:
python-version: 3
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install protobuf pycodestyle coverage coveralls
pip install protobuf==3.17.3 pycodestyle coverage coveralls
- name: Test with coverage
run: |
cd python
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/typing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy==0.921 types-protobuf
pip install mypy==0.921 types-protobuf==3.19.21

- name: Execute run_stubtest.py
run: |
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mypy types-protobuf
pip install mypy==0.921 types-protobuf==3.19.21

- name: Run mypy
run: |
Expand Down
21 changes: 21 additions & 0 deletions .github/workflows/upstream.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Check libphonenumbers releases

on:
schedule:
- cron: '30 7,19 * * *' # Run daily at 07:30 and 19:30
workflow_dispatch:

jobs:
versioncheck:
runs-on: ubuntu-latest
if: github.repository_owner == 'daviddrysdale'
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3
- uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4
with:
python-version: 3
- name: Check upstream version
run: |
pip install -U pip
pip install requests
python3 tools/python/checkupstreamversion.py
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ Original Java code is Copyright (C) 2009-2015 The Libphonenumber Authors.
Release [HISTORY](https://github.com/daviddrysdale/python-phonenumbers/blob/dev/python/HISTORY.md),
derived from [upstream release notes](https://github.com/google/libphonenumber/blob/master/release_notes.txt).

[Documentation](https://daviddrysdale.github.io/python-phonenumbers/)

Installation
------------

Expand Down
4 changes: 2 additions & 2 deletions docs/phonenumbers.asyoutypeformatter.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
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>
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>
Expand Down Expand Up @@ -105,4 +105,4 @@
<td width="100%"><strong>REGION_CODE_FOR_NON_GEO_ENTITY</strong> = '001'<br>
<strong>U_EMPTY_STRING</strong> = ''<br>
<strong>U_SPACE</strong> = ' '</td></tr></table>
</body></html>
</body></html>
25 changes: 15 additions & 10 deletions docs/phonenumbers.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<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
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>phonenumbers</strong></big></big> (version 8.13.17)</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>
Expand Down Expand Up @@ -162,7 +162,7 @@
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>
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>
Expand Down Expand Up @@ -208,7 +208,11 @@
<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>
<td width="100%">Class methods defined here:<br>
<dl><dt><a name="CountryCodeSource-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="#CountryCodeSource">CountryCodeSource</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>
Expand Down Expand Up @@ -1082,14 +1086,15 @@
&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>
<dl><dt><a name="-format_in_original_format"><strong>format_in_original_format</strong></a>(numobj, region_calling_from)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;using&nbsp;the&nbsp;original&nbsp;phone&nbsp;number&nbsp;format<br>
(e.g.&nbsp;INTERNATIONAL&nbsp;or&nbsp;NATIONAL)&nbsp;that&nbsp;the&nbsp;number&nbsp;is&nbsp;parsed&nbsp;from,&nbsp;provided<br>
that&nbsp;the&nbsp;number&nbsp;has&nbsp;been&nbsp;parsed&nbsp;with&nbsp;<a href="#-parse">parse</a>(..,&nbsp;keep_raw_input=True).<br>
Otherwise&nbsp;the&nbsp;number&nbsp;will&nbsp;be&nbsp;formatted&nbsp;in&nbsp;NATIONAL&nbsp;format.<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>
<a href="#PhoneNumber">PhoneNumber</a>&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in,&nbsp;which&nbsp;is&nbsp;only&nbsp;set&nbsp;when&nbsp;parsing&nbsp;keeps&nbsp;the&nbsp;raw<br>
input.&nbsp;When&nbsp;we&nbsp;don't&nbsp;have&nbsp;a&nbsp;formatting&nbsp;pattern&nbsp;for&nbsp;the&nbsp;number,&nbsp;the&nbsp;method<br>
falls&nbsp;back&nbsp;to&nbsp;returning&nbsp;the&nbsp;raw&nbsp;input.<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>
Expand Down Expand Up @@ -1750,4 +1755,4 @@
<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>
</body></html>
2 changes: 1 addition & 1 deletion docs/phonenumbers.phonemetadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,4 +235,4 @@

<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>REGION_CODE_FOR_NON_GEO_ENTITY</strong> = '001'</td></tr></table>
</body></html>
</body></html>
8 changes: 6 additions & 2 deletions docs/phonenumbers.phonenumber.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@
<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>
<td width="100%">Class methods defined here:<br>
<dl><dt><a name="CountryCodeSource-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="#CountryCodeSource">CountryCodeSource</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>
Expand Down Expand Up @@ -172,4 +176,4 @@
<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></td></tr></table>
</body></html>
</body></html>
15 changes: 8 additions & 7 deletions docs/phonenumbers.phonenumberutil.html
Original file line number Diff line number Diff line change
Expand Up @@ -392,14 +392,15 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;of&nbsp;NumberFormat&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>
<dl><dt><a name="-format_in_original_format"><strong>format_in_original_format</strong></a>(numobj, region_calling_from)</dt><dd><tt>Formats&nbsp;a&nbsp;phone&nbsp;number&nbsp;using&nbsp;the&nbsp;original&nbsp;phone&nbsp;number&nbsp;format<br>
(e.g.&nbsp;INTERNATIONAL&nbsp;or&nbsp;NATIONAL)&nbsp;that&nbsp;the&nbsp;number&nbsp;is&nbsp;parsed&nbsp;from,&nbsp;provided<br>
that&nbsp;the&nbsp;number&nbsp;has&nbsp;been&nbsp;parsed&nbsp;with&nbsp;<a href="#-parse">parse</a>(..,&nbsp;keep_raw_input=True).<br>
Otherwise&nbsp;the&nbsp;number&nbsp;will&nbsp;be&nbsp;formatted&nbsp;in&nbsp;NATIONAL&nbsp;format.<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>
PhoneNumber&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>
PhoneNumber&nbsp;<a href="builtins.html#object">object</a>&nbsp;passed&nbsp;in,&nbsp;which&nbsp;is&nbsp;only&nbsp;set&nbsp;when&nbsp;parsing&nbsp;keeps&nbsp;the&nbsp;raw<br>
input.&nbsp;When&nbsp;we&nbsp;don't&nbsp;have&nbsp;a&nbsp;formatting&nbsp;pattern&nbsp;for&nbsp;the&nbsp;number,&nbsp;the&nbsp;method<br>
falls&nbsp;back&nbsp;to&nbsp;returning&nbsp;the&nbsp;raw&nbsp;input.<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>
Expand Down Expand Up @@ -969,4 +970,4 @@
<strong>U_SPACE</strong> = ' '<br>
<strong>U_TILDE</strong> = '~'<br>
<strong>U_ZERO</strong> = '0'</td></tr></table>
</body></html>
</body></html>
2 changes: 1 addition & 1 deletion docs/phonenumbers.shortnumberinfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><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>U_EMPTY_STRING</strong> = ''</td></tr></table>
</body></html>
</body></html>
18 changes: 18 additions & 0 deletions python/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,24 @@ This file does not generally include descriptions of patch releases (vX.Y.Z
changes. (Metadata updates are best checked
[upstream](https://github.com/google/libphonenumber/blob/master/release_notes.txt).)

What's new in 8.13.8
--------------------

Merge to
[upstream commit 07cd7bbb8a2f](https://github.com/google/libphonenumber/commit/07cd7bbb8a2f);
relevant code changes:

- Added a check to phonenumberutil.py that the value of the `phone-context` parameter of the tel URI follows the correct
syntax as defined in [RFC3966](https://www.rfc-editor.org/rfc/rfc3966#section-3).

What's new in 8.13.0
--------------------

Merge to [upstream commit
185004cabd1bb4d3](https://github.com/google/libphonenumber/commit/185004cabd1bb4d3). Upstream has
removed the `leading_zero_possible` field from the `PhoneMetadata` type as part of this version;
however, this change is *not* mirrored in the Python code due to back-compatibility concerns.

What's new in 8.12.40
---------------------

Expand Down
Loading
Loading