Home
last modified time | relevance | path

Searched refs:to_lines (Results 1 – 5 of 5) sorted by relevance

/web-bugs/src/Horde/Text/Diff/Engine/
H A DXdiff.php20 public function diff($from_lines, $to_lines) argument
27 array_walk($to_lines, array('Horde_Text_Diff', 'trimNewlines'));
31 $to_string = implode("\n", $to_lines);
34 $diff = xdiff_string_diff($from_string, $to_string, count($to_lines));
H A DShell.php29 * @param array $to_lines lines of text from new file
33 public function diff($from_lines, $to_lines) argument
36 array_walk($to_lines, array('Horde_Text_Diff', 'trimNewlines'));
45 fwrite($fp, implode("\n", $to_lines));
87 $this->_getLines($to_lines, $to_line_no, $match[4] - 1));
104 $this->_getLines($to_lines, $to_line_no, $match[5]));
111 $this->_getLines($to_lines, $to_line_no, $match[5]));
123 $this->_getLines($to_lines, $to_line_no,
124 $to_line_no + count($to_lines) - 1));
H A DNative.php31 public function diff($from_lines, $to_lines) argument
34 array_walk($to_lines, array('Horde_Text_Diff', 'trimNewlines'));
37 $n_to = count($to_lines);
48 if ($from_lines[$skip] !== $to_lines[$skip]) {
57 if ($from_lines[$xi] !== $to_lines[$yi]) {
68 $line = $to_lines[$yi];
90 $this->_shiftBoundaries($to_lines, $this->ychanged, $this->xchanged);
118 $add[] = $to_lines[$yi++];
/web-bugs/src/Horde/Text/Diff/
H A DMapped.php40 list($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) = $params;
42 assert(count($to_lines) == count($mapped_to_lines));
56 $final = array_slice($to_lines, $yi, count($final));
/web-bugs/src/Horde/Text/
H A DDiff.php206 protected function _check($from_lines, $to_lines) argument
211 if (serialize($to_lines) != serialize($this->getFinal())) {
216 if (serialize($to_lines) != serialize($rev->getOriginal())) {

Completed in 7 milliseconds