MediaWiki  1.27.2
WordLevelDiff Class Reference
Inheritance diagram for WordLevelDiff:
Collaboration diagram for WordLevelDiff:

Public Member Functions

 __construct ($orig_lines, $closing_lines)
 
 closing ()
 
 orig ()
 
- Public Member Functions inherited from MappedDiff
 __construct ($from_lines, $to_lines, $mapped_from_lines, $mapped_to_lines)
 Constructor. More...
 
- Public Member Functions inherited from Diff
 __construct ($from_lines, $to_lines)
 Constructor. More...
 
 closing ()
 Get the closing set of lines. More...
 
 getEdits ()
 
 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...
 
 reverse ()
 Compute reversed Diff. More...
 

Public Attributes

const MAX_LINE_LENGTH = 10000
 
- Public Attributes inherited from Diff
DiffOp[] $edits
 

Private Member Functions

 split ($lines)
 

Detailed Description

Todo:
document
Access:
private

Definition at line 702 of file DairikiDiff.php.

Constructor & Destructor Documentation

WordLevelDiff::__construct (   $orig_lines,
  $closing_lines 
)
Parameters
string[]$orig_lines
string[]$closing_lines

Definition at line 709 of file DairikiDiff.php.

References list, and split().

Member Function Documentation

WordLevelDiff::closing ( )
Returns
string[]

Definition at line 779 of file DairikiDiff.php.

References $lines, HWLDFWordAccumulator\addWords(), as, and edits.

WordLevelDiff::orig ( )
Returns
string[]

Definition at line 761 of file DairikiDiff.php.

References $lines, HWLDFWordAccumulator\addWords(), as, and edits.

WordLevelDiff::split (   $lines)
private
Parameters
string[]$lines
Returns
array[]

Definition at line 723 of file DairikiDiff.php.

References $line, $lines, and as.

Referenced by __construct().

Member Data Documentation

const WordLevelDiff::MAX_LINE_LENGTH = 10000

Definition at line 703 of file DairikiDiff.php.


The documentation for this class was generated from the following file: