"TYPO3 4.0.1: t3lib_diff Class Reference", "datetime" => "Sat Dec 2 19:25:52 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
makeDiffDisplay ($str1, $str2, $wrapTag='span') | |
getDiff ($str1, $str2) | |
addClearBuffer ($clearBuffer, $last=0) | |
explodeStringIntoWords ($str) | |
tagSpace ($str, $rev=0) | |
Public Attributes | |
$stripTags = 0 | |
$diffOptions = '' | |
$clearBufferIdx = 0 | |
$differenceLgd = 0 |
Definition at line 66 of file class.t3lib_diff.php.
|
Will bring down the length of strings to < 150 chars if they were longer than 200 chars. This done by preserving the 70 first and last chars and concatenate those strings with "..." and a number indicating the string length
Definition at line 189 of file class.t3lib_diff.php. References t3lib_div::fixed_lgd_cs(). Referenced by makeDiffDisplay(). |
|
Explodes the input string into words. This is done by splitting first by lines, then by space char. Each word will be in stored as a value in an array. Lines will be indicated by two subsequent empty values.
Definition at line 205 of file class.t3lib_diff.php. References t3lib_div::trimExplode(). Referenced by makeDiffDisplay(). |
|
Produce a diff (using the "diff" application) between two strings The function will write the two input strings to temporary files, then execute the diff program, delete the temp files and return the result.
Definition at line 163 of file class.t3lib_diff.php. References t3lib_div::tempnam(), and t3lib_div::writeFile(). Referenced by makeDiffDisplay(). |
|
This will produce a color-marked-up diff output in HTML from the input strings.
Definition at line 86 of file class.t3lib_diff.php. References addClearBuffer(), explodeStringIntoWords(), getDiff(), and tagSpace(). |
|
Adds a space character before and after HTML tags (more precisely any found < or >)
Definition at line 226 of file class.t3lib_diff.php. Referenced by makeDiffDisplay(). |