Home
last modified time | relevance | path

Searched refs:orig (Results 1 – 16 of 16) sorted by relevance

/web-bugs/src/Horde/Text/Diff/Op/
H A DCopy.php17 public function __construct($orig, $final = false) argument
20 $final = $orig;
22 $this->orig = $orig;
28 return new Horde_Text_Diff_Op_Copy($this->final, $this->orig);
H A DChange.php17 public function __construct($orig, $final) argument
19 $this->orig = $orig;
25 return new Horde_Text_Diff_Op_Change($this->final, $this->orig);
H A DBase.php17 public $orig; variable in Horde_Text_Diff_Op_Base
24 return $this->orig ? count($this->orig) : 0;
H A DDelete.php19 $this->orig = $lines;
25 return new Horde_Text_Diff_Op_Add($this->orig);
H A DAdd.php20 $this->orig = false;
/web-bugs/src/Horde/Text/Diff/
H A DThreeWay.php32 * @param array $orig The original lines to use.
36 public function __construct($orig, $final1, $final2) argument
44 $this->_edits = $this->_diff3($engine->diff($orig, $final1),
96 array_splice($e1->orig, 0, $ncopy);
103 array_splice($e2->orig, 0, $ncopy);
110 if ($e1->orig && $e2->orig) {
112 $orig = array_splice($e1->orig, 0, $norig);
113 array_splice($e2->orig, 0, $norig);
114 $bb->input($orig);
126 if ($e1 && ! $e1->orig) {
[all …]
H A DMapped.php48 $orig = &$this->_edits[$i]->orig;
49 if (is_array($orig)) {
50 $orig = array_slice($from_lines, $xi, count($orig));
51 $xi += count($orig);
H A DRenderer.php92 if (count($edit->orig) <= $keep) {
100 $context = array_slice($edit->orig, 0, $ntrail);
111 $context = $edit->orig;
127 if ($edit->orig) {
128 $xi += count($edit->orig);
151 $output .= $this->_context($edit->orig);
159 $output .= $this->_deleted($edit->orig);
163 $output .= $this->_changed($edit->orig, $edit->final);
230 protected function _changed($orig, $final) argument
232 return $this->_deleted($orig) . "---\n" . $this->_added($final);
/web-bugs/src/Horde/Text/Diff/ThreeWay/Op/
H A DCopy.php15 $this->orig = $lines ? $lines : array();
16 $this->final1 = &$this->orig;
17 $this->final2 = &$this->orig;
22 return $this->orig;
H A DBase.php13 public function __construct($orig = false, $final1 = false, $final2 = false) argument
15 $this->orig = $orig ? $orig : array();
25 } elseif ($this->final1 === $this->orig) {
27 } elseif ($this->final2 === $this->orig) {
/web-bugs/src/Horde/Text/Diff/Renderer/
H A DInline.php120 protected function _changed($orig, $final) argument
124 return $this->_deleted($orig)
131 while ($orig[0] !== false && $final[0] !== false &&
132 substr($orig[0], 0, 1) == ' ' &&
134 $prefix .= substr($orig[0], 0, 1);
135 $orig[0] = substr($orig[0], 1);
138 return $prefix . $this->_deleted($orig) . $this->_added($final);
141 $text1 = implode("\n", $orig);
H A DUnified.php53 protected function _changed($orig, $final) argument
55 return $this->_deleted($orig) . $this->_added($final);
H A DContext.php62 protected function _changed($orig, $final) argument
65 return $this->_lines($orig, '! ');
/web-bugs/src/Horde/Text/Diff/ThreeWay/
H A DBlockBuilder.php21 $this->_append($this->orig, $lines);
41 return !$this->orig && !$this->final1 && !$this->final2;
49 $edit = new Horde_Text_Diff_ThreeWay_Op_Base($this->orig, $this->final1, $this->final2);
57 $this->orig = $this->final1 = $this->final2 = array();
/web-bugs/src/Utils/
H A DDiff.php61 public function _changed($orig, $final) argument
63 return $this->_deleted($orig)."\n".$this->_added($final);
/web-bugs/src/Horde/Text/
H A DDiff.php147 $lcs += count($edit->orig);
164 if ($edit->orig) {
165 array_splice($lines, count($lines), 0, $edit->orig);

Completed in 11 milliseconds