Home
last modified time | relevance | path

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

/external/libphonenumber/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 …]
/external/libphonenumber/repackaged/libphonenumber/src/com/android/i18n/phonenumbers/internal/
DRegexBasedMatcher.java35 private final RegexCache regexCache = new RegexCache(100); field in RegexBasedMatcher
48 return match(number, regexCache.getPatternForRegex(nationalNumberPattern), allowPrefixMatch); in matchNationalNumber()
/external/libphonenumber/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()
/external/libphonenumber/repackaged/libphonenumber/src/com/android/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()
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()
DPhoneNumberMatcher.java215 private final RegexCache regexCache = new RegexCache(32); field in PhoneNumberMatcher
586 regexCache.getPatternForRegex(alternateFormat.getLeadingDigitsPattern(0)); in checkNumberGroupingIsValid()
DPhoneNumberUtil.java648 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);
/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java109 private RegexCache regexCache = new RegexCache(64); field in AsYouTypeFormatter
212 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()
DPhoneNumberMatcher.java214 private final RegexCache regexCache = new RegexCache(32); field in PhoneNumberMatcher
585 regexCache.getPatternForRegex(alternateFormat.getLeadingDigitsPattern(0)); in checkNumberGroupingIsValid()
DPhoneNumberUtil.java615 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);