Lines Matching refs:pattern
30 final String pattern;
32 public WildCardMatcher(String pattern, boolean caseInsensitive) {
34 this.pattern = normalizeString(pattern);
40 return wildcardEquals(pattern, 0, tokenToMatch, 0)
71 * Determines if a word matches a wildcard pattern. <small>Work released by
74 public static boolean wildcardEquals(String pattern, int patternIdx,
81 // End of pattern yet?
82 boolean pEnd = (p >= pattern.length());
86 // Assume the only thing left on the pattern is/are wildcards
91 // While we haven't found the end of the pattern,
93 while (wildcardSearchPos < pattern.length() && justWildcardsLeft) {
95 char wildchar = pattern.charAt(wildcardSearchPos);
98 // pattern information after this/these wildcards.
119 // If we've gone past the end of the string, or the pattern,
126 if (pattern.charAt(p) == WILDCARD_CHAR) {
131 if (pattern.charAt(p) == WILDCARD_STRING) {
133 while (p < pattern.length() && pattern.charAt(p) == WILDCARD_STRING) {
138 if (wildcardEquals(pattern, p, string, i)) {
144 if (pattern.charAt(p) != string.charAt(s)) {