ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
unified.php
Go to the documentation of this file.
1<?php
12
17
22
23 function _blockHeader($xbeg, $xlen, $ybeg, $ylen)
24 {
25 if ($xlen != 1) {
26 $xbeg .= ',' . $xlen;
27 }
28 if ($ylen != 1) {
29 $ybeg .= ',' . $ylen;
30 }
31 return "@@ -$xbeg +$ybeg @@";
32 }
33
34 function _added($lines)
35 {
36 return $this->_lines($lines, '+');
37 }
38
39 function _deleted($lines)
40 {
41 return $this->_lines($lines, '-');
42 }
43
44 function _changed($orig, $final)
45 {
46 return $this->_deleted($orig) . $this->_added($final);
47 }
48
49}
$_leading_context_lines
Number of leading context "lines" to preserve.
Definition: unified.php:16
$_trailing_context_lines
Number of trailing context "lines" to preserve.
Definition: unified.php:21
_changed($orig, $final)
Definition: unified.php:44
_blockHeader($xbeg, $xlen, $ybeg, $ylen)
Definition: unified.php:23
_lines($lines, $prefix=' ')
Definition: Renderer.php:184