// DIFFERENCES to jfind: always ignores case, doesn't recognize etc // You probably want jmatch2 static boolean jmatch(S pat, S s) { return jmatch(pat, s, null); } static boolean jmatch(S pat, S s, Matches matches) { if (s == null) return false; ret jmatch(pat, javaTok(s), matches); } static boolean jmatch(S pat, L toks) { ret jmatch(pat, toks, null); } static boolean jmatch(S pat, L toks, Matches matches) { L tokpat = javaTok(pat); S[] m = match2(tokpat, toks); //print(structure(tokpat) + " on " + structure(toks) + " => " + structure(m)); if (m == null) ret false; else { if (matches != null) matches.m = m; ret true; } }