private function consume($mValue = 1)
{
if (is_string($mValue)) {
$iLength = $this->strlen($mValue);
if (!$this->streql($this->substr($this->iCurrentPosition, $iLength), $mValue)) {
throw new UnexpectedTokenException($mValue, $this->peek(max($iLength, 5)));
}
$this->iCurrentPosition += $this->strlen($mValue);
return $mValue;
} else {
if ($this->iCurrentPosition + $mValue > $this->iLength) {
throw new UnexpectedTokenException($mValue, $this->peek(5), 'count');
}
$sResult = $this->substr($this->iCurrentPosition, $mValue);
$this->iCurrentPosition += $mValue;
return $sResult;
}
}