protected function match($regex, &$out, $eatWhitespace = null)
{
if (!isset($eatWhitespace)) {
$eatWhitespace = $this->eatWhiteDefault;
}
$r = '/' . $regex . '/' . $this->patternModifiers;
if (preg_match($r, $this->buffer, $out, null, $this->count)) {
$this->count += strlen($out[0]);
if ($eatWhitespace) {
$this->whitespace();
}
return true;
}
return false;
}