| @@ 5434-5442 (lines=9) @@ | ||
| 5431 | $str = self::clean($str); |
|
| 5432 | } |
|
| 5433 | ||
| 5434 | if ( |
|
| 5435 | $encoding !== 'UTF-8' |
|
| 5436 | && |
|
| 5437 | self::$SUPPORT['mbstring'] === false |
|
| 5438 | && |
|
| 5439 | self::$SUPPORT['iconv'] === false |
|
| 5440 | ) { |
|
| 5441 | trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5442 | } |
|
| 5443 | ||
| 5444 | if ( |
|
| 5445 | $encoding !== 'UTF-8' |
|
| @@ 5651-5659 (lines=9) @@ | ||
| 5648 | return strpos($haystack, $needle, $offset); |
|
| 5649 | } |
|
| 5650 | ||
| 5651 | if ( |
|
| 5652 | $encoding !== 'UTF-8' |
|
| 5653 | & |
|
| 5654 | self::$SUPPORT['iconv'] === true |
|
| 5655 | && |
|
| 5656 | self::$SUPPORT['mbstring'] === false |
|
| 5657 | ) { |
|
| 5658 | trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5659 | } |
|
| 5660 | ||
| 5661 | if ( |
|
| 5662 | $offset >= 0 // iconv_strpos() can't handle negative offset |
|