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