Lines Matching refs:im
182 int ip = 0, im = 0;
184 while ((ip<NP) && (im<NM)) {
210 if (match.charAt(im) == nextChar) {
213 im++;
214 } while (im < NM);
215 if (im == NM) {
222 im++;
226 if (match.charAt(im) != c) {
229 im++;
230 } while (im < NM);
235 if (c != '.' && match.charAt(im) != c) return false;
236 im++;
240 if (ip >= NP && im >= NM) {
430 int ip = 0, im = 0;
503 int matched = matchChars(match, im, LM, tokenType, minRepetition, maxRepetition,
512 im += matched;
514 return ip >= LP && im >= LM; // have parsed entire string and regex
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];