PHP Class DiffMatchPatch\PatchObject

Author: Neil Fraser ([email protected])
Author: Daniil Skrobov ([email protected])
Exibir arquivo Open project: yetanotherape/diff-match-patch

Protected Properties

Property Type Description
$changes array TODO replace to diff object
$length1 integer
$length2 integer
$start1 integer
$start2 integer

Public Methods

Method Description
__toString ( ) : string Emmulate GNU diff's format.
appendChanges ( array $change )
getChanges ( ) : array
getLength1 ( ) : integer
getLength2 ( ) : integer
getStart1 ( ) : integer
getStart2 ( ) : integer
prependChanges ( array $change )
setChanges ( $changes )
setLength1 ( $length1 )
setLength2 ( $length2 )
setStart1 ( $start1 )
setStart2 ( $start2 )

Method Details

__toString() public method

Header: @@ -382,8 +481,9 @@ Indicies are printed as 1-based, not 0-based.
public __toString ( ) : string
return string The GNU diff string.

appendChanges() public method

public appendChanges ( array $change )
$change array

getChanges() public method

public getChanges ( ) : array
return array

getLength1() public method

public getLength1 ( ) : integer
return integer

getLength2() public method

public getLength2 ( ) : integer
return integer

getStart1() public method

public getStart1 ( ) : integer
return integer

getStart2() public method

public getStart2 ( ) : integer
return integer

prependChanges() public method

public prependChanges ( array $change )
$change array

setChanges() public method

public setChanges ( $changes )
$changes

setLength1() public method

public setLength1 ( $length1 )
$length1

setLength2() public method

public setLength2 ( $length2 )
$length2

setStart1() public method

public setStart1 ( $start1 )
$start1

setStart2() public method

public setStart2 ( $start2 )
$start2

Property Details

$changes protected_oe property

TODO replace to diff object
protected array $changes
return array

$length1 protected_oe property

protected int $length1
return integer

$length2 protected_oe property

protected int $length2
return integer

$start1 protected_oe property

protected int $start1
return integer

$start2 protected_oe property

protected int $start2
return integer