CoreFiles by mySites.guru
strlen.php28 lines, 646 bytes, from Joomla_1.5.0-Stable-Full_Package.zip
Raw History Compare with 1.0.15
md5
9e13376df4064b5a31ef0dd06082acd3
sha1
28dcca42626827fb3ecc14c0f5cdb48368b99ecd
sha256
a2f44c1be564143fd6841ecb2951f2c494c398b416bbce24c36dd6d5c44ece44
<?php
/**
* @version $Id: strlen.php 7692 2007-06-08 20:41:29Z tcp $
* @package utf8
* @subpackage strings
*/

/**
* Define UTF8_STRLEN as required
*/
if ( !defined('UTF8_STRLEN') ) {
    define('UTF8_STRLEN',TRUE);
}

//--------------------------------------------------------------------
/**
* Wrapper round mb_strlen
* Assumes you have mb_internal_encoding to UTF-8 already
* Note: this function does not count bad bytes in the string - these
* are simply ignored
* @param string UTF-8 string
* @return int number of UTF-8 characters in string
* @package utf8
* @subpackage strings
*/
function utf8_strlen($str){
    return mb_strlen($str);
}

The same content is in 4 releases, Joomla 1.5.0 to 1.5.3. See them all, or every version of this file.