Home
last modified time | relevance | path

Searched refs:regexCache (Results 1 – 6 of 6) sorted by relevance

/third_party/libphonenumber/java/libphonenumber/test/com/google/i18n/phonenumbers/internal/
DRegexCacheTest.java28 private RegexCache regexCache; field in RegexCacheTest
31 regexCache = new RegexCache(2); in RegexCacheTest()
39 regexCache.getPatternForRegex(regex1); in testRegexInsertion()
40 assertTrue(regexCache.containsRegex(regex1)); in testRegexInsertion()
42 regexCache.getPatternForRegex(regex2); in testRegexInsertion()
43 assertTrue(regexCache.containsRegex(regex2)); in testRegexInsertion()
44 assertTrue(regexCache.containsRegex(regex1)); in testRegexInsertion()
46 regexCache.getPatternForRegex(regex1); in testRegexInsertion()
47 assertTrue(regexCache.containsRegex(regex1)); in testRegexInsertion()
49 regexCache.getPatternForRegex(regex3); in testRegexInsertion()
[all …]
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/internal/
DRegexBasedMatcher.java33 private final RegexCache regexCache = new RegexCache(100); field in RegexBasedMatcher
46 return match(number, regexCache.getPatternForRegex(nationalNumberPattern), allowPrefixMatch); in matchNationalNumber()
/third_party/libphonenumber/java/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java111 private RegexCache regexCache = new RegexCache(64); field in AsYouTypeFormatter
214 Pattern leadingDigitsPattern = regexCache.getPatternForRegex( in narrowDownPossibleFormats()
240 Matcher m = regexCache.getPatternForRegex(numberPattern).matcher(longestPhoneNumber); in getFormattingTemplate()
425 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()
549 regexCache.getPatternForRegex(currentMetadata.getNationalPrefixForParsing()); in removeNationalPrefixFromNationalNumber()
576 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" in attemptToExtractIdd()
DPhoneNumberMatcher.java215 private final RegexCache regexCache = new RegexCache(32); field in PhoneNumberMatcher
588 regexCache.getPatternForRegex(alternateFormat.getLeadingDigitsPattern(0)); in checkNumberGroupingIsValid()
DPhoneNumberUtil.java668 private final RegexCache regexCache = new RegexCache(100);
1948 if (size == 0 || regexCache.getPatternForRegex(
1951 Matcher m = regexCache.getPatternForRegex(numFormat.getPattern()).matcher(nationalNumber);
1975 regexCache.getPatternForRegex(formattingPattern.getPattern()).matcher(nationalNumber);
2412 if (regexCache.getPatternForRegex(metadata.getLeadingDigits())
2970 Pattern iddPattern = regexCache.getPatternForRegex(possibleIddPrefix);
2996 Matcher prefixMatcher = regexCache.getPatternForRegex(possibleNationalPrefix).matcher(number);
/third_party/node/tools/
Dlint-md.mjs22529 const regexCache = Object.create(null);
22533 const r = regexCache[pattern];
22547 return regexCache[pattern] = ignorecase