C# Class JsonFx.BuildTools.IO.LineReader

Inheritance: System.IO.TextReader
Afficher le fichier Open project: pocket-playlab/jsonfx-v1 Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

Copy() public méthode

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

CopyRead() protected méthode

Read for Copying (doesn't reset line.col counters)
protected CopyRead ( int &copyPosition ) : int
copyPosition int
Résultat int

Dispose() protected méthode

Free source resources.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

LineReader() public méthode

Ctor.
public LineReader ( string filePath, IEnumerable filters ) : System
filePath string
filters IEnumerable
Résultat System

LineReader() public méthode

Ctor.
public LineReader ( string filePath, string source ) : System
filePath string
source string
Résultat System

LineReader() public méthode

Ctor.
public LineReader ( string filePath, string source, IEnumerable filters ) : System
filePath string
source string
filters IEnumerable
Résultat System

Peek() public méthode

Unfiltered look ahead
public Peek ( ) : int
Résultat int

Peek() protected méthode

Peeks with n chars of lookahead.
protected Peek ( int lookahead ) : int
lookahead int
Résultat int

PutBack() public méthode

Backs the current position up one.
public PutBack ( ) : void
Résultat void

Read() public méthode

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

Read() protected méthode

Reads the next char
protected Read ( bool filter ) : int
filter bool if filtering
Résultat int