| @@ 5345-5353 (lines=9) @@ | ||
| 5342 | $str = self::clean($str); |
|
| 5343 | } |
|
| 5344 | ||
| 5345 | if ( |
|
| 5346 | $encoding !== 'UTF-8' |
|
| 5347 | && |
|
| 5348 | self::$SUPPORT['mbstring'] === false |
|
| 5349 | && |
|
| 5350 | self::$SUPPORT['iconv'] === false |
|
| 5351 | ) { |
|
| 5352 | trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5353 | } |
|
| 5354 | ||
| 5355 | if ( |
|
| 5356 | $encoding !== 'UTF-8' |
|
| @@ 5562-5570 (lines=9) @@ | ||
| 5559 | return strpos($haystack, $needle, $offset); |
|
| 5560 | } |
|
| 5561 | ||
| 5562 | if ( |
|
| 5563 | $encoding !== 'UTF-8' |
|
| 5564 | & |
|
| 5565 | self::$SUPPORT['iconv'] === true |
|
| 5566 | && |
|
| 5567 | self::$SUPPORT['mbstring'] === false |
|
| 5568 | ) { |
|
| 5569 | trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5570 | } |
|
| 5571 | ||
| 5572 | if ( |
|
| 5573 | $offset >= 0 // iconv_strpos() can't handle negative offset |
|