Re: proposal: unification of the grapheme_extract functions
| From: | Stanislav Malyshev | Date: | Mon, 05 May 2008 17:58:04 +0000 |
| Subject: | Re: proposal: unification of the grapheme_extract functions | ||
| References: | 1 | Groups: | php.i18n |
| Request: | Send a blank email to php-i18n+get-1173@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 ,I think it looks good. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.comint $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