Warning: session_start(): open(/var/lib/php/sessions/sess_0nji8lab342jv7optrshb8roph, 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
// use "*" as wildcard
// may return null, and returned list is "volatile" (only valid as long as the index is not changed)
static LLS positionalTokenIndex_filter(PositionalTokenIndex idx, LS tok) {
LLS shortestList = null;
for (int i = 1; i < l(tok); i += 2) {
S t = tok.get(i);
if (!eq(t, "*")) {
LLS list = idx.byToken(i/2, t);
if (empty(list)) ret list;
if (shortestList == null || l(list) < l(shortestList))
shortestList = list;
}
}
if (shortestList == null) // pattern must be all wildcards - return full list
ret idx.fullList();
ret shortestList;
}