Lines Matching defs:from_lines
121 * @param array $from_lines
125 function diff($from_lines, $to_lines) {
126 $n_from = count($from_lines);
138 if ($from_lines[$skip] != $to_lines[$skip])
146 if ($from_lines[$xi] != $to_lines[$yi])
153 $xhash[$from_lines[$xi]] = 1;
163 $line = $from_lines[$xi];
174 $this->_shift_boundaries($from_lines, $this->xchanged, $this->ychanged);
187 $copy[] = $from_lines[$xi++];
196 $delete[] = $from_lines[$xi++];
527 * @param array $from_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);
589 * This reconstructs the $from_lines parameter passed to the
627 * @param mixed $from_lines
630 function _check($from_lines, $to_lines) {
631 if (serialize($from_lines) != serialize($this->orig()))
639 if (serialize($from_lines) != serialize($rev->closing()))
667 * @param string[] $from_lines An array of strings.
673 * have the same size number of elements as $from_lines.
681 function __construct($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) {
683 assert(count($from_lines) == count($mapped_from_lines));
693 $orig = array_slice($from_lines, $xi, count($orig));