| @@ 4600-4608 (lines=9) @@ | ||
| 4597 | $str = self::clean($str); |
|
| 4598 | } |
|
| 4599 | ||
| 4600 | if ( |
|
| 4601 | $encoding !== 'UTF-8' |
|
| 4602 | && |
|
| 4603 | self::$SUPPORT['mbstring'] === false |
|
| 4604 | && |
|
| 4605 | self::$SUPPORT['iconv'] === false |
|
| 4606 | ) { |
|
| 4607 | trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 4608 | } |
|
| 4609 | ||
| 4610 | if ( |
|
| 4611 | $encoding !== 'UTF-8' |
|
| @@ 4826-4834 (lines=9) @@ | ||
| 4823 | return \strpos($haystack, $needle, $offset); |
|
| 4824 | } |
|
| 4825 | ||
| 4826 | if ( |
|
| 4827 | $encoding !== 'UTF-8' |
|
| 4828 | && |
|
| 4829 | self::$SUPPORT['iconv'] === false |
|
| 4830 | && |
|
| 4831 | self::$SUPPORT['mbstring'] === false |
|
| 4832 | ) { |
|
| 4833 | trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 4834 | } |
|
| 4835 | ||
| 4836 | if ( |
|
| 4837 | $offset >= 0 // iconv_strpos() can't handle negative offset |
|