Lines Matching refs:edit
82 foreach ($diffs as $i => $edit) {
86 if ($edit instanceof Horde_Text_Diff_Op_Copy) {
92 if (count($edit->orig) <= $keep) {
95 $block[] = $edit;
100 $context = array_slice($edit->orig, 0, $ntrail);
111 $context = $edit->orig;
124 $block[] = $edit;
127 if ($edit->orig) {
128 $xi += count($edit->orig);
130 if ($edit->final) {
131 $yi += count($edit->final);
148 foreach ($edits as $edit) {
149 switch (get_class($edit)) {
151 $output .= $this->_context($edit->orig);
155 $output .= $this->_added($edit->final);
159 $output .= $this->_deleted($edit->orig);
163 $output .= $this->_changed($edit->orig, $edit->final);