Re: proposal: unification of the grapheme_extract functions

Stanislav Malyshev <[email protected]> Mon, 05 May 2008 10:58:04 -0700
Newsgroups gmane.comp.php.internationalization
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]

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