2022年12月16日(金) 0:34 Derick Rethans <derick@php.net>:
Hi,
I have just published an initial draft of the “Unicode Text Processing”
RFC, a proposal to have performant unicode text processing always
available to PHP users, by introducing a new “Text” class.You can find it at:
https://wiki.php.net/rfc/unicode_text_processingI’m looking forwards to hearing your opinions, additions, and
suggestions — the RFC specifically asks for these in places.cheers,
Derick–
https://derickrethans.nl | https://xdebug.org | https://dram.ioAuthor of Xdebug. Like it? Consider supporting me: https://xdebug.org/support
Host of PHP Internals News: https://phpinternals.newsmastodon: @derickr@phpc.social @xdebug@phpc.social
twitter: @derickr and @xdebug–
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php
Hi, Derick and Internals
Is still available this topic?
I have interesting this Text class.
I’m glad to control based on grapheme cluster such as Swift’s string type.
I have some idea.
- Move to Intl extension such as \Intl\Text
- I think keep it simple for implementation.
- Add Text type for grapheme_* function only such as string|Text.
- It is some complexy for implementation but userland is simple
- If UTF-8 validaion failed, throws an exception
__toString method returns string type is seems good.
Please consider this.
Regards
Yuya