Lines Matching refs:str
134 function encodeUtf8($str) { argument
135 preg_match_all("/&#([0-9]*?);/", $str, $unicode);
137 $str = preg_replace("/".$value."/", $this->code2utf8($unicode[1][$key]), $str);
139 return $str;
151 function utf8_to_unicode( $str ) { argument
156 for ($i = 0; $i < strlen( $str ); $i++ ) {
157 $thisValue = ord( $str[ $i ] );
182 function unicode_to_utf8( $str ) { argument
184 foreach( $str as $unicode ) {
258 function utf8_substr($str, $start, $length=null){ argument
260 return mb_substr($str,$start,$length,'utf-8');
262 $uni = $this->utf8_to_unicode($str);
272 function utf8_ucfirst($str) { argument
273 $fc = $this->utf8_substr($str, 0, 1);
274 return $this->utf8_strtoupper($fc) . $this->utf8_substr($str, 1, $this->utf8_strlen($str));
291 function utf8_htmlspecialchars ($str) { argument
292 $str = str_replace("\"", """, $str);
293 $str = str_replace("<", "<", $str);
294 $str = str_replace(">", ">", $str);
295 $str = preg_replace("/&(?![a-zA-Z0-9#]+?;)/", "&", $str);
296 return $str;