Home
last modified time | relevance | path

Searched refs:numberPattern (Results 1 – 2 of 2) sorted by relevance

/external/libphonenumber/libphonenumber/src/com/google/i18n/phonenumbers/
DAsYouTypeFormatter.java219 String numberPattern = format.getPattern(); in createFormattingTemplate() local
223 if (numberPattern.indexOf('|') != -1) { in createFormattingTemplate()
228 numberPattern = CHARACTER_CLASS_PATTERN.matcher(numberPattern).replaceAll("\\\\d"); in createFormattingTemplate()
231 numberPattern = STANDALONE_DIGIT_PATTERN.matcher(numberPattern).replaceAll("\\\\d"); in createFormattingTemplate()
233 String tempTemplate = getFormattingTemplate(numberPattern, format.getFormat()); in createFormattingTemplate()
243 private String getFormattingTemplate(String numberPattern, String numberFormat) { in getFormattingTemplate() argument
247 Matcher m = regexCache.getPatternForRegex(numberPattern).matcher(longestPhoneNumber); in getFormattingTemplate()
256 String template = aPhoneNumber.replaceAll(numberPattern, numberFormat); in getFormattingTemplate()
DPhoneNumberUtil.java2319 private ValidationResult testNumberLengthAgainstPattern(Pattern numberPattern, String number) {
2320 Matcher numberMatcher = numberPattern.matcher(number);