C# 클래스 NAnt.Core.Filters.ReplaceString

상속: NAnt.Core.Filters.Filter
파일 보기 프로젝트 열기: skolima/NAnt 1 사용 예제들

Private Properties

프로퍼티 타입 설명
CompareCharacters bool
FindString bool
GetNextCharacter int

공개 메소드들

메소드 설명
Chain ( ChainableReader chainedReader ) : void

Construct that allows this filter to be chained to the one in the parameter chainedReader.

Peek ( ) : int

Reads the next character applying the filter logic without advancing the current position in the stream. Peek currently is not supported.

Read ( ) : int

Reads the next character applying the filter logic.

비공개 메소드들

메소드 설명
CompareCharacters ( int char1, int char2 ) : bool

Compares to characters taking into account the _ignoreCase flag.

FindString ( int startChar, bool &streamEnded, string &nonMatchingChars ) : bool

Helper function used to search for the filter's traget string. If the string is found the result is true. If the string was not found false is returned and nonMatchingChars contains the characters that were read to determine if the string is present.

It is assumed the stream is positioned at the character after the first character in the target string.

GetNextCharacter ( AcquireCharDelegate AcquireChar ) : int

Returns the next character in the stream replacing the specified character. Using the AcquireCharDelegate allows for the same implementation for Read and Peek

메소드 상세

Chain() 공개 메소드

Construct that allows this filter to be chained to the one in the parameter chainedReader.
public Chain ( ChainableReader chainedReader ) : void
chainedReader ChainableReader Filter that the filter will be chained to
리턴 void

Peek() 공개 메소드

Reads the next character applying the filter logic without advancing the current position in the stream. Peek currently is not supported.
public Peek ( ) : int
리턴 int

Read() 공개 메소드

Reads the next character applying the filter logic.
public Read ( ) : int
리턴 int