| @@ 75-83 (lines=9) @@ | ||
| 72 | $xhash[$this->_line_hash($from_lines[$xi])] = 1; |
|
| 73 | } |
|
| 74 | ||
| 75 | for ($yi = $skip; $yi < $n_to - $endskip; $yi++) { |
|
| 76 | $line = $to_lines[$yi]; |
|
| 77 | if ($this->ychanged[$yi] = empty($xhash[$this->_line_hash($line)])) { |
|
| 78 | continue; |
|
| 79 | } |
|
| 80 | $yhash[$this->_line_hash($line)] = 1; |
|
| 81 | $this->yv[] = $line; |
|
| 82 | $this->yind[] = $yi; |
|
| 83 | } |
|
| 84 | for ($xi = $skip; $xi < $n_from - $endskip; $xi++) { |
|
| 85 | $line = $from_lines[$xi]; |
|
| 86 | if ($this->xchanged[$xi] = empty($yhash[$this->_line_hash($line)])) { |
|
| @@ 84-91 (lines=8) @@ | ||
| 81 | $this->yv[] = $line; |
|
| 82 | $this->yind[] = $yi; |
|
| 83 | } |
|
| 84 | for ($xi = $skip; $xi < $n_from - $endskip; $xi++) { |
|
| 85 | $line = $from_lines[$xi]; |
|
| 86 | if ($this->xchanged[$xi] = empty($yhash[$this->_line_hash($line)])) { |
|
| 87 | continue; |
|
| 88 | } |
|
| 89 | $this->xv[] = $line; |
|
| 90 | $this->xind[] = $xi; |
|
| 91 | } |
|
| 92 | ||
| 93 | // Find the LCS. |
|
| 94 | $this->_compareseq(0, sizeof($this->xv), 0, sizeof($this->yv)); |
|