Lines Matching refs:prefix
1420 // Can we optimize the search by looking for a prefix string?
1421 if (program.prefix == null)
1438 char[] prefix = program.prefix;
1439 for ( ; !search.isEnd(i + prefix.length - 1); i++)
1446 // If there's a mismatch of any character in the prefix, give up
1447 match = (compareChars(search.charAt(j++), prefix[k++], caseIndependent) == 0);
1448 } while (match && k < prefix.length);
1450 // See if the whole prefix string matched
1451 if (k == prefix.length)
1453 // We matched the full prefix at firstChar, so try it