C# Класс JsonFx.BuildTools.IO.LineReader

Наследование: System.IO.TextReader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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