Lines Matching refs:str
80 function manipulateTerm($str = '') argument
83 if (!preg_match('/^".*"$/u', $str)) {
85 $str = str_replace('"', ' ', $str);
88 $str = preg_replace('/\x{3000}/u', ' ', $str);
91 $str = implode(
93 array_map(array($this, 'makePhrase'), explode(' ', $str))
97 return $str;
103 function makePhrase($str = '') argument
106 if (!preg_match('/^[\-\@\^]/u', $str)) {
107 $str = preg_replace('/(' . IDX_ASIAN . '+)/u', ' "$1" ', $str);
108 $str = trim($str);
111 return $str;
157 list($str,$idx) = $match[0];
161 $utf8_len = utf8_strlen($str);