src/CFPropertyList/CFBinaryPropertyList.php
public static function charsetStrlen($string, $charset = "UTF-8")
    {
        if (function_exists('mb_strlen')) {
            return mb_strlen($string, $charset);
        }
        if (function_exists('iconv_strlen')) {
            return iconv_strlen($string, $charset);
        }

        throw new PListException('neither iconv nor mbstring supported. how are we supposed to work on strings here?');
    }
public static function charsetStrlen($string, $charset = "UTF-8")
    {
        if (function_exists('mb_strlen')) {
            return mb_strlen($string, $charset);
        }
        if (function_exists('iconv_strlen')) {
            return iconv_strlen($string, $charset);
        }

        throw new PListException('neither iconv nor mbstring supported. how are we supposed to work on strings here?');
    }
public static function charsetStrlen ( $ string , $ charset = "UTF-8" ) { if ( function_exists ( 'mb_strlen' ) ) { return mb_strlen ( $ string , $ charset ) ; } if ( function_exists ( 'iconv_strlen' ) ) { return iconv_strlen ( $ string , $ charset ) ; } throw new PListException ( 'neither iconv nor mbstring supported. how are we supposed to work on strings here?' ) ; }
Count characters considering character set
Trying to use MBString, Iconv - in that particular order.
@param string $string the string to convert
@param string $charset the charset the given string is currently encoded in
@return integer The number of characters in that string
@throws PListException on neither MBString, Iconv being available
Count characters considering character set Trying to use MBString Iconv - in that particular order .