original_string: public static function stringLength($value)
      {
          if (is_null(self::$multiByteSupport)) {
              self::$multiByteSupport = intval(ini_get('mbstring.func_overload'));
          }
  
          if (self::$multiByteSupport & 2) {
              return mb_strlen($value, '8bit');
          } else {
              return strlen($value);
          }
      }
code: public static function stringLength($value)
      {
          if (is_null(self::$multiByteSupport)) {
              self::$multiByteSupport = intval(ini_get('mbstring.func_overload'));
          }
  
          if (self::$multiByteSupport & 2) {
              return mb_strlen($value, '8bit');
          } else {
              return strlen($value);
          }
      }
code_tokens: public static function stringLength ( $ value ) { if ( is_null ( self :: $ multiByteSupport ) ) { self :: $ multiByteSupport = intval ( ini_get ( 'mbstring.func_overload' ) ) ; } if ( self :: $ multiByteSupport & 2 ) { return mb_strlen ( $ value , '8bit' ) ; } else { return strlen ( $ value ) ; } }
docstring: Determine if we should use mb_strlen or stock strlen.
  
  @param string $value The string value to check
  
  @return int Size of string
  
  @see MHlavac\Gearman\Connection::$multiByteSupport
docstring_tokens: Determine if we should use mb_strlen or stock strlen .