protected function parseShortForm($pos)
	{
		preg_match_all($this->shortRegexp, $this->text, $matches, PREG_OFFSET_CAPTURE, $pos);
		foreach ($matches[0] as list($match, $matchPos))
		{
			$matchLen = strlen($match);
			$startPos = $matchPos;
			$endLen   = (substr($match, -1) === $this->syntaxChar) ? 1 : 0;
			$endPos   = $matchPos + $matchLen - $endLen;

			$this->parser->addTagPair($this->tagName, $startPos, 1, $endPos, $endLen);
		}
	}
protected function parseShortForm($pos)
	{
		preg_match_all($this->shortRegexp, $this->text, $matches, PREG_OFFSET_CAPTURE, $pos);
		foreach ($matches[0] as list($match, $matchPos))
		{
			$matchLen = strlen($match);
			$startPos = $matchPos;
			$endLen   = (substr($match, -1) === $this->syntaxChar) ? 1 : 0;
			$endPos   = $matchPos + $matchLen - $endLen;

			$this->parser->addTagPair($this->tagName, $startPos, 1, $endPos, $endLen);
		}
	}
protected function parseShortForm ( $ pos ) { preg_match_all ( $ this -> shortRegexp , $ this -> text , $ matches , PREG_OFFSET_CAPTURE , $ pos ) ; foreach ( $ matches [ 0 ] as list ( $ match , $ matchPos ) ) { $ matchLen = strlen ( $ match ) ; $ startPos = $ matchPos ; $ endLen = ( substr ( $ match , - 1 ) === $ this -> syntaxChar ) ? 1 : 0 ; $ endPos = $ matchPos + $ matchLen - $ endLen ; $ this -> parser -> addTagPair ( $ this -> tagName , $ startPos , 1 , $ endPos , $ endLen ) ; } }
Parse the short form x^x and x^x^

This syntax is supported by most implementations that support superscript

@param  integer $pos Position of the first relevant character
@return void
Parse the short form x^x and x^x^