Lines Matching defs:closing
15 var $closing;
29 return $this->closing ? count($this->closing) : 0;
36 function __construct($orig, $closing = false) {
37 if (!is_array($closing))
38 $closing = $orig;
40 $this->closing = $closing;
44 return new _DiffOp_Copy($this->closing, $this->orig);
53 $this->closing = false;
65 $this->closing = $lines;
70 return new _DiffOp_Delete($this->closing);
77 function __construct($orig, $closing) {
79 $this->closing = $closing;
83 return new _DiffOp_Change($this->closing, $this->orig);
605 * Get the closing set of lines.
612 function closing() {
616 if ($edit->closing)
617 array_splice($lines, count($lines), 0, $edit->closing);
633 if (serialize($to_lines) != serialize($this->closing()))
634 trigger_error("Reconstructed closing doesn't match", E_USER_ERROR);
639 if (serialize($from_lines) != serialize($rev->closing()))
640 trigger_error("Reversed closing doesn't match", E_USER_ERROR);
697 $closing = &$this->edits[$i]->closing;
698 if (is_array($closing)) {
699 $closing = array_slice($to_lines, $yi, count($closing));
700 $yi += count($closing);
779 if ($edit->closing)
780 $yi += count($edit->closing);
802 $this->_added($edit->closing);
806 $this->_changed($edit->orig, $edit->closing);
865 function _changed($orig, $closing) {
868 $this->_added($closing);
1033 function closing() {
1034 $closing = new _HWLDF_WordAccumulator;
1038 $closing->addWords($edit->closing);
1039 elseif ($edit->closing)
1040 $closing->addWords($edit->closing, 'mark');
1042 return $closing->getLines();
1067 $orig->addWords($edit->closing);
1070 $orig->addWords($edit->closing, 'add');
1074 $orig->addWords($edit->closing, 'add');
1213 function _changed($orig, $closing) {
1214 $diff = new WordLevelDiff($orig, $closing); // this escapes the diff data
1216 $add = $diff->closing();
1301 function _changed($orig, $closing) {
1302 $diff = new InlineWordLevelDiff($orig, $closing); // this escapes the diff data
1399 array_splice($e1->closing, 0, $ncopy);
1406 array_splice($e2->closing, 0, $ncopy);
1420 $bb->out1(array_splice($e1->closing, 0, $norig));
1424 $bb->out2(array_splice($e2->closing, 0, $norig));
1429 $bb->out1($e1->closing);
1433 $bb->out2($e2->closing);