Re: [VOTE][RFC] Add multibyte trim function mb_trim, mb_ltrim and mb_rtrim
| From: | youkidearitai | Date: | Sun, 19 Nov 2023 01:55:16 +0000 |
| Subject: | Re: [VOTE][RFC] Add multibyte trim function mb_trim, mb_ltrim and mb_rtrim | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-121715@lists.php.net to get a copy of this message | ||
2023年11月19日(日) 5:11 mickmackusa <mickmackusa@gmail.com>:
> Can you please clear up some ambiguity for me regarding mb_trim()?
>
> Is it true that the .. character range syntax will not be supported at all or is it merely that
> that syntax will not be allowed when one of the range limits includes a multibyte character?
>
> Is a mix of a single byte range plus individual multibyte characters allowed?
>
> If .. is attempted, will it be silently interpretted as two literal dots or will some kind of
> Notice be issued?
>
> I want to keep https://stackoverflow.com/a/72865139/2943403
> accurate and up to date.
Hi,
Yes, mb_trim series is not support ".." notation. ".." is processed as
is. Because single byte character code is also Unicode mapping
incompatible.
For example, ISO-8859 series, KOI8-R and KOI8-U etc...
Regards
Yuya
--
---------------------------
Yuya Hamada (tekimen)
- https://tekitoh-memdhoi.info
- https://github.com/youkidearitai
-----------------------------