C# Class GitSharp.Core.Diff.Edit

A modified region detected between two versions of roughly the same content. Regions should be specified using 0 based notation, so add 1 to the start and end marks for line numbers in a file. An edit where beginA == endA && beginB > endB is an insert edit, that is sequence B inserted the elements in region [beginB, endB) at beginA. An edit where beginA > endA && beginB > endB is a replace edit, that is sequence B has replaced the range of elements between [beginA, endA) with those found in [beginB, endB).
ファイルを表示 Open project: jagregory/GitSharp Class Usage Examples

Public Methods

Method Description
Edit ( int aStart, int bStart )

Create a new empty edit.

Edit ( int aStart, int aEnd, int bStart, int bEnd )

Create a new empty edit.

Equals ( object obj ) : bool

Determines whether the specified T:System.Object is equal to the current T:System.Object.

ExtendA ( ) : void

Increase EndA by 1.

ExtendB ( ) : void

Increase EndB by 1.

GetHashCode ( ) : int
Swap ( ) : void

Swap A and B, so the edit goes the other direction.

ToString ( ) : string
operator ( ) : bool

Method Details

Edit() public method

Create a new empty edit.
public Edit ( int aStart, int bStart )
aStart int beginA: start and end of region in sequence A; 0 based.
bStart int beginB: start and end of region in sequence B; 0 based.

Edit() public method

Create a new empty edit.
public Edit ( int aStart, int aEnd, int bStart, int bEnd )
aStart int beginA: start and end of region in sequence A; 0 based.
aEnd int endA: end of region in sequence A; must be >= as.
bStart int beginB: start and end of region in sequence B; 0 based.
bEnd int endB: end of region in sequence B; must be >= bs.

Equals() public method

Determines whether the specified T:System.Object is equal to the current T:System.Object.
/// The parameter is null. ///
public Equals ( object obj ) : bool
obj object The to compare with /// the current . ///
return bool

ExtendA() public method

Increase EndA by 1.
public ExtendA ( ) : void
return void

ExtendB() public method

Increase EndB by 1.
public ExtendB ( ) : void
return void

GetHashCode() public method

public GetHashCode ( ) : int
return int

Swap() public method

Swap A and B, so the edit goes the other direction.
public Swap ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool