ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 1632 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 1636 of file class.WordLevelDiff.php.
References _split().
WordLevelDiff::_split | ( | $lines | ) |
Definition at line 1648 of file class.WordLevelDiff.php.
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 1697 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 1681 of file class.WordLevelDiff.php.
References $orig.
const WordLevelDiff::MAX_LINE_LENGTH = 10000 |
Definition at line 1634 of file class.WordLevelDiff.php.