Re: What "Unicode support" really means
| From: | Stas Malyshev | Date: | Sun, 09 Mar 2014 07:24:15 +0000 |
| Subject: | Re: What "Unicode support" really means | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-73021@lists.php.net to get a copy of this message | ||
Hi!
> Are we sure we want substr() to operate on printed characters and not codepoints?
We probably want both. You may have use case for "give me the third
character", but you also could have use case - though less frequently -
for "give me the third code point". And of course case of "give me the
third byte" should be covered too. As for if these all three should be
named substr() that remains to be seen.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227