[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of Twig. 5 * 6 * (c) Fabien Potencier 7 * 8 * For the full copyright and license information, please view the LICENSE 9 * file that was distributed with this source code. 10 */ 11 12 namespace Twig; 13 14 /** 15 * Marks a content as safe. 16 * 17 * @author Fabien Potencier <fabien@symfony.com> 18 */ 19 class Markup implements \Countable 20 { 21 protected $content; 22 protected $charset; 23 24 public function __construct($content, $charset) 25 { 26 $this->content = (string) $content; 27 $this->charset = $charset; 28 } 29 30 public function __toString() 31 { 32 return $this->content; 33 } 34 35 public function count() 36 { 37 return \function_exists('mb_get_info') ? mb_strlen($this->content, $this->charset) : \strlen($this->content); 38 } 39 } 40 41 class_alias('Twig\Markup', 'Twig_Markup');
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |