ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct ( $from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) | |
Computes a diff between sequences of strings. More... | |
Public Member Functions inherited from Text_Diff | |
__construct ($from_lines, $to_lines) | |
Computes diffs between sequences of strings. More... | |
getDiff () | |
Returns the array of differences. More... | |
reverse () | |
Computes a reversed diff. More... | |
isEmpty () | |
Checks for an empty diff. More... | |
lcs () | |
Computes the length of the Longest Common Subsequence (LCS). More... | |
getOriginal () | |
Gets the original set of lines. More... | |
getFinal () | |
Gets the final set of lines. More... | |
_trimNewlines (&$line, $key) | |
Removes trailing newlines from a line of text. More... | |
_check ($from_lines, $to_lines) | |
Checks a diff for validity. More... | |
Additional Inherited Members | |
Data Fields inherited from Text_Diff | |
$_edits | |
Text_MappedDiff::__construct | ( | $from_lines, | |
$to_lines, | |||
$mapped_from_lines, | |||
$mapped_to_lines | |||
) |
Computes a diff between sequences of strings.
This can be used to compute things like case-insensitve diffs, or diffs which ignore changes in white-space.
array | $from_lines | An array of strings. |
array | $to_lines | An array of strings. |
array | $mapped_from_lines | This array should have the same size number of elements as $from_lines. The elements in $mapped_from_lines and $mapped_to_lines are what is actually compared when computing the diff. |
array | $mapped_to_lines | This array should have the same number of elements as $to_lines. |
Definition at line 220 of file Diff.php.
References $i.