Home
last modified time | relevance | path

Searched refs:nationalPrefixFormattingRule (Results 1 – 3 of 3) sorted by relevance

/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java312 String nationalPrefixFormattingRule, in loadAvailableFormats() argument
331 } else if (!nationalPrefixFormattingRule.equals("")) { in loadAvailableFormats()
332 format.setNationalPrefixFormattingRule(nationalPrefixFormattingRule); in loadAvailableFormats()
382 String nationalPrefixFormattingRule = element.getAttribute(NATIONAL_PREFIX_FORMATTING_RULE); in getNationalPrefixFormattingRuleFromElement() local
384 nationalPrefixFormattingRule = in getNationalPrefixFormattingRuleFromElement()
385 nationalPrefixFormattingRule.replaceFirst("\\$NP", nationalPrefix) in getNationalPrefixFormattingRuleFromElement()
387 return nationalPrefixFormattingRule; in getNationalPrefixFormattingRuleFromElement()
740 String nationalPrefixFormattingRule = in loadCountryMetadata() local
743 nationalPrefixFormattingRule, in loadCountryMetadata()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1207 static boolean formattingRuleHasFirstGroupOnly(String nationalPrefixFormattingRule) {
1208 return nationalPrefixFormattingRule.length() == 0
1209 || FIRST_GROUP_ONLY_PREFIX_PATTERN.matcher(nationalPrefixFormattingRule).matches();
1353 String nationalPrefixFormattingRule = formattingPattern.getNationalPrefixFormattingRule();
1354 if (nationalPrefixFormattingRule.length() > 0) {
1358 nationalPrefixFormattingRule =
1359 nationalPrefixFormattingRule.replace(NP_STRING, nationalPrefix);
1360 nationalPrefixFormattingRule = nationalPrefixFormattingRule.replace(FG_STRING, "$1");
1361 numFormatCopy.setNationalPrefixFormattingRule(nationalPrefixFormattingRule);
1990 String nationalPrefixFormattingRule = formattingPattern.getNationalPrefixFormattingRule();
[all …]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil.js1623 function(nationalPrefixFormattingRule) { argument
1624 return nationalPrefixFormattingRule.length == 0 ||
1626 test(nationalPrefixFormattingRule);
1816 var nationalPrefixFormattingRule =
1818 if (nationalPrefixFormattingRule.length > 0) {
1823 nationalPrefixFormattingRule = nationalPrefixFormattingRule
1828 nationalPrefixFormattingRule);
2697 var nationalPrefixFormattingRule =
2700 nationalPrefixFormattingRule != null &&
2701 nationalPrefixFormattingRule.length > 0) {
[all …]