| @@ 4702-4710 (lines=9) @@ | ||
| 4699 | $str = self::clean($str); |
|
| 4700 | } |
|
| 4701 | ||
| 4702 | if ( |
|
| 4703 | $encoding !== 'UTF-8' |
|
| 4704 | && |
|
| 4705 | self::$SUPPORT['mbstring'] === false |
|
| 4706 | && |
|
| 4707 | self::$SUPPORT['iconv'] === false |
|
| 4708 | ) { |
|
| 4709 | \trigger_error('UTF8::strlen() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 4710 | } |
|
| 4711 | ||
| 4712 | if ( |
|
| 4713 | $encoding !== 'UTF-8' |
|
| @@ 4928-4936 (lines=9) @@ | ||
| 4925 | return \strpos($haystack, $needle, $offset); |
|
| 4926 | } |
|
| 4927 | ||
| 4928 | if ( |
|
| 4929 | $encoding !== 'UTF-8' |
|
| 4930 | && |
|
| 4931 | self::$SUPPORT['iconv'] === false |
|
| 4932 | && |
|
| 4933 | self::$SUPPORT['mbstring'] === false |
|
| 4934 | ) { |
|
| 4935 | \trigger_error('UTF8::strpos() without mbstring / iconv cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
|
| 4936 | } |
|
| 4937 | ||
| 4938 | if ( |
|
| 4939 | $offset >= 0 // iconv_strpos() can't handle negative offset |
|