MediaWiki master
Wikimedia\Diff\WordAccumulator Class Reference

Stores, escapes and formats the results of word-level diff. More...

Public Member Functions

 addWords ( $words, $tag='')
 
 getLines ()
 

Public Attributes

string $delClass = ' class="diffchange diffchange-inline"'
 
string $insClass = ' class="diffchange diffchange-inline"'
 

Detailed Description

Stores, escapes and formats the results of word-level diff.

Definition at line 31 of file WordAccumulator.php.

Member Function Documentation

◆ addWords()

Wikimedia\Diff\WordAccumulator::addWords ( $words,
$tag = '' )
Parameters
string[]$words
string$tag

Definition at line 82 of file WordAccumulator.php.

Referenced by Wikimedia\Diff\WordLevelDiff\closing(), and Wikimedia\Diff\WordLevelDiff\orig().

◆ getLines()

Wikimedia\Diff\WordAccumulator::getLines ( )
Returns
string[]

Definition at line 106 of file WordAccumulator.php.

Member Data Documentation

◆ $delClass

string Wikimedia\Diff\WordAccumulator::$delClass = ' class="diffchange diffchange-inline"'

Definition at line 35 of file WordAccumulator.php.

◆ $insClass

string Wikimedia\Diff\WordAccumulator::$insClass = ' class="diffchange diffchange-inline"'

Definition at line 33 of file WordAccumulator.php.


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