Class

eZDiffTextEngine

class eZDiffTextEngine extends eZDiffEngine

Properties

$DiffMode

Methods

createDifferenceObject($fromData, $toData)

createOutput($arr, $oldArray, $newArray)

addNewLine($text)

preProcess($oldArray, $newArray)

buildDiff($oldArray, $newArray)

postProcessDiff($diffArray)

substrings($sub, $old, $new)

localSubstring($direction, $row, $col, $rows, $cols, $matrix)

traceSubstring($row, $col, $matrix, $val, $new)

substringPlacement($startOffset, $endOffset, $totalStringLength)

dumpMatrix($arr, $rows, $cols)

findLongestSubstringOffsets($varArray)

substringMatrix($old, $new)

trimEmptyArrayElements($array)

Details

at line 26
public createDifferenceObject($fromData, $toData)

Parameters

$fromData
$toData

at line 68
public createOutput($arr, $oldArray, $newArray)

Parameters

$arr
$oldArray
$newArray

at line 171
public addNewLine($text)

Parameters

$text

at line 179
public preProcess($oldArray, $newArray)

Parameters

$oldArray
$newArray

at line 303
public buildDiff($oldArray, $newArray)

Parameters

$oldArray
$newArray

at line 392
public postProcessDiff($diffArray)

Parameters

$diffArray

at line 432
public substrings($sub, $old, $new)

Parameters

$sub
$old
$new

at line 587
public localSubstring($direction, $row, $col, $rows, $cols, $matrix)

Parameters

$direction
$row
$col
$rows
$cols
$matrix

at line 689
public traceSubstring($row, $col, $matrix, $val, $new)

Parameters

$row
$col
$matrix
$val
$new

at line 725
public substringPlacement($startOffset, $endOffset, $totalStringLength)

Parameters

$startOffset
$endOffset
$totalStringLength

at line 744
public dumpMatrix($arr, $rows, $cols)

Parameters

$arr
$rows
$cols

at line 762
public findLongestSubstringOffsets($varArray)

Parameters

$varArray

at line 814
public substringMatrix($old, $new)

Parameters

$old
$new

at line 874
public trimEmptyArrayElements($array)

Parameters

$array