Lines Matching defs:to_lines
122 * @param array $to_lines
125 function diff($from_lines, $to_lines) {
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) {
533 $this->edits = $eng->diff($from_lines, $to_lines);
534 //$this->_check($from_lines, $to_lines);
607 * This reconstructs the $to_lines parameter passed to the
628 * @param mixed $to_lines
630 function _check($from_lines, $to_lines) {
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.
679 * have the same number of elements as $to_lines.
681 function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) {
684 assert(count($to_lines) == count($mapped_to_lines));
699 $closing = array_slice($to_lines, $yi, count($closing));