Lines Matching defs:orig

14     var $orig;
25 return $this->orig ? count($this->orig) : 0;
36 function __construct($orig, $closing = false) {
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) {
78 $this->orig = $orig;
83 return new _DiffOp_Change($this->closing, $this->orig);
581 $lcs += count($edit->orig);
594 function orig() {
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) {
866 $this->_deleted($orig);
1021 function orig() {
1022 $orig = new _HWLDF_WordAccumulator;
1026 $orig->addWords($edit->orig);
1027 elseif ($edit->orig)
1028 $orig->addWords($edit->orig, 'mark');
1030 return $orig->getLines();
1064 $orig = new _HWLDF_WordAccumulator;
1067 $orig->addWords($edit->closing);
1069 $orig->addWords($edit->orig, 'del');
1070 $orig->addWords($edit->closing, 'add');
1072 $orig->addWords($edit->orig, 'del');
1074 $orig->addWords($edit->closing, 'add');
1075 elseif ($edit->orig)
1076 $orig->addWords($edit->orig, 'del');
1078 return $orig->getLines();
1110 function _changed($orig, $final) {
1111 $this->_deleted($orig);
1213 function _changed($orig, $closing) {
1214 $diff = new WordLevelDiff($orig, $closing); // this escapes the diff data
1215 $del = $diff->orig();
1301 function _changed($orig, $closing) {
1302 $diff = new InlineWordLevelDiff($orig, $closing); // this escapes the diff data
1331 * @param array $orig The original lines to use.
1335 function __construct($orig, $final1, $final2) {
1338 $this->_edits = $this->_diff3($engine->diff($orig, $final1),
1339 $engine->diff($orig, $final2));
1395 $edits[] = new _Diff3_Op_copy(array_slice($e1->orig, 0, $ncopy));
1398 array_splice($e1->orig, 0, $ncopy);
1405 array_splice($e2->orig, 0, $ncopy);
1412 if ($e1->orig && $e2->orig) {
1414 $orig = array_splice($e1->orig, 0, $norig);
1415 array_splice($e2->orig, 0, $norig);
1416 $bb->input($orig);
1428 if ($e1 && ! $e1->orig) {
1432 if ($e2 && ! $e2->orig) {
1455 protected $orig;
1466 function __construct($orig = false, $final1 = false, $final2 = false) {
1467 $this->orig = $orig ? $orig : array();
1476 } elseif ($this->final1 === $this->orig) {
1478 } elseif ($this->final2 === $this->orig) {
1502 $this->orig = $lines ? $lines : array();
1503 $this->final1 = &$this->orig;
1504 $this->final2 = &$this->orig;
1508 return $this->orig;
1529 $this->_append($this->orig, $lines);
1546 return !$this->orig && !$this->final1 && !$this->final2;
1553 $edit = new _Diff3_Op($this->orig, $this->final1, $this->final2);
1560 $this->orig = $this->final1 = $this->final2 = array();