private function stateNormal($str, $pos, &$next)
{
$ori = $pos;
$posSQ = strpos($str, '\'', $pos);
$posDQ = strpos($str, '"', $pos);
$pos = $posSQ;
$this->subStateQ = '\'';
$next = 'stateQ';
if ($posDQ !== false && ($posDQ < $pos || $pos === false)) {
$pos = $posDQ;
$this->subStateQ = '"';
}
if ($pos !== false) {
$this->snippets[$ori] = substr($str, $ori, $pos - $ori);
$pos++;
} else {
$this->snippets[$ori] = substr($str, $ori);
}
return $pos;
}