Lines Matching refs:x
173 list($trace, $x, $y) = $this->calculateTrace($old, $new);
174 return $this->extractDiff($trace, $x, $y, $old, $new);
187 $x = $v[$k+1];
189 $x = $v[$k-1] + 1;
192 $y = $x - $k;
193 while ($x < $n && $y < $m && ($this->isEqual)($a[$x], $b[$y])) {
194 $x++;
198 $v[$k] = $x;
199 if ($x >= $n && $y >= $m) {
200 return [$trace, $x, $y];
207 private function extractDiff(array $trace, int $x, int $y, array $a, array $b) { argument
211 $k = $x - $y;
222 while ($x > $prevX && $y > $prevY) {
223 $result[] = new DiffElem(DiffElem::TYPE_KEEP, $a[$x-1], $b[$y-1]);
224 $x--;
232 while ($x > $prevX) {
233 $result[] = new DiffElem(DiffElem::TYPE_REMOVE, $a[$x-1], null);
234 $x--;