CoreFiles by mySites.guru
strlen.php28 lines, 651 bytes, from Joomla_1.5.21-Stable-Full_Package.zip
Raw History Compare with 1.5.20
md5
4add1d0bdd7bb15108c7df220cfedce5
sha1
6f4fbe7a5c15da514a2b62a5fa7cbdbcf7a53416
sha256
8f2c6e136371af4a36ebc374b2634ab8ca4261df985fbd16b0a6aa57762b3585
<?php
/**
* @version $Id: strlen.php 10381 2008-06-01 03:35:53Z pasamio $
* @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 23 releases, Joomla 1.5.4 to 1.5.26. See them all, or every version of this file.