1 diff.inc | public HWLDFWordAccumulator::addWords($words, $tag = '') |
Parameters
$words:
$tag string:
File
- core/
includes/ diff.inc, line 840 - A PHP diff engine for phpwiki. (Taken from phpwiki-1.3.3)
Class
Code
public function addWords($words, $tag = '') {
if ($tag != $this->tag) {
$this->flushGroup($tag);
}
foreach ($words as $word) {
// new-line should only come as first char of word.
if ($word == '') {
continue;
}
if ($word[0] == "\n") {
$this->flushLine($tag);
$word = substr($word, 1);
}
assert(!strstr($word, "\n"));
$this->group .= $word;
}
}