1.20.x diff.inc | protected DiffFormatter::blockHeader($xbeg, $xlen, $ybeg, $ylen) |
Parameters
$xbeg:
$xlen:
$ybeg:
$ylen:
Return value
string:
File
- includes/
diff.inc, line 1142 - 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;
}