Source for file Mapped.php
Documentation is available at Mapped.php
* $Horde: framework/Text_Diff/Diff/Mapped.php,v 1.3.2.4 2009/01/06 15:23:41 jan Exp $
* Copyright 2007-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 Geoffrey T. Dairiki <dairiki@dairiki.org>
* 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.
* @param array $from_lines An array of strings.
* @param array $to_lines An array of strings.
* @param array $mapped_from_lines 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.
* @param array $mapped_to_lines This array should have the same number
* of elements as $to_lines.
$mapped_from_lines, $mapped_to_lines)
parent ::Text_Diff ($mapped_from_lines, $mapped_to_lines);
for ($i = 0; $i < count($this->_edits); $i++ ) {
$orig = &$this->_edits[$i]->orig;
$final = &$this->_edits[$i]->final;
Documentation generated on Mon, 11 Mar 2019 16:03:26 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|