MediaWiki  1.23.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
 getEdits ()
 
 isEmpty ()
 Check for empty diff. More...
 
 lcs ()
 Compute the length of the Longest Common Subsequence (LCS). 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:\n private

Definition at line 970 of file DairikiDiff.php.

Constructor & Destructor Documentation

◆ __construct()

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

Reimplemented from Diff.

Definition at line 977 of file DairikiDiff.php.

References list, split(), wfProfileIn(), and wfProfileOut().

Member Function Documentation

◆ closing()

WordLevelDiff::closing ( )
Returns
string[]

Reimplemented from Diff.

Definition at line 1053 of file DairikiDiff.php.

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

◆ orig()

WordLevelDiff::orig ( )
Returns
string[]

Reimplemented from Diff.

Definition at line 1033 of file DairikiDiff.php.

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

◆ split()

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

Definition at line 993 of file DairikiDiff.php.

References $line, $lines, array(), as, wfProfileIn(), and wfProfileOut().

Referenced by __construct().

Member Data Documentation

◆ MAX_LINE_LENGTH

const WordLevelDiff::MAX_LINE_LENGTH = 10000

Definition at line 971 of file DairikiDiff.php.


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