Warning: session_start(): open(/var/lib/php/sessions/sess_qjgmiqfc98b7tuutg1cnsqptf9, 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 ItIt flexMatchIC_iterator(S pat, S input) {
L tokPat = javaTokNPunctuation_plusAsterisk(pat), tokInput = javaTokNPunctuation_plusAsterisk(input);
// fail if crucial words not found (could be optimized more)
new L varIndices;
for (int i = 1; i < l(tokPat); i += 2) {
S t = tokPat.get(i);
if (eq(t, "*"))
varIndices.add(i);
else if (isIdentifier(t) && !cicAtOddPosition(tokInput, t))
ret emptyItIt();
}
// TODO: transform to iterator
LL spreadInputs = ai_spreadCertainIndices_2(tokPat, tokInput, varIndices);
ret mapI_notNulls(spreadInputs, tok -> {
new Matches m;
ret match(pat, tok, m) ? m : null;
});
}