DiffFormatter::_block_header

protected DiffFormatter::_block_header($xbeg, $xlen, $ybeg, $ylen)

File

core/lib/Drupal/Component/Diff/DiffFormatter.php, line 143

Class

DiffFormatter
A class to format Diffs

Namespace

Drupal\Component\Diff

Code

protected 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;
}
doc_Drupal
2016-10-29 09:02:25
Comments
Leave a Comment

Please login to continue.