Lines Matching refs:index
15 protected $index = 0;
59 return $this->index;
69 if ($this->index >= $this->size) {
74 $this->index++;
88 $pos = $this->index + $offset - 1;
116 * {@see self::consume()} ahead until `$p === $this->index`; Can't just set
117 * `$p = $this->index` as we must update line and column. If we seek
120 public function seek(int $index) : void
122 if ($index <= $this->index) {
123 $this->index = $index; // just jump; don't update stream state (line, ...)
129 $this->index = \min($index, $this->size);