Lines Matching refs:xword
776 $xword = $word;
780 if (str_starts_with($xword, '*')) {
781 $xword = substr($xword, 1);
785 if (str_ends_with($xword, '*')) {
786 $xword = substr($xword, 0, -1);
790 if ($wlen < IDX_MINWORDLENGTH && $caret && $dollar && !is_numeric($xword))
792 if (!isset($tokens[$xword]))
793 $tokenlength[$wlen][] = $xword;
795 $re = $caret . preg_quote($xword, '/') . $dollar;
796 $tokens[$xword][] = [$word, '/' . $re . '/'];
797 if (!isset($tokenwild[$xword]))
798 $tokenwild[$xword] = $wlen;
800 $tokens[$xword][] = [$word, null];
816 foreach ($tokenlength[$ixlen] as $xword) {
817 $wid = array_search($xword, $word_idx, true);
820 foreach ($tokens[$xword] as $w)
826 foreach ($tokenwild as $xword => $wlen) {
828 foreach ($tokens[$xword] as $w) {