Lines Matching defs:match

30      * Pattern type: the given pattern must exactly match the string it is
36 * Pattern type: the given pattern must match the
44 * In this syntax, you can use the '*' character to match against zero or
46 * character before it is '.' it will match any character. The character
70 // Return for no match
112 public boolean match(String str) {
162 static boolean matchPattern(String match, String pattern, int[] parsedPattern, int type) {
163 if (match == null) return false;
165 return pattern.equals(match);
167 return match.startsWith(pattern);
169 return matchGlobPattern(pattern, match);
171 return matchAdvancedPattern(parsedPattern, match);
176 static boolean matchGlobPattern(String pattern, String match) {
179 return match.length() <= 0;
181 final int NM = match.length();
197 // at the end with a pattern match, so
210 if (match.charAt(im) == nextChar) {
217 // exist in the match.
226 if (match.charAt(im) != c) {
235 if (c != '.' && match.charAt(im) != c) return false;
245 // One last check: we may have finished the match string, but still
247 // as a match.
427 static boolean matchAdvancedPattern(int[] parsedPattern, String match) {
433 final int LP = parsedPattern.length, LM = match.length();
445 // get the match type of the next verb
472 // look for a match length modifier
502 // attempt to match as many characters as possible
503 int matched = matchChars(match, im, LM, tokenType, minRepetition, maxRepetition,
511 // move the match pointer the number of characters matched
517 private static int matchChars(String match, int im, final int lm, int tokenType,
523 && matchChar(match, im + matched, lm, tokenType, parsedPattern, tokenStart,
531 private static boolean matchChar(String match, int im, final int lm, int tokenType,
533 if (im >= lm) { // we've overrun the string, no match
541 char matchChar = match.charAt(im);
549 char matchChar = match.charAt(im);
556 return match.charAt(im) == parsedPattern[tokenStart];