1 diff.inc | protected DiffFormatter::blockHeader($xbeg, $xlen, $ybeg, $ylen) |
Parameters
$xbeg:
$xlen:
$ybeg:
$ylen:
Return value
string:
File
- core/
includes/ diff.inc, line 1105 - A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)
Class
- DiffFormatter
- Base class for diff formatters
Code
protected function blockHeader($xbeg, $xlen, $ybeg, $ylen) {
if ($xlen > 1) {
$xbeg .= ',' . ($xbeg + $xlen - 1);
}
if ($ylen > 1) {
$ybeg .= ',' . ($ybeg + $ylen - 1);
}
return $xbeg . ($xlen ? ($ylen ? 'c' : 'd') : 'a') . $ybeg;
}