Warning: session_start(): open(/var/lib/php/sessions/sess_umjqep7btrlog59fs1odp9k4eu, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
static boolean jmatchStart(S pat, S s) {
return jmatchStart(pat, s, null);
}
// matches are as you expect, plus an extra item for the rest string
static boolean jmatchStart(S pat, S s, Matches matches) {
if (s == null) return false;
L tokpat = javaTok(pat), toks = javaTok(s);
ret jmatchStart(tokpat, toks, matches);
}
static boolean jmatchStart(L tokpat, L toks, Matches matches) {
if (tokpat == null || toks == null || toks.size() < tokpat.size()) ret false;
S[] m = match2(tokpat, toks.subList(0, tokpat.size()));
//print(structure(tokpat) + " on " + structure(toks) + " => " + structure(m));
if (m == null)
return false;
else {
if (matches != null) {
matches.m = new S[m.length+1];
arraycopy(m, matches.m);
matches.m[m.length] = join(toks.subList(tokpat.size(), toks.size())); // for Matches.rest()
}
return true;
}
}