protected function advance($c = null) { if (!$this->metEnd()) { if ($c) { if ($c == $this->str[$this->p]) { ++$this->p; } } else { ++$this->p; } } }