File/Text_Diff/Diff/Engine/string.php

Description

Parses unified or context diffs output from eg. the diff utility.

Example:

  1.  $patch file_get_contents('example.patch');
  2.  $diff new Text_Diff('string'array($patch));
  3.  $renderer new Text_Diff_Renderer_inline();
  4.  echo $renderer->render($diff);

$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>
  • since: 0.2.0
Classes
Class Description
 class Text_Diff_Engine_string Parses unified or context diffs output from eg. the diff utility.

Documentation generated on Sun, 30 Jan 2011 05:22:26 +0000 by phpDocumentor 1.4.3