You are here

public function Twig_Markup::count in Translation template extractor 6.3

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

File

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