ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
__construct ($orig_lines, $closing_lines) | |
Constructor. More... | |
_split ($lines) | |
orig () | |
Get the original set of lines. More... | |
closing () | |
Get the closing set of lines. More... | |
![]() | |
__construct ( $from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines) | |
Constructor. More... | |
![]() | |
__construct ($from_lines, $to_lines) | |
Constructor. More... | |
reverse () | |
Compute reversed Diff. More... | |
isEmpty () | |
Check for empty diff. More... | |
lcs () | |
Compute the length of the Longest Common Subsequence (LCS). More... | |
orig () | |
Get the original set of lines. More... | |
closing () | |
Get the closing set of lines. More... | |
_check ($from_lines, $to_lines) | |
Check a Diff for validity. More... | |
Data Fields | |
const | MAX_LINE_LENGTH = 10000 |
![]() | |
$edits | |
Definition at line 1786 of file class.WordLevelDiff.php.
WordLevelDiff::__construct | ( | $from_lines, | |
$to_lines | |||
) |
Constructor.
Computes diff between sequences of strings.
$from_lines | array An array of strings. (Typically these are lines from a file.) |
$to_lines | array An array of strings. |
Reimplemented from Diff.
Definition at line 1790 of file class.WordLevelDiff.php.
References _split().
WordLevelDiff::_split | ( | $lines | ) |
Definition at line 1807 of file class.WordLevelDiff.php.
References $m.
Referenced by __construct().
WordLevelDiff::closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Reimplemented from Diff.
Definition at line 1861 of file class.WordLevelDiff.php.
References _HWLDF_WordAccumulator\addWords().
WordLevelDiff::orig | ( | ) |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Reimplemented from Diff.
Definition at line 1843 of file class.WordLevelDiff.php.
References $orig.
const WordLevelDiff::MAX_LINE_LENGTH = 10000 |
Definition at line 1788 of file class.WordLevelDiff.php.