Source for file context.php
Documentation is available at context.php
require_once 'Text/Diff/Renderer.php';
* "Context" diff renderer.
* This class renders the diff in classic "context diff" format.
* $Horde: framework/Text_Diff/Diff/Renderer/context.php,v 1.1 2007/01/05 15:23:57 jan Exp $
* Number of leading context "lines" to preserve.
var $_leading_context_lines = 4;
* Number of trailing context "lines" to preserve.
var $_trailing_context_lines = 4;
function _blockHeader ($xbeg, $xlen, $ybeg, $ylen)
$this->_second_block = " --- $ybeg ----\n";
return " ***************\n*** $xbeg ****";
return $this->_second_block;
function _context ($lines)
$this->_second_block .= $this->_lines ($lines, ' ');
return $this->_lines ($lines, ' ');
$this->_second_block .= $this->_lines ($lines, '+ ');
function _deleted ($lines)
return $this->_lines ($lines, '- ');
function _changed ($orig, $final)
$this->_second_block .= $this->_lines ($final, '! ');
return $this->_lines ($orig, '! ');
Documentation generated on Mon, 11 Mar 2019 15:09:49 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|