Lines Matching refs:idx
193 foreach (array_keys($result) as $idx) {
196 isHiddenPage($result[$idx]) || auth_quickaclcheck($result[$idx]) < AUTH_READ
197 )) || !page_exists($result[$idx], '', false)
199 unset($result[$idx]);
227 foreach (array_keys($result) as $idx) {
230 isHiddenPage($result[$idx]) || auth_quickaclcheck($result[$idx]) < AUTH_READ
231 )) || !page_exists($result[$idx], '', false)
233 unset($result[$idx]);
338 foreach (array_keys($pages) as $idx) {
340 !isVisiblePage($idx) || !page_exists($idx) ||
341 auth_quickaclcheck($idx) < AUTH_READ
343 unset($pages[$idx]);
497 [$str, $idx] = $match[0];
499 // convert $idx (a byte offset) into a utf8 character offset
500 $utf8_idx = PhpString::strlen(substr($text, 0, $idx));
542 $offset = $idx + strlen(PhpString::substr($text, $utf8_idx, $utf8_len));