Home
last modified time | relevance | path

Searched refs:GetRegExp (Results 1 - 7 of 7) sorted by relevance

/third_party/libphonenumber/cpp/test/phonenumbers/
H A Dregexp_cache_test.cc48 TEST_F(RegExpCacheTest, GetRegExp) { in TEST_F()
52 const RegExp& regexp1 = cache_.GetRegExp(pattern1); in TEST_F()
54 const RegExp& regexp2 = cache_.GetRegExp(pattern2); in TEST_F()
/third_party/libphonenumber/cpp/src/phonenumbers/
H A Dasyoutypeformatter.cc78 cache->GetRegExp(new_pattern).Consume(consume_input.get(), group); in MatchAllGroups()
222 if (!regexp_cache_.GetRegExp(format.leading_digits_pattern().Get( in NarrowDownPossibleFormats()
274 regexp_cache_.GetRegExp(number_pattern).GlobalReplace( in GetFormattingTemplate()
476 if (regexp_cache_.GetRegExp(pattern).FullMatch(national_number_)) { in AttemptToFormatAccruedDigits()
480 bool status = regexp_cache_.GetRegExp(pattern).GlobalReplace( in AttemptToFormatAccruedDigits()
619 const RegExp& pattern = regexp_cache_.GetRegExp( in RemoveNationalPrefixFromNationalNumber()
648 const RegExp& international_prefix = regexp_cache_.GetRegExp( in AttemptToExtractIdd()
H A Dregex_based_matcher.cc55 const RegExp& regexp(regexp_cache_->GetRegExp(number_pattern)); in Match()
H A Dregexp_cache.h20 // GetRegExp() method of the class RegExpCache providing the pattern string. If
22 // will be created by the GetRegExp() method.
25 // const RegExp& regexp = cache.GetRegExp("\d");
68 const RegExp& GetRegExp(const string& pattern);
H A Dregexp_cache.cc49 const RegExp& RegExpCache::GetRegExp(const string& pattern) { in GetRegExp() function in i18n::phonenumbers::RegExpCache
H A Dphonenumberutil.cc1045 const RegExp& eligible_format_pattern = reg_exps_->regexp_cache_->GetRegExp( in IsFormatEligibleForAsYouTypeFormatter()
1058 reg_exps_->regexp_cache_->GetRegExp("\\(?\\$1\\)?"); in FormattingRuleHasFirstGroupOnly()
1728 if (!reg_exps_->regexp_cache_->GetRegExp( in ChooseFormattingPatternForNumber()
1735 reg_exps_->regexp_cache_->GetRegExp(it->pattern())); in ChooseFormattingPatternForNumber()
1779 reg_exps_->regexp_cache_->GetRegExp(formatting_pattern.pattern())); in FormatNsnUsingPatternWithCarrier()
1937 GetRegExp(metadata->leading_digits()).Consume(number.get())) { in GetRegionCodeForNumberFromRegionList()
2715 const RegExp& non_digits_pattern = reg_exps_->regexp_cache_->GetRegExp( in NormalizeDigitsOnly()
2833 reg_exps_->regexp_cache_->GetRegExp(possible_idd_prefix); in MaybeStripInternationalPrefixAndNormalize()
2874 reg_exps_->regexp_cache_->GetRegExp(possible_national_prefix); in MaybeStripNationalPrefixAndCarrierCode()
H A Dphonenumbermatcher.cc733 if (!reg_exps_->regexp_cache_.GetRegExp( in CheckNumberGroupingIsValid()

Completed in 9 milliseconds