Multi-byte string functions

7 views
Skip to first unread message

TomW

unread,
Mar 29, 2009, 6:36:17 AM3/29/09
to php-text-statistics
The PHP installation does not have the multi-byte string functions
enabled by default. Is there a way to determine if they are enabled
and then use them, and otherwise skip straight to the built-in strlen?

TomW

unread,
Mar 29, 2009, 6:49:35 AM3/29/09
to php-text-statistics
I wrapped function_exists('mb_*') checks around each of the sections
where a multi-byte function called. Is this the reason why there are
try catch blocks wrapped around them? If so, I can remove the try
catch blocks as they didn't work to avoid the case where the mb_*
functions were not available.

I would like to submit the fix for review.

Regards,
Tom Walker
Reply all
Reply to author
Forward
0 new messages