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

I think it looks good.

--
Stanislav Malyshev, Zend Software Architect
[EMAIL PROTECTED]   http://www.zend.com/
(408)253-8829   MSN: [EMAIL PROTECTED]

--
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to