Lines Matching refs:term
247 * @param string $term
250 public function snippetRePreprocess(string $term): string argument
253 if (Asian::isAsianWords($term)) return $term;
266 if (str_starts_with($term, '\\*')) {
267 $term = substr($term, 2);
269 $term = $BL . $term;
272 if (str_ends_with($term, '\\*')) {
273 $term = substr($term, 0, -2);
275 $term .= $BR;
278 if (in_array($term, [$BL, $BR, $BL . $BR], true)) {
279 $term = '';
281 return $term;