Re: Re: [Proposal] Extend support for negative string offsets
| From: | flaupretre at free dot fr | Date: | Fri, 24 Jul 2015 02:20:35 +0000 |
| Subject: | Re: Re: [Proposal] Extend support for negative string offsets | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87259@lists.php.net to get a copy of this message | ||
Hi,
> De: "Christoph Becker" <cmbecker69@gmx.de>
>
> That may be useful as well, but what about the respective mbstring and
> grapheme functions? At least these should be improved as well, but I'm
> not sure if that can be done in an efficient manner.
iconv, mb, and grapheme functions need to be modified the same way as binary string ones. In each
case, I will apply the same mechanisms already applied to the the _substr() function, which already
support negative offset and length.
BTW, it allowed me to discover that NULL is already used as default value for length, at least in
grapheme_substr() and mb_substr(). So, it confirms my idea of extending this to every other
'length' parameter.
Regards
François