RE: [PHP-I18N] proposal: unification of the grapheme_extract functions
| From: | Ed Batutis | Date: | Mon, 12 May 2008 19:19:57 +0000 |
| Subject: | RE: [PHP-I18N] proposal: unification of the grapheme_extract functions | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1194@lists.php.net to get a copy of this message | ||
>
> Doesn't mb_substr implement the character stuff?
Yes, that covers a character offset and a character count to return. mb
calls don't know anything about graphemes, of course. (At one point I
considered adding a 'grapheme mode' to the mb API though.) grapheme_extract
is different, I think, because it is bridging graphemes and
bytes/characters. I don't know of an mb function like that - there's no
mb_extract.
=Ed