Home
last modified time | relevance | path

Searched refs:phone_util_ (Results 1 – 14 of 14) sorted by relevance

/third_party/libphonenumber/cpp/test/phonenumbers/
Dphonenumberutil_test.cc53 PhoneNumberUtilTest() : phone_util_(*PhoneNumberUtil::GetInstance()) { in PhoneNumberUtilTest()
59 return phone_util_.GetMetadataForRegion(region_code); in GetPhoneMetadata()
64 return phone_util_.GetMetadataForNonGeographicalRegion(country_code); in GetMetadataForNonGeographicalRegion()
69 phone_util_.ExtractPossibleNumber(number, extracted_number); in ExtractPossibleNumber()
73 return phone_util_.IsViablePhoneNumber(number); in IsViablePhoneNumber()
77 phone_util_.Normalize(number); in Normalize()
83 return phone_util_.MaybeStripInternationalPrefixAndNormalize( in MaybeStripInternationalPrefixAndNormalize()
91 phone_util_.MaybeStripNationalPrefixAndCarrierCode(metadata, number, in MaybeStripNationalPrefixAndCarrierCode()
96 return phone_util_.MaybeStripExtension(number, extension); in MaybeStripExtension()
104 return phone_util_.MaybeExtractCountryCode(default_region_metadata, in MaybeExtractCountryCode()
[all …]
Dphonenumbermatcher_test.cc73 : phone_util_(*PhoneNumberUtil::GetInstance()), in PhoneNumberMatcherTest()
74 matcher_(phone_util_, "", in PhoneNumberMatcherTest()
88 phone_number, candidate, phone_util_); in ContainsMoreThanOneSlashInNationalNumber()
98 return new PhoneNumberMatcher(phone_util_, text, region, leniency, in GetMatcherWithLeniency()
145 phone_util_.Parse(number, region_code, &expected_result); in AssertMatchProperties()
155 PhoneNumberMatcher matcher(phone_util_, sub, RegionCode::NZ(), in AssertEqualRange()
172 phone_util_.Parse(number, default_country, &parsed); in DoTestFindInContext()
173 if (phone_util_.IsValidNumber(parsed)) { in DoTestFindInContext()
204 PhoneNumberMatcher matcher(phone_util_, text, region, in FindMatchesInContexts()
295 PhoneNumberMatcher matcher(phone_util_, text, default_country, leniency, in DoTestInContext()
[all …]
Dasyoutypeformatter_test.cc38 AsYouTypeFormatterTest() : phone_util_(*PhoneNumberUtil::GetInstance()) { in AsYouTypeFormatterTest()
54 const PhoneNumberUtil& phone_util_; member in i18n::phonenumbers::AsYouTypeFormatterTest
74 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::US())); in TEST_F()
80 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::GetUnknown())); in TEST_F()
100 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::GetUnknown())); in TEST_F()
121 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::BY())); in TEST_F()
138 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::BY())); in TEST_F()
153 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::US())); in TEST_F()
249 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::US())); in TEST_F()
284 formatter_.reset(phone_util_.GetAsYouTypeFormatter(RegionCode::US())); in TEST_F()
[all …]
Dshortnumberinfo_test.cc38 PhoneNumberUtil::ErrorType error_type = phone_util_.Parse( in ParseNumberForTesting()
49 const PhoneNumberUtil phone_util_; member in i18n::phonenumbers::ShortNumberInfoTest
/third_party/libphonenumber/cpp/src/phonenumbers/
Dshortnumberinfo.cc46 : phone_util_(*PhoneNumberUtil::GetInstance()), in ShortNumberInfo()
99 phone_util_.GetRegionCodesForCountryCallingCode(number.country_code(), in RegionDialingFromMatchesNumber()
117 phone_util_.GetNationalSignificantNumber(number, &short_number); in IsPossibleShortNumberForRegion()
126 phone_util_.GetRegionCodesForCountryCallingCode(number.country_code(), in IsPossibleShortNumber()
129 phone_util_.GetNationalSignificantNumber(number, &short_number); in IsPossibleShortNumber()
156 phone_util_.GetNationalSignificantNumber(number, &short_number); in IsValidShortNumberForRegion()
169 phone_util_.GetRegionCodesForCountryCallingCode(number.country_code(), in IsValidShortNumber()
190 phone_util_.GetNationalSignificantNumber(number, &short_number); in GetExpectedCostForRegion()
228 phone_util_.GetRegionCodesForCountryCallingCode(number.country_code(), in GetExpectedCost()
273 phone_util_.GetNationalSignificantNumber(number, &national_number); in GetRegionCodeForShortNumberFromRegionList()
[all …]
Dphonenumbermatcher.cc403 phone_util_(util), in PhoneNumberMatcher()
419 phone_util_(*PhoneNumberUtil::GetInstance()), in PhoneNumberMatcher()
501 if (phone_util_.ParseAndKeepRawInput(candidate, preferred_region_, &number) != in ParseAndVerify()
529 return phone_util_.IsPossibleNumber(number); in VerifyAccordingToLeniency()
531 if (!phone_util_.IsValidNumber(number) || in VerifyAccordingToLeniency()
532 !ContainsOnlyValidXChars(number, candidate, phone_util_)) { in VerifyAccordingToLeniency()
537 if (!phone_util_.IsValidNumber(number) || in VerifyAccordingToLeniency()
538 !ContainsOnlyValidXChars(number, candidate, phone_util_) || in VerifyAccordingToLeniency()
540 number, candidate, phone_util_) || in VerifyAccordingToLeniency()
552 if (!phone_util_.IsValidNumber(number) || in VerifyAccordingToLeniency()
[all …]
Dasyoutypeformatter.cc103 phone_util_(*PhoneNumberUtil::GetInstance()), in AsYouTypeFormatter()
123 int country_calling_code = phone_util_.GetCountryCodeForRegion(region_code); in GetMetadataForRegion()
125 phone_util_.GetRegionCodeForCountryCode(country_calling_code, &main_country); in GetMetadataForRegion()
127 phone_util_.GetMetadataForRegion(main_country); in GetMetadataForRegion()
175 phone_util_.FormattingRuleHasFirstGroupOnly( in GetAvailableFormats()
187 !phone_util_.FormattingRuleHasFirstGroupOnly( in GetAvailableFormats()
194 if (phone_util_.IsFormatEligibleForAsYouTypeFormatter(it->format())) { in GetAvailableFormats()
339 if (!(phone_util_.ContainsOnlyValidDigits(next_char_string) || in InputDigitWithOptionToRememberPosition()
493 phone_util_.NormalizeDiallableCharsOnly(&full_output); in AttemptToFormatAccruedDigits()
682 phone_util_.ExtractCountryCode(&number_without_country_code); in AttemptToExtractCountryCode()
[all …]
Dshortnumberinfo.h178 const PhoneNumberUtil& phone_util_;
Dasyoutypeformatter.h200 const PhoneNumberUtil& phone_util_; variable
Dphonenumbermatcher.h185 const PhoneNumberUtil& phone_util_; variable
/third_party/libphonenumber/cpp/src/phonenumbers/geocoding/
Dphonenumber_offline_geocoder.cc68 phone_util_ = PhoneNumberUtil::GetInstance(); in Init()
119 phone_util_->GetRegionCodeForNumber(number, &region_code); in GetCountryNameForNumber()
154 phone_util_->GetRegionCodeForNumber(number, &region_code); in GetDescriptionForValidNumber()
165 phone_util_->GetNumberType(number); in GetDescriptionForNumber()
168 } else if (!phone_util_->IsNumberGeographical(number_type, in GetDescriptionForNumber()
179 phone_util_->GetNumberType(number); in GetDescriptionForNumber()
182 } else if (!phone_util_->IsNumberGeographical(number_type, in GetDescriptionForNumber()
Darea_code_map.cc30 : phone_util_(*PhoneNumberUtil::GetInstance()) { in AreaCodeMap()
49 phone_util_.GetNationalSignificantNumber(number, &national_number); in Lookup()
Darea_code_map.h66 const PhoneNumberUtil& phone_util_; variable
Dphonenumber_offline_geocoder.h152 const PhoneNumberUtil* phone_util_;