Searched refs:regexCache (Results 1 – 9 of 9) sorted by relevance
28 private RegexCache regexCache; field in RegexCacheTest31 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 …]
35 private final RegexCache regexCache = new RegexCache(100); field in RegexBasedMatcher48 return match(number, regexCache.getPatternForRegex(nationalNumberPattern), allowPrefixMatch); in matchNationalNumber()
33 private final RegexCache regexCache = new RegexCache(100); field in RegexBasedMatcher46 return match(number, regexCache.getPatternForRegex(nationalNumberPattern), allowPrefixMatch); in matchNationalNumber()
111 private RegexCache regexCache = new RegexCache(64); field in AsYouTypeFormatter214 Pattern leadingDigitsPattern = regexCache.getPatternForRegex( in narrowDownPossibleFormats()240 Matcher m = regexCache.getPatternForRegex(numberPattern).matcher(longestPhoneNumber); in getFormattingTemplate()428 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()553 regexCache.getPatternForRegex(currentMetadata.getNationalPrefixForParsing()); in removeNationalPrefixFromNationalNumber()580 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" in attemptToExtractIdd()
215 private final RegexCache regexCache = new RegexCache(32); field in PhoneNumberMatcher586 regexCache.getPatternForRegex(alternateFormat.getLeadingDigitsPattern(0)); in checkNumberGroupingIsValid()
648 private final RegexCache regexCache = new RegexCache(100);1925 if (size == 0 || regexCache.getPatternForRegex(1928 Matcher m = regexCache.getPatternForRegex(numFormat.getPattern()).matcher(nationalNumber);1952 regexCache.getPatternForRegex(formattingPattern.getPattern()).matcher(nationalNumber);2371 if (regexCache.getPatternForRegex(metadata.getLeadingDigits())2933 Pattern iddPattern = regexCache.getPatternForRegex(possibleIddPrefix);2959 Matcher prefixMatcher = regexCache.getPatternForRegex(possibleNationalPrefix).matcher(number);
109 private RegexCache regexCache = new RegexCache(64); field in AsYouTypeFormatter212 Pattern leadingDigitsPattern = regexCache.getPatternForRegex( in narrowDownPossibleFormats()238 Matcher m = regexCache.getPatternForRegex(numberPattern).matcher(longestPhoneNumber); in getFormattingTemplate()423 Matcher m = regexCache.getPatternForRegex(numberFormat.getPattern()).matcher(nationalNumber); in attemptToFormatAccruedDigits()547 regexCache.getPatternForRegex(currentMetadata.getNationalPrefixForParsing()); in removeNationalPrefixFromNationalNumber()574 regexCache.getPatternForRegex("\\" + PhoneNumberUtil.PLUS_SIGN + "|" in attemptToExtractIdd()
214 private final RegexCache regexCache = new RegexCache(32); field in PhoneNumberMatcher585 regexCache.getPatternForRegex(alternateFormat.getLeadingDigitsPattern(0)); in checkNumberGroupingIsValid()
615 private final RegexCache regexCache = new RegexCache(100);1888 if (size == 0 || regexCache.getPatternForRegex(1891 Matcher m = regexCache.getPatternForRegex(numFormat.getPattern()).matcher(nationalNumber);1915 regexCache.getPatternForRegex(formattingPattern.getPattern()).matcher(nationalNumber);2331 if (regexCache.getPatternForRegex(metadata.getLeadingDigits())2889 Pattern iddPattern = regexCache.getPatternForRegex(possibleIddPrefix);2915 Matcher prefixMatcher = regexCache.getPatternForRegex(possibleNationalPrefix).matcher(number);