function DiffFormatter::_block_header in Diff 5.2
Same name and namespace in other branches
- 5 DiffEngine.php \DiffFormatter::_block_header()
- 6.2 DiffEngine.php \DiffFormatter::_block_header()
- 6 DiffEngine.php \DiffFormatter::_block_header()
- 7.3 DiffEngine.php \DiffFormatter::_block_header()
- 7.2 DiffEngine.php \DiffFormatter::_block_header()
1 call to DiffFormatter::_block_header()
1 method overrides DiffFormatter::_block_header()
File
- ./
DiffEngine.php, line 848
Class
- DiffFormatter
- A class to format Diffs
Code
function _block_header($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;
}