Lines Matching refs:x
171 list($trace, $x, $y) = $this->calculateTrace($old, $new);
172 return $this->extractDiff($trace, $x, $y, $old, $new);
185 $x = $v[$k+1];
187 $x = $v[$k-1] + 1;
190 $y = $x - $k;
191 while ($x < $n && $y < $m && ($this->isEqual)($a[$x], $b[$y])) {
192 $x++;
196 $v[$k] = $x;
197 if ($x >= $n && $y >= $m) {
198 return [$trace, $x, $y];
205 private function extractDiff(array $trace, int $x, int $y, array $a, array $b) { argument
209 $k = $x - $y;
220 while ($x > $prevX && $y > $prevY) {
221 $result[] = new DiffElem(DiffElem::TYPE_KEEP, $a[$x-1], $b[$y-1]);
222 $x--;
230 while ($x > $prevX) {
231 $result[] = new DiffElem(DiffElem::TYPE_REMOVE, $a[$x-1], null);
232 $x--;