original_string: protected function _cellWidth($text)
      {
          if (strpos($text, '<') === false && strpos($text, '>') === false) {
              return mb_strwidth($text);
          }
          $styles = array_keys($this->_io->styles());
          $tags = implode('|', $styles);
          $text = preg_replace('#</?(?:' . $tags . ')>#', '', $text);
  
          return mb_strwidth($text);
      }
code: protected function _cellWidth($text)
      {
          if (strpos($text, '<') === false && strpos($text, '>') === false) {
              return mb_strwidth($text);
          }
          $styles = array_keys($this->_io->styles());
          $tags = implode('|', $styles);
          $text = preg_replace('#</?(?:' . $tags . ')>#', '', $text);
  
          return mb_strwidth($text);
      }
code_tokens: protected function _cellWidth ( $ text ) { if ( strpos ( $ text , '<' ) === false && strpos ( $ text , '>' ) === false ) { return mb_strwidth ( $ text ) ; } $ styles = array_keys ( $ this -> _io -> styles ( ) ) ; $ tags = implode ( '|' , $ styles ) ; $ text = preg_replace ( '#</?(?:' . $ tags . ')>#' , '' , $ text ) ; return mb_strwidth ( $ text ) ; }
docstring: Get the width of a cell exclusive of style tags.
  
  @param string $text The text to calculate a width for.
  @return int The width of the textual content in visible characters.
docstring_tokens: Get the width of a cell exclusive of style tags .