|
@@ 1331-1339 (lines=9) @@
|
| 1328 |
|
return self::to_iso8859($str); |
| 1329 |
|
} |
| 1330 |
|
|
| 1331 |
|
if ( |
| 1332 |
|
$encoding !== 'UTF-8' |
| 1333 |
|
&& |
| 1334 |
|
$encoding !== 'WINDOWS-1252' |
| 1335 |
|
&& |
| 1336 |
|
self::$SUPPORT['mbstring'] === false |
| 1337 |
|
) { |
| 1338 |
|
trigger_error('UTF8::encode() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
| 1339 |
|
} |
| 1340 |
|
|
| 1341 |
|
$strEncoded = \mb_convert_encoding( |
| 1342 |
|
$str, |
|
@@ 5005-5011 (lines=7) @@
|
| 5002 |
|
self::checkForSupport(); |
| 5003 |
|
} |
| 5004 |
|
|
| 5005 |
|
if ( |
| 5006 |
|
$encoding !== 'UTF-8' |
| 5007 |
|
&& |
| 5008 |
|
self::$SUPPORT['mbstring'] === false |
| 5009 |
|
) { |
| 5010 |
|
trigger_error('UTF8::stristr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
| 5011 |
|
} |
| 5012 |
|
|
| 5013 |
|
if (self::$SUPPORT['mbstring'] === true) { |
| 5014 |
|
return \mb_stristr($haystack, $needle, $before_needle, $encoding); |
|
@@ 5505-5511 (lines=7) @@
|
| 5502 |
|
self::checkForSupport(); |
| 5503 |
|
} |
| 5504 |
|
|
| 5505 |
|
if ( |
| 5506 |
|
$encoding !== 'UTF-8' |
| 5507 |
|
&& |
| 5508 |
|
self::$SUPPORT['mbstring'] === false |
| 5509 |
|
) { |
| 5510 |
|
trigger_error('UTF8::strripos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
| 5511 |
|
} |
| 5512 |
|
|
| 5513 |
|
if (self::$SUPPORT['mbstring'] === true) { |
| 5514 |
|
return \mb_strripos($haystack, $needle, $offset, $encoding); |
|
@@ 5585-5591 (lines=7) @@
|
| 5582 |
|
self::checkForSupport(); |
| 5583 |
|
} |
| 5584 |
|
|
| 5585 |
|
if ( |
| 5586 |
|
$encoding !== 'UTF-8' |
| 5587 |
|
&& |
| 5588 |
|
self::$SUPPORT['mbstring'] === false |
| 5589 |
|
) { |
| 5590 |
|
trigger_error('UTF8::strrpos() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
| 5591 |
|
} |
| 5592 |
|
|
| 5593 |
|
if (self::$SUPPORT['mbstring'] === true) { |
| 5594 |
|
$returnTmp = \mb_strrpos($haystack, $needle, $offset, $encoding); |
|
@@ 5691-5697 (lines=7) @@
|
| 5688 |
|
self::checkForSupport(); |
| 5689 |
|
} |
| 5690 |
|
|
| 5691 |
|
if ( |
| 5692 |
|
$encoding !== 'UTF-8' |
| 5693 |
|
&& |
| 5694 |
|
self::$SUPPORT['mbstring'] === false |
| 5695 |
|
) { |
| 5696 |
|
trigger_error('UTF8::strstr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
| 5697 |
|
} |
| 5698 |
|
|
| 5699 |
|
if (self::$SUPPORT['mbstring'] === true) { |
| 5700 |
|
$returnTmp = \mb_strstr($haystack, $needle, $before_needle, $encoding); |
|
@@ 5972-5978 (lines=7) @@
|
| 5969 |
|
self::checkForSupport(); |
| 5970 |
|
} |
| 5971 |
|
|
| 5972 |
|
if ( |
| 5973 |
|
$encoding !== 'UTF-8' |
| 5974 |
|
&& |
| 5975 |
|
self::$SUPPORT['mbstring'] === false |
| 5976 |
|
) { |
| 5977 |
|
trigger_error('UTF8::substr() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
| 5978 |
|
} |
| 5979 |
|
|
| 5980 |
|
if (self::$SUPPORT['mbstring'] === true) { |
| 5981 |
|
return \mb_substr($str, $start, $length, $encoding); |
|
@@ 6085-6091 (lines=7) @@
|
| 6082 |
|
self::checkForSupport(); |
| 6083 |
|
} |
| 6084 |
|
|
| 6085 |
|
if ( |
| 6086 |
|
$encoding !== 'UTF-8' |
| 6087 |
|
&& |
| 6088 |
|
self::$SUPPORT['mbstring'] === false |
| 6089 |
|
) { |
| 6090 |
|
trigger_error('UTF8::substr_count() without mbstring cannot handle "' . $encoding . '" encoding', E_USER_WARNING); |
| 6091 |
|
} |
| 6092 |
|
|
| 6093 |
|
if (self::$SUPPORT['mbstring'] === true) { |
| 6094 |
|
return \mb_substr_count($haystack, $needle, $encoding); |