|
Moodle
2.2.1
http://www.collinsharper.com
|

Public Member Functions | |
| WikiDiff ($from_lines, $to_lines) | |
| reverse () | |
| isEmpty () | |
| lcs () | |
| orig () | |
| closing () | |
| _check ($from_lines, $to_lines) | |
Data Fields | |
| $edits | |
Class representing a 'diff' between two sequences of strings.
Definition at line 491 of file diff_nwiki.php.
| _check | ( | $ | from_lines, |
| $ | to_lines | ||
| ) |
Check a WikiDiff for validity.
This is here only for debugging purposes.
Definition at line 598 of file diff_nwiki.php.

| closing | ( | ) |
Get the closing set of lines.
This reconstructs the $to_lines parameter passed to the constructor.
Reimplemented in WordLevelWikiDiff.
Definition at line 583 of file diff_nwiki.php.

| isEmpty | ( | ) |
Check for empty diff.
Definition at line 533 of file diff_nwiki.php.
| lcs | ( | ) |
Compute the length of the Longest Common Subsequence (LCS).
This is mostly for diagnostic purposed.
Definition at line 548 of file diff_nwiki.php.

| orig | ( | ) |
Get the original set of lines.
This reconstructs the $from_lines parameter passed to the constructor.
Reimplemented in WordLevelWikiDiff.
Definition at line 565 of file diff_nwiki.php.

| reverse | ( | ) |
| WikiDiff | ( | $ | 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. |
Definition at line 503 of file diff_nwiki.php.


| $edits |
Definition at line 493 of file diff_nwiki.php.