Text_Diff
[ class tree: Text_Diff ] [ index: Text_Diff ] [ all elements ]

Class: Text_Diff_ThreeWay

Source Location: /Text_Diff-1.2.1/Text/Diff/ThreeWay.php

Class Overview

Text_Diff
   |
   --Text_Diff_ThreeWay

A class for computing three way diffs.


Author(s):

Methods


Inherited Variables

Inherited Methods

Class: Text_Diff

Text_Diff::__construct()
Computes diffs between sequences of strings.
Text_Diff::countAddedLines()
returns the number of new (added) lines in a given diff.
Text_Diff::countDeletedLines()
Returns the number of deleted (removed) lines in a given diff.
Text_Diff::getDiff()
Returns the array of differences.
Text_Diff::getFinal()
Gets the final set of lines.
Text_Diff::getOriginal()
Gets the original set of lines.
Text_Diff::isEmpty()
Checks for an empty diff.
Text_Diff::lcs()
Computes the length of the Longest Common Subsequence (LCS).
Text_Diff::reverse()
Computes a reversed diff.
Text_Diff::trimNewlines()
Removes trailing newlines from a line of text. This is meant to be used with array_walk().
Text_Diff::_getTempDir()
Determines the location of the system temporary directory.

Class Details

[line 25]
A class for computing three way diffs.


[ Top ]


Method Detail

__construct (Constructor)   [line 41]

Text_Diff_ThreeWay __construct( array $orig, array $final1, array $final2)

Computes diff between 3 sequences of strings.

Overrides Text_Diff::__construct() (Computes diffs between sequences of strings.)

Parameters:

array   $orig   —  The original lines to use.
array   $final1   —  The first version to compare to.
array   $final2   —  The second version to compare to.

[ Top ]

mergedOutput   [line 55]

void mergedOutput( [ $label1 = false], [ $label2 = false])


Parameters:

   $label1   — 
   $label2   — 

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:03:27 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.