Home
last modified time | relevance | path

Searched refs:nationalPrefix (Results 1 – 6 of 6) sorted by relevance

/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java198 String nationalPrefix) { in loadTerritoryTagMetadata() argument
222 if (!nationalPrefix.isEmpty()) { in loadTerritoryTagMetadata()
223 metadata.setNationalPrefix(nationalPrefix); in loadTerritoryTagMetadata()
225 metadata.setNationalPrefixForParsing(nationalPrefix); in loadTerritoryTagMetadata()
311 Element element, String nationalPrefix, in loadAvailableFormats() argument
317 getDomesticCarrierCodeFormattingRuleFromElement(element, nationalPrefix)); in loadAvailableFormats()
330 getNationalPrefixFormattingRuleFromElement(numberFormatElement, nationalPrefix)); in loadAvailableFormats()
346 nationalPrefix))); in loadAvailableFormats()
381 String nationalPrefix) { in getNationalPrefixFormattingRuleFromElement() argument
385 nationalPrefixFormattingRule.replaceFirst("\\$NP", nationalPrefix) in getNationalPrefixFormattingRuleFromElement()
[all …]
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/testing/
DTestNumberingScheme.java88 private final List<DigitSequence> nationalPrefix = new ArrayList<>(); field in TestNumberingScheme
127 this.nationalPrefix.clear(); in setNationalPrefix()
128 this.nationalPrefix.add(DigitSequence.of(prefix)); in setNationalPrefix()
135 this.nationalPrefix.clear(); in setNationalPrefixes()
138 this.nationalPrefix.add(DigitSequence.of(p)); in setNationalPrefixes()
145 this.nationalPrefix.clear(); in clearNationalPrefix()
262 ImmutableSet.copyOf(nationalPrefix), in build()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonenumberutil.js1820 var nationalPrefix = metadata.getNationalPrefixOrDefault();
1821 if (nationalPrefix.length > 0) {
1825 nationalPrefix)
2229 var nationalPrefix = this.getNddPrefixForRegion(regionCode, true);
2233 if (nationalPrefix == null || nationalPrefix.length == 0) {
2243 number.getRawInputOrDefault(), nationalPrefix, regionCode)) {
2328 function(rawInput, nationalPrefix, regionCode) { argument
2333 if (goog.string.startsWith(normalizedNationalNumber, nationalPrefix)) {
2341 this.parse(normalizedNationalNumber.substring(nationalPrefix.length),
3280 var nationalPrefix = metadata.getNationalPrefixOrDefault();
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhoneNumberUtil.java1355 String nationalPrefix = metadata.getNationalPrefix();
1356 if (nationalPrefix.length() > 0) {
1359 nationalPrefixFormattingRule.replace(NP_STRING, nationalPrefix);
1658 String nationalPrefix = getNddPrefixForRegion(regionCode, true /* strip non-digits */);
1660 if (nationalPrefix == null || nationalPrefix.length() == 0) {
1668 number.getRawInput(), nationalPrefix, regionCode)) {
1729 private boolean rawInputContainsNationalPrefix(String rawInput, String nationalPrefix,
1732 if (normalizedNationalNumber.startsWith(nationalPrefix)) {
1739 parse(normalizedNationalNumber.substring(nationalPrefix.length()), regionCode));
2504 String nationalPrefix = metadata.getNationalPrefix();
[all …]
DAsYouTypeFormatter.java562 String nationalPrefix = nationalNumber.substring(0, startOfNationalNumber); in removeNationalPrefixFromNationalNumber() local
564 return nationalPrefix; in removeNationalPrefixFromNationalNumber()
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
DNumberingScheme.java85 ImmutableSet<DigitSequence> nationalPrefix, in create() argument
97 checkMetadata(nationalPrefix.stream().noneMatch(allIddRanges::contains), in create()
99 cc, nationalPrefix, allIddRanges); in create() local
100 checkMetadata(nationalPrefix.stream().noneMatch(carrierPrefixes::contains), in create()
102 cc, nationalPrefix, carrierPrefixes); in create() local
123 nationalPrefix, in create()