Searched refs:regexCache (Results 1 – 6 of 6) 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 …]
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()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()
215 private final RegexCache regexCache = new RegexCache(32); field in PhoneNumberMatcher588 regexCache.getPatternForRegex(alternateFormat.getLeadingDigitsPattern(0)); in checkNumberGroupingIsValid()
668 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);
22529 const regexCache = Object.create(null);22533 const r = regexCache[pattern];22547 return regexCache[pattern] = ignorecase