Example #1
0
 public function filterString($string, array $rendererStates)
 {
     if (empty($rendererStates['stopSmilies']) && $this->_smilieTranslate) {
         $translated = strtr($string, $this->_smilieTranslate);
         $this->_smilieTally += preg_match_all("#\\0(\\d+)\\0#", $translated, $null);
     }
     $this->_printableLength += $this->_getPrintableLength($string, $rendererStates);
     return parent::filterString($string, $rendererStates);
 }