Lines Matching refs:to_lines
122 * @param array $to_lines
125 function diff($from_lines, $to_lines) { argument
127 $n_to = count($to_lines);
138 if ($from_lines[$skip] != $to_lines[$skip])
146 if ($from_lines[$xi] != $to_lines[$yi])
155 $line = $to_lines[$yi];
175 $this->_shift_boundaries($to_lines, $this->ychanged, $this->xchanged);
200 $add[] = $to_lines[$yi++];
529 * @param array $to_lines An array of strings.
531 function __construct($from_lines, $to_lines) { argument
533 $this->edits = $eng->diff($from_lines, $to_lines);
628 * @param mixed $to_lines
630 function _check($from_lines, $to_lines) { argument
633 if (serialize($to_lines) != serialize($this->closing()))
637 if (serialize($to_lines) != serialize($rev->orig()))
670 * @param string[] $to_lines An array of strings.
681 function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) { argument
684 assert(count($to_lines) == count($mapped_to_lines));
699 $closing = array_slice($to_lines, $yi, count($closing));