Re: [PHP-I18N] proposal: unification of the grapheme_extract functions
[email protected] (Stanislav Malyshev) Mon, 05 May 2008 10:58:04 -0700
| Newsgroups | php.i18n |
|---|---|
| Organization | Zend Technologies |
| Message-ID | <[email protected]> |
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]