Lines Matching refs:orig

14     var $orig;  variable in _DiffOp
25 return $this->orig ? count($this->orig) : 0;
36 function __construct($orig, $closing = false) { argument
38 $closing = $orig;
39 $this->orig = $orig;
44 return new _DiffOp_Copy($this->closing, $this->orig);
52 $this->orig = $lines;
57 return new _DiffOp_Add($this->orig);
66 $this->orig = false;
77 function __construct($orig, $closing) { argument
78 $this->orig = $orig;
83 return new _DiffOp_Change($this->closing, $this->orig);
581 $lcs += count($edit->orig);
594 function orig() { function in Diff
598 if ($edit->orig)
599 array_splice($lines, count($lines), 0, $edit->orig);
631 if (serialize($from_lines) != serialize($this->orig()))
637 if (serialize($to_lines) != serialize($rev->orig()))
691 $orig = &$this->edits[$i]->orig;
692 if (is_array($orig)) {
693 $orig = array_slice($from_lines, $xi, count($orig));
694 $xi += count($orig);
751 if (count($edit->orig) <= $nlead + $ntrail) {
756 $context = array_slice($edit->orig, 0, $ntrail);
763 $context = $edit->orig;
777 if ($edit->orig)
778 $xi += count($edit->orig);
800 $this->_context($edit->orig);
804 $this->_deleted($edit->orig);
806 $this->_changed($edit->orig, $edit->closing);
865 function _changed($orig, $closing) { argument
866 $this->_deleted($orig);
1009 function orig() { function in WordLevelDiff
1010 $orig = new _HWLDF_WordAccumulator;
1014 $orig->addWords($edit->orig);
1015 elseif ($edit->orig)
1016 $orig->addWords($edit->orig, 'mark');
1018 return $orig->getLines();
1052 $orig = new _HWLDF_WordAccumulator;
1055 $orig->addWords($edit->closing);
1057 $orig->addWords($edit->orig, 'del');
1058 $orig->addWords($edit->closing, 'add');
1060 $orig->addWords($edit->orig, 'del');
1062 $orig->addWords($edit->closing, 'add');
1063 elseif ($edit->orig)
1064 $orig->addWords($edit->orig, 'del');
1066 return $orig->getLines();
1098 function _changed($orig, $final) { argument
1099 $this->_deleted($orig);
1201 function _changed($orig, $closing) { argument
1202 $diff = new WordLevelDiff($orig, $closing); // this escapes the diff data
1203 $del = $diff->orig();
1289 function _changed($orig, $closing) { argument
1290 $diff = new InlineWordLevelDiff($orig, $closing); // this escapes the diff data
1319 * @param array $orig The original lines to use.
1323 function __construct($orig, $final1, $final2) { argument
1326 $this->_edits = $this->_diff3($engine->diff($orig, $final1),
1327 $engine->diff($orig, $final2));
1383 $edits[] = new _Diff3_Op_copy(array_slice($e1->orig, 0, $ncopy));
1386 array_splice($e1->orig, 0, $ncopy);
1393 array_splice($e2->orig, 0, $ncopy);
1400 if ($e1->orig && $e2->orig) {
1402 $orig = array_splice($e1->orig, 0, $norig);
1403 array_splice($e2->orig, 0, $norig);
1404 $bb->input($orig);
1416 if ($e1 && ! $e1->orig) {
1420 if ($e2 && ! $e2->orig) {
1442 function __construct($orig = false, $final1 = false, $final2 = false) { argument
1443 $this->orig = $orig ? $orig : array();
1452 } elseif ($this->final1 === $this->orig) {
1454 } elseif ($this->final2 === $this->orig) {
1478 $this->orig = $lines ? $lines : array();
1479 $this->final1 = &$this->orig;
1480 $this->final2 = &$this->orig;
1484 return $this->orig;
1505 $this->_append($this->orig, $lines);
1522 return !$this->orig && !$this->final1 && !$this->final2;
1529 $edit = new _Diff3_Op($this->orig, $this->final1, $this->final2);
1536 $this->orig = $this->final1 = $this->final2 = array();