From: <sy...@us...> - 2003-09-10 05:47:34
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1:/tmp/cvs-serv12924 Modified Files: tiki-setup_base.php Log Message: mb-substr mispelling: Thanks Ross Index: tiki-setup_base.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-setup_base.php,v retrieving revision 1.32 retrieving revision 1.33 diff -u -d -r1.32 -r1.33 --- tiki-setup_base.php 9 Sep 2003 14:19:07 -0000 1.32 +++ tiki-setup_base.php 10 Sep 2003 05:47:30 -0000 1.33 @@ -118,13 +118,14 @@ return $res["tran"]; } } -/* \brief substr with a utf8 string - works only with $start and $length positive ou nuls +/* \brief substr with a utf8 string - works only with $start and $length positive or nuls * This function is the same as substr but works with multibyte - * The first byte of a multibyte sequence that represents a non-ASCII character is always in the range 0xC0 to 0xFD and it indicates how many bytes follow for this character. + * In a multybyte sequence, the first byte of a multibyte sequence that represents a non-ASCII character is always in the range 0xC0 to 0xFD + * and it indicates how many bytes follow for this character. * All further bytes in a multibyte sequence are in the range 0x80 to 0xBF. */ function utf8Substr($str, $start, $len = ''){ - if (function_exists('mb_subtr')) /* php is compile with the mulitbyte support */ + if (function_exists('mb_substr')) /* php is compiled with the mulitbyte support */ return mb_substr($string, $start, $len); $limit = strlen($str); for ($s = 0; $start > 0;--$start) {// found the real start |