Home
last modified time | relevance | path

Searched refs:PhoneNumberDesc (Results 1 – 25 of 28) sorted by relevance

12

/third_party/libphonenumber/cpp/src/phonenumbers/
Dphonemetadata.pb.h65 class PhoneNumberDesc; variable
74 template<> ::i18n::phonenumbers::PhoneNumberDesc* Arena::CreateMaybeMessage<::i18n::phonenumbers::P…
332 class PhoneNumberDesc PROTOBUF_FINAL :
335 inline PhoneNumberDesc() : PhoneNumberDesc(nullptr) {} in PhoneNumberDesc() function
336 virtual ~PhoneNumberDesc();
338 PhoneNumberDesc(const PhoneNumberDesc& from);
339 PhoneNumberDesc(PhoneNumberDesc&& from) noexcept in PhoneNumberDesc() function
340 : PhoneNumberDesc() { in PhoneNumberDesc()
344 inline PhoneNumberDesc& operator=(const PhoneNumberDesc& from) {
348 inline PhoneNumberDesc& operator=(PhoneNumberDesc&& from) noexcept {
[all …]
Dphonemetadata.pb.cc25 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<PhoneNumberDesc> _instance;
87 new (ptr) ::i18n::phonenumbers::PhoneNumberDesc(); in InitDefaultsscc_info_PhoneNumberDesc_phonemetadata_2eproto()
90 ::i18n::phonenumbers::PhoneNumberDesc::InitAsDefaultInstance(); in InitDefaultsscc_info_PhoneNumberDesc_phonemetadata_2eproto()
509 void PhoneNumberDesc::InitAsDefaultInstance() { in InitAsDefaultInstance()
511 class PhoneNumberDesc::_Internal {
513 using HasBits = decltype(std::declval<PhoneNumberDesc>()._has_bits_);
522 PhoneNumberDesc::PhoneNumberDesc(::PROTOBUF_NAMESPACE_ID::Arena* arena) in PhoneNumberDesc() function in i18n::phonenumbers::PhoneNumberDesc
530 PhoneNumberDesc::PhoneNumberDesc(const PhoneNumberDesc& from) in PhoneNumberDesc() function in i18n::phonenumbers::PhoneNumberDesc
549 void PhoneNumberDesc::SharedCtor() { in SharedCtor()
555 PhoneNumberDesc::~PhoneNumberDesc() { in ~PhoneNumberDesc()
[all …]
Dphonenumber.h26 class PhoneNumberDesc; variable
34 bool ExactlySameAs(const PhoneNumberDesc& first_number_desc,
35 const PhoneNumberDesc& second_number_desc);
Dmatcher_api.h27 class PhoneNumberDesc; variable
40 const PhoneNumberDesc& number_desc,
Dregex_based_matcher.h30 class PhoneNumberDesc; variable
41 const PhoneNumberDesc& number_desc,
Dshortnumberinfo.cc83 const PhoneNumberDesc& desc) { in MatchesPossibleNumberAndNationalNumber()
157 const PhoneNumberDesc& general_desc = phone_metadata->general_desc(); in IsValidShortNumberForRegion()
162 const PhoneNumberDesc& short_number_desc = phone_metadata->short_code(); in IsValidShortNumberForRegion()
292 const PhoneNumberDesc& desc = phone_metadata->short_code(); in GetExampleShortNumber()
305 const PhoneNumberDesc* desc = nullptr; in GetExampleShortNumberForCost()
Dphonenumber.cc69 bool ExactlySameAs(const PhoneNumberDesc& first_number_desc, in ExactlySameAs()
70 const PhoneNumberDesc& second_number_desc) { in ExactlySameAs()
Dregex_based_matcher.cc40 const PhoneNumberDesc& number_desc, in MatchNationalNumber()
Dphonenumberutil.cc136 const PhoneNumberDesc* GetNumberDescByType( in GetNumberDescByType()
358 bool DescHasPossibleNumberData(const PhoneNumberDesc& desc) { in DescHasPossibleNumberData()
370 bool DescHasData(const PhoneNumberDesc& desc) { in DescHasData()
407 const PhoneNumberDesc* desc_for_type = GetNumberDescByType(metadata, type); in TestNumberLength()
422 const PhoneNumberDesc* fixed_line_desc = in TestNumberLength()
429 const PhoneNumberDesc* mobile_desc = in TestNumberLength()
510 const string& number, const PhoneNumberDesc& desc) { in IsMatch()
1955 const PhoneNumberDesc* desc = in GetInvalidExampleNumber()
2009 const PhoneNumberDesc* desc = GetNumberDescByType(*region_metadata, type); in GetExampleNumberForType()
2042 const PhoneNumberDesc* desc = GetNumberDescByType(*metadata, type); in GetExampleNumberForType()
[all …]
Dphonenumberutil.h46 class PhoneNumberDesc; variable
755 const PhoneNumberDesc& number_desc) const;
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DPhonemetadata.java198 public static class PhoneNumberDesc implements Externalizable { class in Phonemetadata
200 public PhoneNumberDesc() {} in PhoneNumberDesc() method in Phonemetadata.PhoneNumberDesc
207 public static final class Builder extends PhoneNumberDesc {
208 public PhoneNumberDesc build() { in build()
212 public Builder mergeFrom(PhoneNumberDesc other) { in mergeFrom()
238 public PhoneNumberDesc setNationalNumberPattern(String value) { in setNationalNumberPattern()
243 public PhoneNumberDesc clearNationalNumberPattern() { in clearNationalNumberPattern()
258 public PhoneNumberDesc addPossibleLength(int value) { in addPossibleLength()
262 public PhoneNumberDesc clearPossibleLength() { in clearPossibleLength()
276 public PhoneNumberDesc addPossibleLengthLocalOnly(int value) { in addPossibleLengthLocalOnly()
[all …]
DShortNumberInfo.java22 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
195 PhoneNumberDesc generalDesc = phoneMetadata.getGeneralDesc(); in isValidShortNumberForRegion()
199 PhoneNumberDesc shortNumberDesc = phoneMetadata.getShortCode(); in isValidShortNumberForRegion()
371 PhoneNumberDesc desc = phoneMetadata.getShortCode(); in getExampleShortNumber()
392 PhoneNumberDesc desc = null; in getExampleShortNumberForCost()
562 PhoneNumberDesc numberDesc) { in matchesPossibleNumberAndNationalNumber()
DPhoneNumberUtil.java21 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
1065 private static boolean descHasPossibleNumberData(PhoneNumberDesc desc) {
1078 private static boolean descHasData(PhoneNumberDesc desc) {
2045 PhoneNumberDesc desc = getNumberDescByType(getMetadataForRegion(regionCode),
2097 PhoneNumberDesc desc = getNumberDescByType(getMetadataForRegion(regionCode), type);
2125 PhoneNumberDesc desc = getNumberDescByType(
2154 for (PhoneNumberDesc desc : Arrays.asList(metadata.getMobile(), metadata.getTollFree(),
2192 PhoneNumberDesc getNumberDescByType(PhoneMetadata metadata, PhoneNumberType type) {
2323 boolean isNumberMatchingDesc(String nationalNumber, PhoneNumberDesc numberDesc) {
2595 PhoneNumberDesc descForType = getNumberDescByType(metadata, type);
[all …]
/third_party/libphonenumber/tools/java/common/test/com/google/i18n/phonenumbers/
DBuildMetadataFromXmlTest.java22 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
438 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescElementWithInvalidInput()
440 PhoneNumberDesc.Builder phoneNumberDesc; in testProcessPhoneNumberDescElementWithInvalidInput()
449 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescElementOverridesGeneralDesc()
455 PhoneNumberDesc.Builder phoneNumberDesc; in testProcessPhoneNumberDescElementOverridesGeneralDesc()
603 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescOutputsExampleNumberByDefault()
608 PhoneNumberDesc.Builder phoneNumberDesc; in testProcessPhoneNumberDescOutputsExampleNumberByDefault()
617 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescRemovesWhiteSpacesInPatterns()
622 PhoneNumberDesc.Builder phoneNumberDesc = BuildMetadataFromXml.processPhoneNumberDescElement( in testProcessPhoneNumberDescRemovesWhiteSpacesInPatterns()
765 PhoneNumberDesc.Builder generalDesc = PhoneNumberDesc.newBuilder(); in testProcessPhoneNumberDescElement_PossibleLengthsSetCorrectly()
[all …]
DMetadataFilterTest.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
873 for (PhoneNumberDesc desc : Arrays.asList( in testFilterMetadata_liteBuild()
902 for (PhoneNumberDesc desc : Arrays.asList( in testFilterMetadata_specialBuild()
913 for (PhoneNumberDesc desc : Arrays.asList( in testFilterMetadata_specialBuild()
934 for (PhoneNumberDesc desc : Arrays.asList( in testFilterMetadata_emptyFilter()
984 private static PhoneNumberDesc getFakeArmeniaPhoneNumberDesc(boolean generalDesc) { in getFakeArmeniaPhoneNumberDesc()
985 PhoneNumberDesc desc = new PhoneNumberDesc().setNationalNumberPattern(NATIONAL_NUMBER_PATTERN); in getFakeArmeniaPhoneNumberDesc()
/third_party/libphonenumber/javascript/i18n/phonenumbers/
Dphonemetadata.pb.js385 i18n.phonenumbers.PhoneNumberDesc = function() { class in i18n.phonenumbers
388 goog.inherits(i18n.phonenumbers.PhoneNumberDesc, goog.proto2.Message);
395 i18n.phonenumbers.PhoneNumberDesc.descriptor_ = null;
403 i18n.phonenumbers.PhoneNumberDesc.prototype.clone;
410 i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPattern = function() {
419 i18n.phonenumbers.PhoneNumberDesc.prototype.getNationalNumberPatternOrDefault = function() {
428 i18n.phonenumbers.PhoneNumberDesc.prototype.setNationalNumberPattern = function(value) {
436 i18n.phonenumbers.PhoneNumberDesc.prototype.hasNationalNumberPattern = function() {
444 i18n.phonenumbers.PhoneNumberDesc.prototype.nationalNumberPatternCount = function() {
452 i18n.phonenumbers.PhoneNumberDesc.prototype.clearNationalNumberPattern = function() {
[all …]
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/internal/
DMatcherTest.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
32 PhoneNumberDesc desc = createDesc(""); in checkMatcherBehavesAsExpected()
60 private PhoneNumberDesc createDesc(String nationalNumberPattern) { in createDesc()
61 PhoneNumberDesc.Builder desc = PhoneNumberDesc.newBuilder(); in createDesc()
68 private void assertMatched(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertMatched()
75 private void assertInvalid(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertInvalid()
82 private void assertTooLong(MatcherApi matcher, String number, PhoneNumberDesc desc) { in assertTooLong()
89 private String toString(PhoneNumberDesc desc) { in toString()
/third_party/libphonenumber/cpp/test/phonenumbers/
Dmatcher_test.cc32 string ToString(const PhoneNumberDesc& desc) { in ToString()
45 const PhoneNumberDesc& desc) { in ExpectMatched()
55 const PhoneNumberDesc& desc) { in ExpectInvalid()
65 const PhoneNumberDesc& desc) { in ExpectTooLong()
77 PhoneNumberDesc desc; in CheckMatcherBehavesAsExpected()
108 PhoneNumberDesc CreateDesc( in CreateDesc()
110 PhoneNumberDesc desc; in CreateDesc()
/third_party/libphonenumber/resources/
Dphonemetadata.proto98 message PhoneNumberDesc { message
144 optional PhoneNumberDesc general_desc = 1;
145 optional PhoneNumberDesc fixed_line = 2;
146 optional PhoneNumberDesc mobile = 3;
147 optional PhoneNumberDesc toll_free = 4;
148 optional PhoneNumberDesc premium_rate = 5;
149 optional PhoneNumberDesc shared_cost = 6;
150 optional PhoneNumberDesc personal_number = 7;
151 optional PhoneNumberDesc voip = 8;
152 optional PhoneNumberDesc pager = 21;
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/
DMatcherApi.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
30 boolean matchNationalNumber(CharSequence number, PhoneNumberDesc numberDesc, in matchNationalNumber()
DRegexBasedMatcher.java19 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
38 public boolean matchNationalNumber(CharSequence number, PhoneNumberDesc numberDesc, in matchNationalNumber()
/third_party/libphonenumber/tools/java/common/src/com/google/i18n/phonenumbers/
DMetadataFilter.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
344 private PhoneNumberDesc getFiltered(String type, PhoneNumberDesc desc) { in getFiltered()
345 PhoneNumberDesc.Builder builder = PhoneNumberDesc.newBuilder().mergeFrom(desc); in getFiltered()
DBuildMetadataFromXml.java22 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
406 PhoneNumberDesc desc) { in arePossibleLengthsEqual()
441 static PhoneNumberDesc.Builder processPhoneNumberDescElement(PhoneNumberDesc.Builder parentDesc, in processPhoneNumberDescElement()
445 PhoneNumberDesc.Builder numberDesc = PhoneNumberDesc.newBuilder(); in processPhoneNumberDescElement()
487 PhoneNumberDesc.Builder generalDesc = processPhoneNumberDescElement(null, element, in setRelevantDescPatterns()
631 static void setPossibleLengthsGeneralDesc(PhoneNumberDesc.Builder generalDesc, String metadataId, in setPossibleLengthsGeneralDesc()
690 TreeSet<Integer> localOnlyLengths, PhoneNumberDesc parentDesc, PhoneNumberDesc.Builder desc) { in setPossibleLengths()
/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/
DExampleNumbersTest.java20 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
149 PhoneNumberDesc desc = in testCanBeInternationallyDialled()
244PhoneNumberDesc desc = shortNumberMetadataSource.getMetadataForRegion(regionCode).getEmergency(); in testEmergency()
265PhoneNumberDesc desc = shortNumberMetadataSource.getMetadataForRegion(regionCode).getCarrierSpecif… in testCarrierSpecificShortNumbers()
282PhoneNumberDesc desc = shortNumberMetadataSource.getMetadataForRegion(regionCode).getSmsServices(); in testSmsServiceShortNumbers()
/third_party/libphonenumber/tools/java/java-build/src/com/google/i18n/phonenumbers/
DBuildMetadataJsonFromXml.java22 import com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc;
232 private static void toJsArray(PhoneNumberDesc desc, JSArrayBuilder jsArrayBuilder) { in toJsArray()

12