proposal: unification of the grapheme_extract functions
| From: | Ed Batutis | Date: | Fri, 02 May 2008 21:48:42 +0000 |
| Subject: | proposal: unification of the grapheme_extract functions | ||
| Groups: | php.i18n | ||
| Request: | Send a blank email to php-i18n+get-1172@lists.php.net to get a copy of this message | ||
Hi,
I am proposing to unify the three grapheme_extract functions this way:
string grapheme_extract ( string $haystack ,
int $size
[, int $extract_type
[, string $start ]] )
where $extract_type is:
GRAPHEME_EXTR_COUNT - $size is number of graphemes (default)
GRAPHEME_EXTR_MAXBYTES - $size is maximum number of bytes to extract
GRAPHEME_EXTR_MAXCHARS - $size is maximum number of UTF-8 character to
extract
and the other arguments are as in the current set of extract functions.
Sorry if I missed someone's proposal for this - I am only on the php-i18n
list at this point. Please post your proposal to this list, if possible.
Thanks,
=Ed