Re: [RFC] Unicode Text Processing
| From: | youkidearitai | Date: | Tue, 12 May 2026 02:51:27 +0000 |
| Subject: | Re: [RFC] Unicode Text Processing | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-130846@lists.php.net to get a copy of this message | ||
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_processing
>
> I'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.io
>
> Author of Xdebug. Like it? Consider supporting me:
> https://xdebug.org/support
> Host of PHP Internals News: https://phpinternals.news
>
> mastodon: @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.
1. Move to Intl extension such as \Intl\Text
* I think keep it simple for implementation.
2. Add Text type for grapheme_* function only such as string|Text.
* It is some complexy for implementation but userland is simple
3. If UTF-8 validaion failed, throws an exception
__toString method returns string type is seems good.
Please consider this.
Regards
Yuya