protected function skip($chars) { $this->pos += strspn($this->doc, $chars, $this->pos); $this->char = $this->pos < $this->size ? $this->doc[$this->pos] : null; // next }