|
@@ 4559-4565 (lines=7) @@
|
| 4556 |
|
self::checkForSupport(); |
| 4557 |
|
} |
| 4558 |
|
|
| 4559 |
|
if ( |
| 4560 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 4561 |
|
&& |
| 4562 |
|
self::$SUPPORT['intl'] === true |
| 4563 |
|
) { |
| 4564 |
|
return \grapheme_stripos($haystack, $needle, $offset); |
| 4565 |
|
} |
| 4566 |
|
|
| 4567 |
|
// fallback to "mb_"-function via polyfill |
| 4568 |
|
return \mb_stripos($haystack, $needle, $offset, $encoding); |
|
@@ 4953-4959 (lines=7) @@
|
| 4950 |
|
} |
| 4951 |
|
} |
| 4952 |
|
|
| 4953 |
|
if ( |
| 4954 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 4955 |
|
&& |
| 4956 |
|
self::$SUPPORT['intl'] === true |
| 4957 |
|
) { |
| 4958 |
|
return \grapheme_strpos($haystack, $needle, $offset); |
| 4959 |
|
} |
| 4960 |
|
|
| 4961 |
|
if ( |
| 4962 |
|
$offset >= 0 // iconv_strpos() can't handle negative offset |
|
@@ 5154-5160 (lines=7) @@
|
| 5151 |
|
return \mb_strripos($haystack, $needle, $offset, $encoding); |
| 5152 |
|
} |
| 5153 |
|
|
| 5154 |
|
if ( |
| 5155 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 5156 |
|
&& |
| 5157 |
|
self::$SUPPORT['intl'] === true |
| 5158 |
|
) { |
| 5159 |
|
return \grapheme_strripos($haystack, $needle, $offset); |
| 5160 |
|
} |
| 5161 |
|
|
| 5162 |
|
// fallback via vanilla php |
| 5163 |
|
|
|
@@ 5225-5231 (lines=7) @@
|
| 5222 |
|
return \mb_strrpos($haystack, $needle, $offset, $encoding); |
| 5223 |
|
} |
| 5224 |
|
|
| 5225 |
|
if ( |
| 5226 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 5227 |
|
&& |
| 5228 |
|
self::$SUPPORT['intl'] === true |
| 5229 |
|
) { |
| 5230 |
|
return \grapheme_strrpos($haystack, $needle, $offset); |
| 5231 |
|
} |
| 5232 |
|
|
| 5233 |
|
// fallback via vanilla php |
| 5234 |
|
|