Lines Matching defs:idx
65 // If left alone, all chinese "words" will get put into w3.idx
256 * @param string $idx
260 function idx_getIndex($idx, $suffix)
263 $fn = $conf['indexdir'] . '/' . $idx . $suffix . '.idx';
287 file_exists($conf['indexdir'] . '/lengths.idx')
288 && (time() < @filemtime($conf['indexdir'] . '/lengths.idx') + $conf['readdircache'])
291 ($lengths = @file($conf['indexdir'] . '/lengths.idx', FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES))
294 $idx = [];
296 $idx[] = (int)$length;
298 return $idx;
308 $idx = [];
310 if (str_starts_with($f, 'i') && str_ends_with($f, '.idx')) {
313 $idx[] = (int)$i;
317 sort($idx);
320 $handle = @fopen($conf['indexdir'] . '/lengths.idx', 'w');
321 @fwrite($handle, implode("\n", $idx));
324 return $idx;
344 $idx = [];
349 if (file_exists($path . $key . '.idx'))
350 $idx[] = $key;
357 $idx[] = $length;
360 return $idx;