Home
last modified time | relevance | path

Searched refs:utf8_idx (Results 1 – 1 of 1) sorted by relevance

/plugin/asiansearch/
H A Daction.php160 $utf8_idx = utf8_strlen(substr($text,0,$idx));
166 $pre = min($utf8_idx-$utf8_offset,100);
167 $post = min($len-$utf8_idx-$utf8_len,100);
185 $start = $utf8_idx - $pre;
187 $end = $utf8_idx + $utf8_len + $post; // now set it to the end of this context
200 $utf8_offset = $utf8_idx + $post;
201 $offset = $idx + strlen(utf8_substr($text,$utf8_idx,$post));