Home
last modified time | relevance | path

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

/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DBuildMetadataFromXmlTest.java438 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescElementWithInvalidInput() local
443 generalDesc, territoryElement, "invalidType"); in testProcessPhoneNumberDescElementWithInvalidInput()
449 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescElementOverridesGeneralDesc() local
450 generalDesc.setNationalNumberPattern("\\d{8}"); in testProcessPhoneNumberDescElementOverridesGeneralDesc()
458 generalDesc, territoryElement, "fixedLine"); in testProcessPhoneNumberDescElementOverridesGeneralDesc()
603 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescOutputsExampleNumberByDefault() local
611 generalDesc, territoryElement, "fixedLine"); in testProcessPhoneNumberDescOutputsExampleNumberByDefault()
617 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescRemovesWhiteSpacesInPatterns() local
623 generalDesc, countryElement, "fixedLine"); in testProcessPhoneNumberDescRemovesWhiteSpacesInPatterns()
765 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescElement_PossibleLengthsSetCorrectly() local
[all …]
DMetadataFilterTest.java984 private static PhoneNumberDesc getFakeArmeniaPhoneNumberDesc(boolean generalDesc) { in getFakeArmeniaPhoneNumberDesc() argument
986 if (!generalDesc) { in getFakeArmeniaPhoneNumberDesc()
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DBuildMetadataFromXml.java487 PhoneNumberDesc.Builder generalDesc = processPhoneNumberDescElement(null, element, in setRelevantDescPatterns() local
491 setPossibleLengthsGeneralDesc(generalDesc, metadata.getId(), element, isShortNumberMetadata); in setRelevantDescPatterns()
492 metadata.setGeneralDesc(generalDesc); in setRelevantDescPatterns()
496 metadata.setFixedLine(processPhoneNumberDescElement(generalDesc, element, FIXED_LINE)); in setRelevantDescPatterns()
497 metadata.setMobile(processPhoneNumberDescElement(generalDesc, element, MOBILE)); in setRelevantDescPatterns()
498 metadata.setSharedCost(processPhoneNumberDescElement(generalDesc, element, SHARED_COST)); in setRelevantDescPatterns()
499 metadata.setVoip(processPhoneNumberDescElement(generalDesc, element, VOIP)); in setRelevantDescPatterns()
500 metadata.setPersonalNumber(processPhoneNumberDescElement(generalDesc, element, in setRelevantDescPatterns()
502 metadata.setPager(processPhoneNumberDescElement(generalDesc, element, PAGER)); in setRelevantDescPatterns()
503 metadata.setUan(processPhoneNumberDescElement(generalDesc, element, UAN)); in setRelevantDescPatterns()
[all …]
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dshortnumberinfo.js189 var generalDesc = phoneMetadata.getGeneralDesc();
190 if (!this.matchesPossibleNumberAndNationalNumber_(shortNumber, generalDesc)) {
Dphonenumberutil.js3784 var generalDesc = defaultRegionMetadata.getGeneralDesc();
3787 new RegExp(generalDesc.getNationalNumberPatternOrDefault());
Dphonenumberutil_test.js2448 var generalDesc = new i18n.phonenumbers.PhoneNumberDesc();
2449 generalDesc.setNationalNumberPattern('\\d{4,8}');
2450 metadata.setGeneralDesc(generalDesc);
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DShortNumberInfo.java195 PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); in isValidShortNumberForRegion() local
196 if (!matchesPossibleNumberAndNationalNumber(shortNumber, generalDesc)) { in isValidShortNumberForRegion()
DPhoneNumberUtil.java2896 PhoneNumberDesc generalDesc = defaultRegionMetadata.getGeneralDesc();
2902 if ((!matcherApi.matchNationalNumber(fullNumber, generalDesc, false)
2903 && matcherApi.matchNationalNumber(potentialNationalNumber, generalDesc, false))
2998 PhoneNumberDesc generalDesc = metadata.getGeneralDesc();
3000 boolean isViableOriginalNumber = matcherApi.matchNationalNumber(number, generalDesc, false);
3011 number.substring(prefixMatcher.end()), generalDesc, false)) {
3025 && !matcherApi.matchNationalNumber(transformedNumber.toString(), generalDesc, false)) {
/third_party/libphonenumber/metadata/src/main/proto/
Dtypes.proto69 // generalDesc, which can just be the leading digits, this must be precise).
/third_party/libphonenumber/
Drelease_notes.txt1438 example number has been moved from generalDesc to the relevant number types,
1444 There should no longer be an exampleNumber at the generalDesc level, but it
1455 number types, not just the generalDesc, for the example numbers; this is a
2772 "generalDesc" patterns do not encompass short-codes. No code-support for these has been