C# 클래스 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).
파일 보기 프로젝트 열기: jagregory/GitSharp 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Edit() 공개 메소드

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() 공개 메소드

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() 공개 메소드

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 . ///
리턴 bool

ExtendA() 공개 메소드

Increase EndA by 1.
public ExtendA ( ) : void
리턴 void

ExtendB() 공개 메소드

Increase EndB by 1.
public ExtendB ( ) : void
리턴 void

GetHashCode() 공개 메소드

public GetHashCode ( ) : int
리턴 int

Swap() 공개 메소드

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

ToString() 공개 메소드

public ToString ( ) : string
리턴 string

operator() 공개 정적인 메소드

public static operator ( ) : bool
리턴 bool