protected function getAtxHeaderEndTagLen($startPos, $endPos)
	{
		$content = substr($this->text, $startPos, $endPos - $startPos);
		preg_match('/[ \\t]*#*[ \\t]*$/', $content, $m);

		return strlen($m[0]);
	}
protected function getAtxHeaderEndTagLen($startPos, $endPos)
	{
		$content = substr($this->text, $startPos, $endPos - $startPos);
		preg_match('/[ \\t]*#*[ \\t]*$/', $content, $m);

		return strlen($m[0]);
	}
protected function getAtxHeaderEndTagLen ( $ startPos , $ endPos ) { $ content = substr ( $ this -> text , $ startPos , $ endPos - $ startPos ) ; preg_match ( '/[ \\t]*#*[ \\t]*$/' , $ content , $ m ) ; return strlen ( $ m [ 0 ] ) ; }
Return the length of the markup at the end of an ATX header

@param  integer $startPos Start of the header's text
@param  integer $endPos   End of the header's text
@return integer
Return the length of the markup at the end of an ATX header