Lines Matching defs:i
173 for ($i = $startAt; $i < $endAt; $i++) {
175 if ($this->filter[$i] === $op) {
177 } elseif (($i + 1) < $endAt && $this->filter[$i] . $this->filter[$i + 1] === $op) {
185 $attributeEndsAfter = $i - $startAt;
186 $valueStartsAt = $i + strlen($filterType);
429 for ($i = 0; $i < $this->length; $i++) {
431 if ($this->filter[$i] === FilterInterface::PAREN_LEFT) {
432 [$i, $child] = $this->parseContainerStart((int)$i, $child);
434 } elseif ($this->filter[$i] === FilterInterface::PAREN_RIGHT) {
435 $this->parseContainerEnd((int)$i);
455 for ($i = $startAt; $i < $this->length; $i++) {
457 if ($this->filter[$i] === FilterInterface::PAREN_RIGHT) {
458 return $i;
483 protected function parseContainerStart(int $i, ?int $child): array
486 if (isset($this->filter[$i + 1]) && in_array($this->filter[$i + 1], FilterInterface::OPERATORS, true)) {
488 $this->containers[$child] = ['startAt' => $i, 'endAt' => null];
490 $i += 2;
492 if ($this->isAtFilterContainer($i)) {
493 $i--;
495 } elseif (isset($this->filter[$i]) && $this->filter[$i] === FilterInterface::PAREN_LEFT) {
496 $i = $this->nextClosingParenthesis($i);
498 } elseif (isset($this->filter[$i]) && $this->filter[$i] === FilterInterface::PAREN_RIGHT) {
501 $i
507 $this->filter[$i - 1] ?? '',
508 $i + 1,
509 $this->filter[$i + 1] ?? ''
514 $i = $this->nextClosingParenthesis($i + 1);
517 return [$i, $child];
523 protected function parseContainerEnd(int $i): void
528 $this->containers[$ci]['endAt'] = $i + 1;
536 $i