[prev in list] [next in list] [prev in thread] [next in thread]
List: php-internals
Subject: Re: [PHP-DEV] Re: [Proposal] Extend support for negative string offsets
From: flaupretre () free ! fr
Date: 2015-07-24 2:20:35
Message-ID: 1353319313.7224073.1437704435303.JavaMail.root () zimbra71-e12 ! priv ! proxad ! net
[Download RAW message or body]
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 binar=
y string ones. In each case, I will apply the same mechanisms already appli=
ed 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 f=
or length, at least in grapheme_substr() and mb_substr(). So, it confirms m=
y idea of extending this to every other 'length' parameter.
Regards
Fran=C3=A7ois
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic