Overview

Packages

  • Text
    • Diff

Classes

  • Horde_Text_Diff
  • Horde_Text_Diff_Engine_Native
  • Horde_Text_Diff_Engine_Shell
  • Horde_Text_Diff_Engine_String
  • Horde_Text_Diff_Engine_Xdiff
  • Horde_Text_Diff_Exception
  • Horde_Text_Diff_Mapped
  • Horde_Text_Diff_Op_Add
  • Horde_Text_Diff_Op_Base
  • Horde_Text_Diff_Op_Change
  • Horde_Text_Diff_Op_Copy
  • Horde_Text_Diff_Op_Delete
  • Horde_Text_Diff_Renderer
  • Horde_Text_Diff_Renderer_Context
  • Horde_Text_Diff_Renderer_Inline
  • Horde_Text_Diff_Renderer_Unified
  • Horde_Text_Diff_ThreeWay
  • Horde_Text_Diff_ThreeWay_BlockBuilder
  • Horde_Text_Diff_ThreeWay_Op_Base
  • Horde_Text_Diff_ThreeWay_Op_Copy
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Text_Diff_Mapped

Copyright 2007-2012 Horde LLC (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Horde_Text_Diff
Extended by Horde_Text_Diff_Mapped
Package: Text\Diff
Author: Geoffrey T. Dairiki dairiki@dairiki.org
Located at Horde/Text/Diff/Mapped.php
Methods summary
public
# __construct( array $from_lines, array $to_lines, array $mapped_from_lines, array $mapped_to_lines )

Computes a diff between sequences of strings.

Computes a diff between sequences of strings.

This can be used to compute things like case-insensitve diffs, or diffs which ignore changes in white-space.

Parameters

$from_lines
An array of strings.
$to_lines
An array of strings.
$mapped_from_lines
<p>This array should have the same size number of elements as $from_lines. The elements in $mapped_from_lines and $mapped_to_lines are what is actually compared when computing the diff.</p>
$mapped_to_lines
<p>This array should have the same number of elements as $to_lines.</p>

Overrides

Horde_Text_Diff::__construct()
Methods inherited from Horde_Text_Diff
countAddedLines(), countDeletedLines(), getDiff(), getFinal(), getOriginal(), isEmpty(), lcs(), reverse(), trimNewlines()
API documentation generated by ApiGen