You are here

function DiffFormatter::_block_header in Diff 7.3

Same name and namespace in other branches
  1. 5.2 DiffEngine.php \DiffFormatter::_block_header()
  2. 5 DiffEngine.php \DiffFormatter::_block_header()
  3. 6.2 DiffEngine.php \DiffFormatter::_block_header()
  4. 6 DiffEngine.php \DiffFormatter::_block_header()
  5. 7.2 DiffEngine.php \DiffFormatter::_block_header()
1 call to DiffFormatter::_block_header()
DiffFormatter::_block in ./DiffEngine.php
1 method overrides DiffFormatter::_block_header()
DrupalDiffFormatter::_block_header in ./DiffEngine.php

File

./DiffEngine.php, line 902
A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)

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;
}