You are here

protected static function kintVariableData::_strlen in Devel 8

Same name and namespace in other branches
  1. 8.2 kint/kint/inc/kintVariableData.class.php \kintVariableData::_strlen()
1 call to kintVariableData::_strlen()
kintParser::_parse_string in kint/kint/inc/kintParser.class.php

File

kint/kint/inc/kintVariableData.class.php, line 83

Class

kintVariableData

Code

protected static function _strlen($string, $encoding = null) {
  if (function_exists('mb_strlen')) {
    $encoding or $encoding = self::_detectEncoding($string);
    return mb_strlen($string, $encoding);
  }
  else {
    return strlen($string);
  }
}