Lines Matching refs:count
108 return \count($this->tokens);
119 $skipEofCheck = $this->index < \count($this->tokens) - 1;
122 $skipEofCheck = $this->index < \count($this->tokens);
145 $n = $i - \count($this->tokens) + 1; // how many more elements we need?
165 $token->setTokenIndex(\count($this->tokens));
181 $count = \count($this->tokens);
183 if ($index < 0 || $index >= $count) {
187 $count
228 if ($i >= \count($this->tokens)) {
231 return $this->tokens[\count($this->tokens) - 1];
303 if ($stop >= \count($this->tokens)) {
304 $stop = \count($this->tokens) - 1;
331 if ($i >= \count($this->tokens)) {
380 if ($tokenIndex < 0 || $tokenIndex >= \count($this->tokens)) {
381 throw new \RuntimeException(\sprintf('%d not in 0..%d', $tokenIndex, \count($this->tokens) - 1));
387 $to = $nextOnChannel === -1 ? \count($this->tokens) - 1 : $nextOnChannel;
403 if ($tokenIndex < 0 || $tokenIndex >= \count($this->tokens)) {
404 throw new \RuntimeException(\sprintf('%d not in 0..%d', $tokenIndex, \count($this->tokens) - 1));
438 if (\count($hidden) === 0) {
464 if ($stop >= \count($this->tokens)) {
465 $stop = \count($this->tokens) - 1;
484 return $this->getTextByInterval(new Interval(0, \count($this->tokens) - 1));
490 $stopIndex = $stop === null ? \count($this->tokens) - 1 : $stop->getTokenIndex();