11 if ( !defined(
'UTF8_CORE') ) {
12 define(
'UTF8_CORE',TRUE);
27 return mb_strlen($str);
44 if ( $offset === FALSE ) {
45 return mb_strpos($str, $search);
47 return mb_strpos($str, $search, $offset);
64 if ( $offset === FALSE ) {
65 # Emulate behaviour of strrpos rather than raising warning
69 return mb_strrpos($str, $search);
71 if ( !is_int($offset) ) {
72 trigger_error(
'utf8_strrpos expects parameter 3 to be long',E_USER_WARNING);
76 $str = mb_substr($str, $offset);
78 if ( FALSE !== ( $pos = mb_strrpos($str, $search) ) ) {
79 return $pos + $offset;
99 if ( $length === FALSE ) {
100 return mb_substr($str, $offset);
102 return mb_substr($str, $offset, $length);
121 return mb_strtolower($str);
139 return mb_strtoupper($str);