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