Home
last modified time | relevance | path

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

/web-bugs/src/Horde/Text/Diff/Engine/
H A DShell.php28 * @param array $from_lines lines of text from old file
33 public function diff($from_lines, $to_lines) argument
35 array_walk($from_lines, array('Horde_Text_Diff', 'trimNewlines'));
42 fwrite($fp, implode("\n", $from_lines));
53 return array(new Horde_Text_Diff_Op_Copy($from_lines));
86 $this->_getLines($from_lines, $from_line_no, $match[1] - 1),
95 $this->_getLines($from_lines, $from_line_no, $match[2]));
103 $this->_getLines($from_lines, $from_line_no, $match[2]),
117 if (!empty($from_lines)) {
121 $this->_getLines($from_lines, $from_line_no,
[all …]
H A DXdiff.php20 public function diff($from_lines, $to_lines) argument
26 array_walk($from_lines, array('Horde_Text_Diff', 'trimNewlines'));
30 $from_string = implode("\n", $from_lines);
H A DNative.php31 public function diff($from_lines, $to_lines) argument
33 array_walk($from_lines, array('Horde_Text_Diff', 'trimNewlines'));
36 $n_from = count($from_lines);
48 if ($from_lines[$skip] !== $to_lines[$skip]) {
57 if ($from_lines[$xi] !== $to_lines[$yi]) {
65 $xhash[$from_lines[$xi]] = 1;
77 $line = $from_lines[$xi];
89 $this->_shiftBoundaries($from_lines, $this->xchanged, $this->ychanged);
103 $copy[] = $from_lines[$xi++];
113 $delete[] = $from_lines[$xi++];
/web-bugs/src/Horde/Text/Diff/
H A DMapped.php40 list($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) = $params;
41 assert(count($from_lines) == count($mapped_from_lines));
50 $orig = array_slice($from_lines, $xi, count($orig));
/web-bugs/src/Horde/Text/
H A DDiff.php206 protected function _check($from_lines, $to_lines) argument
208 if (serialize($from_lines) != serialize($this->getOriginal())) {
219 if (serialize($from_lines) != serialize($rev->getFinal())) {

Completed in 6 milliseconds