A more logical representation of the results from ouwiki_internal_diff()
More...
|
| $adds |
| Array of indexes (in file 2) of added lines.
|
|
| $changes |
| Array of changed ranges.
|
|
| $deletes |
| Array of indexes (in file 1) of deleted lines.
|
|
A more logical representation of the results from ouwiki_internal_diff()
◆ __construct()
ouwiki_changes::__construct |
( |
| $diff, |
|
|
| $count2 ) |
- Parameters
-
array | $diff | Array from line indices in file1 to indices in file2. All indices 1-based. |
int | $count2 | Number of lines in file2 |
◆ internal_find_deletes()
ouwiki_changes::internal_find_deletes |
( |
| $diff, |
|
|
| $count2 ) |
Find deleted lines.
These are lines in file1 that cannot be present even in modified form in file2 because we have matching lines around them. O(n) algorithm.
- Parameters
-
array | $diff | Array of file1->file2 indexes |
int | $count2 | Count of lines in file2 |
◆ ouwiki_changes()
ouwiki_changes::ouwiki_changes |
( |
| $diff, |
|
|
| $count2 ) |
The documentation for this class was generated from the following file:
- mod/wiki/diff/difflib.php