public function Twig_Markup::count

File

drupal/core/vendor/twig/twig/lib/Twig/Markup.php, line 34

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);
}