ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 }
$_trailing_context_lines
Number of trailing context "lines" to preserve.
Definition: unified.php:21
$_leading_context_lines
Number of leading context "lines" to preserve.
Definition: unified.php:16
_blockHeader($xbeg, $xlen, $ybeg, $ylen)
Definition: unified.php:23
_lines($lines, $prefix=' ')
Definition: Renderer.php:184
_changed($orig, $final)
Definition: unified.php:44