src/Service/Misc/Encoding.php
public function mbStrLen($string, $encoding = null)
    {
        // Meh, the original mb_strlen interprets a null here as an empty string.
        if ($encoding === null) {
            return mb_strlen($string);
        }
        return mb_strlen($string, $encoding);
    }
public function mbStrLen($string, $encoding = null)
    {
        // Meh, the original mb_strlen interprets a null here as an empty string.
        if ($encoding === null) {
            return mb_strlen($string);
        }
        return mb_strlen($string, $encoding);
    }
public function mbStrLen ( $ string , $ encoding = null ) { // Meh, the original mb_strlen interprets a null here as an empty string. if ( $ encoding === null ) { return mb_strlen ( $ string ) ; } return mb_strlen ( $ string , $ encoding ) ; }
Wrapper around mb_strlen, to circumvent a not installed
mb_string php extension.

@param string $string
The string we want to analyse
@param string $encoding
The known encoding of the string, if known.

@return integer
The result.
Wrapper around mb_strlen to circumvent a not installed mb_string php extension .