| @@ 5422-5430 (lines=9) @@ | ||
| 5419 | $str = self::clean($str); |
|
| 5420 | } |
|
| 5421 | ||
| 5422 | if ( |
|
| 5423 | $encoding !== 'UTF-8' |
|
| 5424 | && |
|
| 5425 | self::$SUPPORT['mbstring'] === false |
|
| 5426 | && |
|
| 5427 | self::$SUPPORT['iconv'] === false |
|
| 5428 | ) { |
|
| 5429 | trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5430 | } |
|
| 5431 | ||
| 5432 | if ( |
|
| 5433 | $encoding !== 'UTF-8' |
|
| @@ 5639-5647 (lines=9) @@ | ||
| 5636 | return strpos($haystack, $needle, $offset); |
|
| 5637 | } |
|
| 5638 | ||
| 5639 | if ( |
|
| 5640 | $encoding !== 'UTF-8' |
|
| 5641 | & |
|
| 5642 | self::$SUPPORT['iconv'] === true |
|
| 5643 | && |
|
| 5644 | self::$SUPPORT['mbstring'] === false |
|
| 5645 | ) { |
|
| 5646 | trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 5647 | } |
|
| 5648 | ||
| 5649 | if ( |
|
| 5650 | $offset >= 0 // iconv_strpos() can't handle negative offset |
|