C# Class Encog.Util.SimpleParser

A very simple text parser.
Show file Open project: encog/encog-silverlight-core Class Usage Examples

Public Methods

Method Description
Advance ( ) : void

Advance beyond the next character.

Advance ( int p ) : void

Advance the specified number of characters.

EOL ( ) : bool

Returns true of there are no more characters to read.

EatWhiteSpace ( ) : void

Strip any white space from the current position.

IsIdentifier ( ) : bool

CHeck to see if the next character is an identifier.

IsWhiteSpace ( ) : bool

Returns true if the next character is a white space.

LookAhead ( String str, bool ignoreCase ) : bool

Look ahead to see if the specified string is present.

Mark ( ) : void

Mark the current position.

ParseThroughComma ( ) : bool

Parse through a comma.

Peek ( ) : char

Peek ahead to see the next character. But do not advance beyond it.

ReadChar ( ) : char

Read the next character.

ReadQuotedString ( ) : String

Read a quoted string.

ReadToWhiteSpace ( ) : String

Read text up to the next white space.

Remaining ( ) : int

The number of characters remaining.

Reset ( ) : void

Reset back to the marked position.

SimpleParser ( String line ) : System

Construct the object for the specified line.

Method Details

Advance() public method

Advance beyond the next character.
public Advance ( ) : void
return void

Advance() public method

Advance the specified number of characters.
public Advance ( int p ) : void
p int The number of characters to advance.
return void

EOL() public method

Returns true of there are no more characters to read.
public EOL ( ) : bool
return bool

EatWhiteSpace() public method

Strip any white space from the current position.
public EatWhiteSpace ( ) : void
return void

IsIdentifier() public method

CHeck to see if the next character is an identifier.
public IsIdentifier ( ) : bool
return bool

IsWhiteSpace() public method

Returns true if the next character is a white space.
public IsWhiteSpace ( ) : bool
return bool

LookAhead() public method

Look ahead to see if the specified string is present.
public LookAhead ( String str, bool ignoreCase ) : bool
str String The string searching for.
ignoreCase bool True if case is to be ignored.
return bool

Mark() public method

Mark the current position.
public Mark ( ) : void
return void

ParseThroughComma() public method

Parse through a comma.
public ParseThroughComma ( ) : bool
return bool

Peek() public method

Peek ahead to see the next character. But do not advance beyond it.
public Peek ( ) : char
return char

ReadChar() public method

Read the next character.
public ReadChar ( ) : char
return char

ReadQuotedString() public method

Read a quoted string.
public ReadQuotedString ( ) : String
return String

ReadToWhiteSpace() public method

Read text up to the next white space.
public ReadToWhiteSpace ( ) : String
return String

Remaining() public method

The number of characters remaining.
public Remaining ( ) : int
return int

Reset() public method

Reset back to the marked position.
public Reset ( ) : void
return void

SimpleParser() public method

Construct the object for the specified line.
public SimpleParser ( String line ) : System
line String The line to parse.
return System