Searched refs:numberPattern (Results 1 – 2 of 2) sorted by relevance
219 String numberPattern = format.getPattern(); in createFormattingTemplate() local223 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() argument247 Matcher m = regexCache.getPatternForRegex(numberPattern).matcher(longestPhoneNumber); in getFormattingTemplate()256 String template = aPhoneNumber.replaceAll(numberPattern, numberFormat); in getFormattingTemplate()
2319 private ValidationResult testNumberLengthAgainstPattern(Pattern numberPattern, String number) {2320 Matcher numberMatcher = numberPattern.matcher(number);