[Discussion] grapheme cluster for str_split function
| From: | youkidearitai | Date: | Sat, 02 Mar 2024 23:21:53 +0000 |
| Subject: | [Discussion] grapheme cluster for str_split function | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-122540@lists.php.net to get a copy of this message | ||
Hi, Internals
I noticed PHP does not have grapheme cluster for str_split function.,
Until now, you had to use the PCRE function's \X.
Therefore, I try create
grapheme_str_split function.
https://github.com/php/php-src/pull/13580
It is possible to convert array per emoji and variation selectors using ICU.
If it's fine, I'll create an RFC.
Regards
Yuya
--
---------------------------
Yuya Hamada (tekimen)
- https://tekitoh-memdhoi.info
- https://github.com/youkidearitai
-----------------------------