C# 클래스 JsonFx.BuildTools.IO.LineReader

상속: System.IO.TextReader
파일 보기 프로젝트 열기: pocket-playlab/jsonfx-v1 1 사용 예제들

공개 메소드들

메소드 설명
Copy ( int start, int end ) : string

Copies a range from the source

LineReader ( string filePath, IEnumerable filters ) : System

Ctor.

LineReader ( string filePath, string source ) : System

Ctor.

LineReader ( string filePath, string source, IEnumerable filters ) : System

Ctor.

Peek ( ) : int

Unfiltered look ahead

PutBack ( ) : void

Backs the current position up one.

Read ( ) : int

Filtered read of the next source char. Counters are incremented.

NewLine sequences (CR/LF, LF, CR) are normalized to LF.

보호된 메소드들

메소드 설명
CopyRead ( int &copyPosition ) : int

Read for Copying (doesn't reset line.col counters)

Dispose ( bool disposing ) : void

Free source resources.

Peek ( int lookahead ) : int

Peeks with n chars of lookahead.

Read ( bool filter ) : int

Reads the next char

비공개 메소드들

메소드 설명
Filter ( char ch ) : int

Filters based upon an internal Trie

NormalizeSpaces ( char ch, int &pos, int &line, int &col ) : char

Normalized CR/CRLF/LF/FF to LF, or all whitespace to SPACE if NormalizeWhiteSpace is true

메소드 상세

Copy() 공개 메소드

Copies a range from the source
public Copy ( int start, int end ) : string
start int starting position, inclusive
end int ending position, inclusive
리턴 string

CopyRead() 보호된 메소드

Read for Copying (doesn't reset line.col counters)
protected CopyRead ( int &copyPosition ) : int
copyPosition int
리턴 int

Dispose() 보호된 메소드

Free source resources.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

LineReader() 공개 메소드

Ctor.
public LineReader ( string filePath, IEnumerable filters ) : System
filePath string
filters IEnumerable
리턴 System

LineReader() 공개 메소드

Ctor.
public LineReader ( string filePath, string source ) : System
filePath string
source string
리턴 System

LineReader() 공개 메소드

Ctor.
public LineReader ( string filePath, string source, IEnumerable filters ) : System
filePath string
source string
filters IEnumerable
리턴 System

Peek() 공개 메소드

Unfiltered look ahead
public Peek ( ) : int
리턴 int

Peek() 보호된 메소드

Peeks with n chars of lookahead.
protected Peek ( int lookahead ) : int
lookahead int
리턴 int

PutBack() 공개 메소드

Backs the current position up one.
public PutBack ( ) : void
리턴 void

Read() 공개 메소드

Filtered read of the next source char. Counters are incremented.
NewLine sequences (CR/LF, LF, CR) are normalized to LF.
public Read ( ) : int
리턴 int

Read() 보호된 메소드

Reads the next char
protected Read ( bool filter ) : int
filter bool if filtering
리턴 int