|
| diff ($from_lines, $to_lines) |
|
Definition at line 258 of file Diff.php.
◆ diff()
Text_Diff_Engine_xdiff::diff |
( |
|
$from_lines, |
|
|
|
$to_lines |
|
) |
| |
Definition at line 260 of file Diff.php.
261 {
262
263 $from_string = implode("\n", $from_lines);
264 $to_string = implode("\n", $to_lines);
265
266
267 $diff = xdiff_string_diff($from_string, $to_string, count($to_lines));
268 $diff = explode("\n", $diff);
269
270
271
272
273
274
275
276
277
278 $edits = array();
279 foreach ($diff as $line) {
280 switch ($line[0]) {
281 case ' ':
283 break;
284
285 case '+':
287 break;
288
289 case '-':
291 break;
292 }
293 }
294
295 return $edits;
296 }
The documentation for this class was generated from the following file:
- Services/XHTMLValidator/validator/Text_Diff/Diff.php