C# Class MapAround.IO.StreamTokenizer

Reads an input stream and constructs tokens from the data read.
ファイルを表示 Open project: gkrsu/maparound.core

Public Methods

Method Description
GetNumericValue ( ) : double

Parses a numeric value.

GetStringValue ( ) : string

Parses a word value.

GetTokenType ( ) : TokenType

Gets a type of current token.

NextToken ( ) : TokenType

Gets a next token.

NextToken ( bool ignoreWhitespace ) : TokenType

Gets a next token.

StreamTokenizer ( TextReader reader, bool ignoreWhitespace ) : System

Initializes a new instance of MapAround.IO.StreamTokenizer

Private Methods

Method Description
GetType ( char character ) : TokenType

Cumputes a token type by its firets character.

NextNonWhitespaceToken ( ) : TokenType

Gets the next token which is different from TokenType.Whitespace.

NextTokenAny ( ) : TokenType

Method Details

GetNumericValue() public method

Parses a numeric value.
public GetNumericValue ( ) : double
return double

GetStringValue() public method

Parses a word value.
public GetStringValue ( ) : string
return string

GetTokenType() public method

Gets a type of current token.
public GetTokenType ( ) : TokenType
return TokenType

NextToken() public method

Gets a next token.
public NextToken ( ) : TokenType
return TokenType

NextToken() public method

Gets a next token.
public NextToken ( bool ignoreWhitespace ) : TokenType
ignoreWhitespace bool A value indicating whether the whitespace symbols are ignored
return TokenType

StreamTokenizer() public method

Initializes a new instance of MapAround.IO.StreamTokenizer
public StreamTokenizer ( TextReader reader, bool ignoreWhitespace ) : System
reader TextReader A System>IO.TextReader instance
ignoreWhitespace bool A value indicating whether the whitespace symbols are ignored while tokenizing
return System