Public Member Functions |
| diff ($from_lines, $to_lines) |
Detailed Description
Definition at line 255 of file Diff.php.
Member Function Documentation
Text_Diff_Engine_xdiff::diff |
( |
|
$from_lines, |
|
|
|
$to_lines |
|
) |
| |
Definition at line 257 of file Diff.php.
{
$from_string = implode("\n", $from_lines);
$to_string = implode("\n", $to_lines);
$diff = xdiff_string_diff($from_string, $to_string, count($to_lines));
$diff = explode("\n", $diff);
$edits = array();
foreach ($diff as $line) {
switch ($line[0]) {
case ' ':
break;
case '+':
break;
case '-':
break;
}
}
return $edits;
}
The documentation for this class was generated from the following file:
- Services/XHTMLValidator/validator/Text_Diff/Diff.php