Browse Source

phonenum: note about the role of country code name for phonenum_match_cn()

Daniel-Constantin Mierla 5 years ago
parent
commit
dfd6c3966e
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/modules/phonenum/doc/phonenum_admin.xml

+ 8 - 0
src/modules/phonenum/doc/phonenum_admin.xml

@@ -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>