You are here

public function Twig_Markup::count in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Markup.php \Twig_Markup::count()

File

vendor/twig/twig/lib/Twig/Markup.php, line 33

Class

Twig_Markup
Marks a content as safe.

Code

public function count() {
  return function_exists('mb_get_info') ? mb_strlen($this->content, $this->charset) : strlen($this->content);
}