A grapheme functions is not locale dependency. This RFC is add locale parameter for grapheme case insensitive functions.
By this RFC can cover locale. For example.
var_dump(grapheme_stripos("i", "\u{0130}", 0, "tr_TR")); // Result is 0 var_dump(grapheme_stripos("i", "\u{0130}", 0, "en_US")); // Result is false
If this RFC is accept, I would go to new RFC for grapheme_icontains (Locale dependency and case-insensitive of str_contains). Because grapheme function is not locale dependency now.
Add a $locale parameter in these functions.
function grapheme_stripos(string $haystack, string $needle, int $offset = 0, ?string $locale = null): int|false function grapheme_strripos(string $haystack, string $needle, int $offset = 0, ?string $locale = null): int|false function grapheme_stristr(string $haystack, string $needle, bool $beforeNeedle = false, ?string $locale = null): string|false
Maybe nothing.
8.5
No effects.
No effects.
No effects.
No effects.
Nothing.
This section details areas where the feature might be improved in future, but that are not currently proposed in this RFC.
Include these so readers know where you are heading and can discuss the proposed voting options.
Keep this updated with features that were discussed on the mail lists.