RE: [PHP-I18N] proposal: unification of the grapheme_extract functions
[email protected] ("Ed Batutis") Mon, 12 May 2008 09:59:43 -0400
| Newsgroups | php.i18n |
|---|---|
| Message-ID | <[email protected]> |
> 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