Function utf8_locate_current_chr
Given a string and any byte index, returns the byte index of the start of the current UTF-8 character, relative to supplied position. If the current character begins at the same place as the supplied byte index, that byte index will be returned. Otherwise this function will step backwards, looking for the index where curent UTF-8 character begins
Package: utf8
Author: Chris Smith<chris@jalakai.co.uk>
Located at vendor/joomla/string/src/phputf8/utils/position.php
Author: Chris Smith<chris@jalakai.co.uk>
Located at vendor/joomla/string/src/phputf8/utils/position.php
Parameters summary
string |
& $str |
|
integer |
$idx |
byte index in the string |
Return value summary
integer
|
byte index of start of next UTF-8 character |