RE: [PHP-I18N] proposal: unification of the grapheme_extract functions

From: Date: Mon, 12 May 2008 13:59:43 +0000
Subject: RE: [PHP-I18N] proposal: unification of the grapheme_extract functions
References: 1  Groups: php.i18n 
Request: Send a blank email to php-i18n+get-1190@lists.php.net to get a copy of this message
> It is an option that should be offered, because it is good for > performance, but it is more tedious programming and harder to migrate > programs to use this functionality. I understand what you are saying. However, everyone should move towards using break iterator, I believe, for performance reasons! I could add more options to the extract call to allow the user to specify what $start means: GRAPHEME_EXTR_START_BYTE_COUNT GRAPHEME_EXTR_START_CHAR_COUNT GRAPHEME_EXTR_START_GRAPHEME_COUNT The next question would be - what is the default? Should it be 'byte count' in all cases, or should it match the $extract_type - graphemes if 'count', bytes if 'max bytes' etc. I suspect the latter, if I understand your use-case. Thoughts? =Ed

« previous php.i18n (#1190) next »