Skip to content

Commit

Permalink
phonenum: note about the role of country code name for phonenum_match…
Browse files Browse the repository at this point in the history
…_cn()

(cherry picked from commit dfd6c39)
  • Loading branch information
miconda committed Oct 12, 2020
1 parent 75cb64a commit 755867b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/modules/phonenum/doc/phonenum_admin.xml
Expand Up @@ -156,6 +156,14 @@ if(phonenum_match("1-484-555-8888", "src")) {
(two letter, e.g: "DE", "US", "ES"). The function has to be called
before accessing a key via: $phn(pvc=>key).
</para>
<para>
Note from libphonenumber library docs: country name code is the region
that is expected the number to be from. It is only used if the number
being parsed is not written in international format. The country code
for the number in this case would be stored as that of the region
supplied. If the number is guaranteed to start with a '+' followed
by the country calling code, then region 'ZZ'.
</para>
<para>
The parameters can be static strings or strings with variables.
</para>
Expand Down

0 comments on commit 755867b

Please sign in to comment.