|
@@ 4568-4574 (lines=7) @@
|
| 4565 |
|
self::checkForSupport(); |
| 4566 |
|
} |
| 4567 |
|
|
| 4568 |
|
if ( |
| 4569 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 4570 |
|
&& |
| 4571 |
|
self::$SUPPORT['intl'] === true |
| 4572 |
|
) { |
| 4573 |
|
return \grapheme_stripos($haystack, $needle, $offset); |
| 4574 |
|
} |
| 4575 |
|
|
| 4576 |
|
// fallback to "mb_"-function via polyfill |
| 4577 |
|
return \mb_stripos($haystack, $needle, $offset, $encoding); |
|
@@ 4962-4968 (lines=7) @@
|
| 4959 |
|
} |
| 4960 |
|
} |
| 4961 |
|
|
| 4962 |
|
if ( |
| 4963 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 4964 |
|
&& |
| 4965 |
|
self::$SUPPORT['intl'] === true |
| 4966 |
|
) { |
| 4967 |
|
return \grapheme_strpos($haystack, $needle, $offset); |
| 4968 |
|
} |
| 4969 |
|
|
| 4970 |
|
if ( |
| 4971 |
|
$offset >= 0 // iconv_strpos() can't handle negative offset |
|
@@ 5163-5169 (lines=7) @@
|
| 5160 |
|
return \mb_strripos($haystack, $needle, $offset, $encoding); |
| 5161 |
|
} |
| 5162 |
|
|
| 5163 |
|
if ( |
| 5164 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 5165 |
|
&& |
| 5166 |
|
self::$SUPPORT['intl'] === true |
| 5167 |
|
) { |
| 5168 |
|
return \grapheme_strripos($haystack, $needle, $offset); |
| 5169 |
|
} |
| 5170 |
|
|
| 5171 |
|
// fallback via vanilla php |
| 5172 |
|
|
|
@@ 5234-5240 (lines=7) @@
|
| 5231 |
|
return \mb_strrpos($haystack, $needle, $offset, $encoding); |
| 5232 |
|
} |
| 5233 |
|
|
| 5234 |
|
if ( |
| 5235 |
|
$encoding === 'UTF-8' // INFO: "grapheme_stripos()" can't handle other encodings |
| 5236 |
|
&& |
| 5237 |
|
self::$SUPPORT['intl'] === true |
| 5238 |
|
) { |
| 5239 |
|
return \grapheme_strrpos($haystack, $needle, $offset); |
| 5240 |
|
} |
| 5241 |
|
|
| 5242 |
|
// fallback via vanilla php |
| 5243 |
|
|