Arbit - project tracking

Arbit - project tracking

API documentation :: Docs For Class arbitFrameworkLineDiff

Core::arbitFrameworkLineDiff

Class arbitFrameworkLineDiff

This is a wraper around the diff algorithm for line based diffs, which is often used for source code or similar.

This is a wraper around the diff algorithm for line based diffs, which is often used for source code or similar.

arbitFrameworkDiff
   |
   --arbitFrameworkLineDiff
Author(s):
Version:   $Revision: 1333 $
License:   GPL

Method Summary

public array lineDiff( $old , $new )
Get line wise diff of text Get the per line diff of two given texts. arbitDiffToken objects. style.

Inherited Methods

From arbitFrameworkDiff
protected array arbitFrameworkDiff::backtraceLCS()
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.
public array arbitFrameworkDiff::diff()
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.
public array arbitFrameworkDiff::longestCommonSubsequence()
Calculate LCS of two token lists Calculate and return the longest common subsequence of two token arrays.

Methods

lineDiff

array lineDiff( string $old , string $new )

Get line wise diff of text Get the per line diff of two given texts. arbitDiffToken objects. style.

Get line wise diff of text Get the per line diff of two given texts. Returns an array with arbitDiffToken objects. Method is agnostic to the used line ending style.

Parameters:
Name Type Description
$old string
$new string
Documentation generated on Mon, 05 Apr 2010 14:02:01 +0200 by phpDocumentor 1.4.3