Lines Matching refs:term
19 * @param string $term
26 …public function termParser(string $term, bool $consider_asian = true, bool $phrase_mode = false): … argument
31 $words = Asian::splitAsianWords($term);
37 $term_noparen = str_replace(['(', ')'], ' ', $term);
43 } elseif ($words[0] === $term) {
46 $term_encoded = str_replace(['(', ')'], ['OP', 'CP'], $term);
111 foreach ($terms as $term) {
113 if (preg_match('/^(-?)"(.+)"$/u', $term, $matches)) {
119 $term = str_replace('"', ' ', $term);
122 $term = str_replace(')', ' ) ', $term);
123 $term = str_replace('(', ' ( ', $term);
124 $term = str_replace('- (', ' -(', $term);
127 $term = str_replace('|', ' or ', $term);
131 $term = preg_replace('/[ \x{3000}]+/u', ' ', $term);
132 $term = trim($term);
133 if ($term === '') continue;
135 $tokens = explode(' ', $term);