*/ class Markup implements \Countable { protected $content; protected $charset; public function __construct($content, $charset) { $this->content = (string) $content; $this->charset = $charset; } public function __toString() { return $this->content; } public function count() { return \function_exists('mb_get_info') ? \mb_strlen($this->content, $this->charset) : \strlen($this->content); } } \class_alias('WPML\\Core\\Twig\\Markup', 'WPML\\Core\\Twig_Markup');