\Text_Diff_Engine_string
Parses unified or context diffs output from eg. the diff utility.
Example:
<code>
$patch = file_get_contents('example.patch');
$diff = new Text_Diff('string', array($patch));
$renderer = new Text_Diff_Renderer_inline();
echo $renderer->render($diff);
</code>
$Horde: framework/Text_Diff/Diff/Engine/string.php,v 1.5.2.7 2009/07/24 13:04:43 jan Exp $
Copyright 2005 Örjan Persson <o@42mm.org>
Copyright 2005-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did
not receive this file, see http://opensource.org/licenses/lgpl-license.php.
- Author: Örjan Persson <o@42mm.org>
Synopsis
class Text_Diff_Engine_string
{
- // methods
- public array diff()
- public array parseUnifiedDiff()
- public array parseContextDiff()
Methods
public
- diff() — Parses a unified or context diff.
- parseContextDiff() — Parses an array containing the context diff.
- parseUnifiedDiff() — Parses an array containing the unified diff.