Moodle  2.2.1
http://www.collinsharper.com
ouwiki_changes Class Reference

Public Member Functions

 ouwiki_changes ($diff, $count2)
 internal_find_deletes ($diff, $count2)

Data Fields

 $adds
 $deletes
 $changes

Detailed Description

A more logical representation of the results from ouwiki_internal_diff()

Definition at line 442 of file difflib.php.


Member Function Documentation

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$diffArray of file1->file2 indexes
int$count2Count of lines in file2

Definition at line 522 of file difflib.php.

Here is the caller graph for this function:

ouwiki_changes ( diff,
count2 
)
Parameters:
array$diffArray from line indices in file1 to indices in file2. All indices 1-based.
int$count2Number of lines in file2

Definition at line 458 of file difflib.php.

Here is the call graph for this function:


Field Documentation

$adds

Array of indexes (in file 2) of added lines

Definition at line 445 of file difflib.php.

$changes

Array of changed ranges

Definition at line 451 of file difflib.php.

$deletes

Array of indexes (in file 1) of deleted lines

Definition at line 448 of file difflib.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations