Searched refs:utf8_idx (Results 1 – 1 of 1) sorted by relevance
500 $utf8_idx = PhpString::strlen(substr($text, 0, $idx));506 $pre = min($utf8_idx - $utf8_offset, 100);507 $post = min($len - $utf8_idx - $utf8_len, 100);526 $start = $utf8_idx - $pre;528 $end = $utf8_idx + $utf8_len + $post; // now set it to the end of this context541 $utf8_offset = $utf8_idx + $utf8_len;542 $offset = $idx + strlen(PhpString::substr($text, $utf8_idx, $utf8_len));