API documentation :: Docs For Class arbitFrameworkDiff
Packages:Interfaces:
Classes:
|
Core::arbitFrameworkDiffClass arbitFrameworkDiffThis is a implemntation of the common diff algorithm for arbritrary arrays of tokens. This is a implemntation of the common diff algorithm for arbritrary arrays of tokens. This way you may diff on line / word / character / ... basis. Extensions of this class may offer ways to split your text into the desired token type and apply and return the diff for them. The diffs are not rendered by this class. This class implements the trivial intuitive diff algorithm. You may change the implementation by an optimized variant of the algorithm.;
Descendants
Method Summary
MethodsbacktraceLCS
array
backtraceLCS(
$matrix
,
$old
,
$new
, int
$i
, int
$j
)
Backtrace LCS LCS calculated the matrix for the determination of the LCS. function calculates the actual token list back from this matrix by backtracing the best path in the matrix. Backtrace LCS LCS calculated the matrix for the determination of the LCS. This function calculates the actual token list back from this matrix by backtracing the best path in the matrix. Parameters:
diff
array
diff(
$old
,
$new
)
Diff two arrays Return the diff of two arrays, as an array consisting of arbitDiffToken elements with all have a status of the token (old, added, removed), the token number and the actual content. Diff two arrays Return the diff of two arrays, as an array consisting of arbitDiffToken elements with all have a status of the token (old, added, removed), the token number and the actual content. Parameters:
longestCommonSubsequence
array
longestCommonSubsequence(
$old
,
$new
)
Calculate LCS of two token lists Calculate and return the longest common subsequence of two token arrays. Calculate LCS of two token lists Calculate and return the longest common subsequence of two token arrays. Parameters:
Documentation generated on Mon, 05 Apr 2010 14:01:48 +0200 by phpDocumentor 1.4.3
|