Home
last modified time | relevance | path

Searched refs:hasNationalPrefix (Results 1 – 10 of 10) sorted by relevance

/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/model/
DFormatSpecTest.java92 assertThat(t.hasNationalPrefix()).isTrue(); in testTemplate_splitPrefix()
102 assertThat(t.hasNationalPrefix()).isFalse(); in testTemplate_noPrefix()
112 assertThat(t.hasNationalPrefix()).isFalse(); in testTemplate_replacementNoNationalPrefix()
122 assertThat(t.hasNationalPrefix()).isTrue(); in testTemplate_replacementWithNationalPrefix()
132 assertThat(t.hasNationalPrefix()).isFalse(); in testTemplate_replacementNotFirstGroup()
144 assertThat(t.hasNationalPrefix()).isFalse(); in testTemplate_removeFirstGroupViaReplacement()
/third_party/libphonenumber/metadata/src/main/java/com/google/i18n/phonenumbers/metadata/model/
DFormatSpec.java143 checkArgument(!local.hasNationalPrefix(), in localFormat()
230 checkArgument(!carrier.hasNationalPrefix() || spec.indexOf('#') < spec.indexOf('@'), in parseCarrierSpec()
243 !intl.hasNationalPrefix(), in parseIntlSpec()
258 checkArgument(!local.hasNationalPrefix(), in parseLocalSpec()
309 boolean hasNationalPrefix = false;
361 checkArgument(!hasNationalPrefix, "multiple national prefixes not allowed: %s", spec);
362 hasNationalPrefix = true;
394 hasNationalPrefix,
408 public abstract boolean hasNationalPrefix();
DNumberingScheme.java340 } else if (spec.national().hasNationalPrefix()) { in checkUnambiguousIdd()
415 spec.national().hasNationalPrefix() in checkFormatConsistency()
416 || spec.carrier().map(FormatTemplate::hasNationalPrefix).orElse(false); in checkFormatConsistency()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhonemetadata.java675 private boolean hasNationalPrefix; field in Phonemetadata.PhoneMetadata
677 public boolean hasNationalPrefix() { return hasNationalPrefix; } in hasNationalPrefix() method in Phonemetadata.PhoneMetadata
680 hasNationalPrefix = true; in setNationalPrefix()
685 hasNationalPrefix = false; in clearNationalPrefix()
944 objectOutput.writeBoolean(hasNationalPrefix); in writeExternal()
945 if (hasNationalPrefix) { in writeExternal()
DPhoneNumberUtil.java881 if (!metadata.hasNationalPrefix() && !number.isItalianLeadingZero()) {
/third_party/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/
DBuildMetadataJsonFromXml.java331 if (metadata.hasNationalPrefix()) { in toJsArray()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonemetadata.pb.js1761 i18n.phonenumbers.PhoneMetadata.prototype.hasNationalPrefix = function() { method in i18n.phonenumbers.PhoneMetadata
Dphonenumberutil.js1278 if (!metadata.hasNationalPrefix() && !number.hasItalianLeadingZero()) {
Dphonenumberutil_test.js271 assertTrue(metadata.hasNationalPrefix());
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DPhoneNumberUtilTest.java202 assertTrue(metadata.hasNationalPrefix()); in testGetInstanceLoadUSMetadata()