@@ 174-182 (lines=9) @@ | ||
171 | $xhash[$this->_line_hash($from_lines[$xi])] = 1; |
|
172 | } |
|
173 | ||
174 | for ($yi = $skip; $yi < $n_to - $endskip; $yi++) { |
|
175 | $line = $to_lines[$yi]; |
|
176 | if ($this->ychanged[$yi] = empty($xhash[$this->_line_hash($line)])) { |
|
177 | continue; |
|
178 | } |
|
179 | $yhash[$this->_line_hash($line)] = 1; |
|
180 | $this->yv[] = $line; |
|
181 | $this->yind[] = $yi; |
|
182 | } |
|
183 | for ($xi = $skip; $xi < $n_from - $endskip; $xi++) { |
|
184 | $line = $from_lines[$xi]; |
|
185 | if ($this->xchanged[$xi] = empty($yhash[$this->_line_hash($line)])) { |
|
@@ 183-190 (lines=8) @@ | ||
180 | $this->yv[] = $line; |
|
181 | $this->yind[] = $yi; |
|
182 | } |
|
183 | for ($xi = $skip; $xi < $n_from - $endskip; $xi++) { |
|
184 | $line = $from_lines[$xi]; |
|
185 | if ($this->xchanged[$xi] = empty($yhash[$this->_line_hash($line)])) { |
|
186 | continue; |
|
187 | } |
|
188 | $this->xv[] = $line; |
|
189 | $this->xind[] = $xi; |
|
190 | } |
|
191 | ||
192 | // Find the LCS. |
|
193 | $this->_compareseq(0, sizeof($this->xv), 0, sizeof($this->yv)); |