Lines Matching refs:w
119 foreach ($tokens as $w => $c) {
120 $l = wordlen($w);
122 $words[$l][$w] = $c + ($words[$l][$w] ?? 0);
124 $words[$l] = [$w => $c];
131 $word_idx = $this->getIndex('w', $wlen);
146 if ($word_idx_modified && !$this->saveIndex('w', $wlen, $word_idx))
472 str_starts_with($f, 'w') ||
813 $word_idx = $this->getIndex('w', $ixlen);
820 foreach ($tokens[$xword] as $w)
821 $result[$w[0]][] = "$ixlen*$wid";
828 foreach ($tokens[$xword] as $w) {
829 if (is_null($w[1])) continue;
830 foreach (array_keys(preg_grep($w[1], $word_idx)) as $wid) {
832 $result[$w[0]][] = "$ixlen*$wid";
926 $words = $this->getIndex('w', $length);
1020 $fh = @fopen($fn . '.tmp', 'w');
1074 $fh = @fopen($fn . '.tmp', 'w');