protected function processEmphasisMatch($matchPos, $matchLen)
	{
		$canOpen  = !$this->text->isBeforeWhitespace($matchPos + $matchLen - 1);
		$canClose = !$this->text->isAfterWhitespace($matchPos);
		$closeLen = ($canClose) ? min($matchLen, 3) : 0;

		$this->closeEm      = ($closeLen & 1) && isset($this->emPos);
		$this->closeStrong  = ($closeLen & 2) && isset($this->strongPos);
		$this->emEndPos     = $matchPos;
		$this->strongEndPos = $matchPos;
		$this->remaining    = $matchLen;

		$this->adjustStartingPositions();
		$this->adjustEndingPositions();
		$this->closeSpans();

		// Adjust the length of unused markup remaining in current match
		$this->remaining = ($canOpen) ? min($this->remaining, 3) : 0;
		$this->openSpans($matchPos + $matchLen);
	}
protected function processEmphasisMatch($matchPos, $matchLen)
	{
		$canOpen  = !$this->text->isBeforeWhitespace($matchPos + $matchLen - 1);
		$canClose = !$this->text->isAfterWhitespace($matchPos);
		$closeLen = ($canClose) ? min($matchLen, 3) : 0;

		$this->closeEm      = ($closeLen & 1) && isset($this->emPos);
		$this->closeStrong  = ($closeLen & 2) && isset($this->strongPos);
		$this->emEndPos     = $matchPos;
		$this->strongEndPos = $matchPos;
		$this->remaining    = $matchLen;

		$this->adjustStartingPositions();
		$this->adjustEndingPositions();
		$this->closeSpans();

		// Adjust the length of unused markup remaining in current match
		$this->remaining = ($canOpen) ? min($this->remaining, 3) : 0;
		$this->openSpans($matchPos + $matchLen);
	}
protected function processEmphasisMatch ( $ matchPos , $ matchLen ) { $ canOpen = ! $ this -> text -> isBeforeWhitespace ( $ matchPos + $ matchLen - 1 ) ; $ canClose = ! $ this -> text -> isAfterWhitespace ( $ matchPos ) ; $ closeLen = ( $ canClose ) ? min ( $ matchLen , 3 ) : 0 ; $ this -> closeEm = ( $ closeLen & 1 ) && isset ( $ this -> emPos ) ; $ this -> closeStrong = ( $ closeLen & 2 ) && isset ( $ this -> strongPos ) ; $ this -> emEndPos = $ matchPos ; $ this -> strongEndPos = $ matchPos ; $ this -> remaining = $ matchLen ; $ this -> adjustStartingPositions ( ) ; $ this -> adjustEndingPositions ( ) ; $ this -> closeSpans ( ) ; // Adjust the length of unused markup remaining in current match $ this -> remaining = ( $ canOpen ) ? min ( $ this -> remaining , 3 ) : 0 ; $ this -> openSpans ( $ matchPos + $ matchLen ) ; }
Process an emphasis mark

@param  integer $matchPos
@param  integer $matchLen
@return void
Process an emphasis mark