You are here

private function Application::stringWidth in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/console/Application.php \Symfony\Component\Console\Application::stringWidth()
1 call to Application::stringWidth()
Application::renderException in vendor/symfony/console/Application.php
Renders a caught exception.

File

vendor/symfony/console/Application.php, line 1067

Class

Application
An Application is the container for a collection of commands.

Namespace

Symfony\Component\Console

Code

private function stringWidth($string) {
  if (!function_exists('mb_strwidth')) {
    return strlen($string);
  }
  if (false === ($encoding = mb_detect_encoding($string))) {
    return strlen($string);
  }
  return mb_strwidth($string, $encoding);
}