Метод | Описание | |
---|---|---|
GetNumericValue ( ) : double |
If the current token is a number, this field contains the value of that number. If the current token is a number, this field contains the value of that number. The current token is a number when the value of the ttype field is TT_NUMBER. |
|
GetStringValue ( ) : string |
If the current token is a word token, this field contains a string giving the characters of the word token.
|
|
GetTokenType ( ) : TokenType |
Gets the token type of the current token.
|
|
NextToken ( ) : TokenType |
Returns the next token.
|
|
NextToken ( bool ignoreWhitespace ) : TokenType |
Returns the next token.
|
|
StreamTokenizer ( TextReader reader, bool ignoreWhitespace ) : System |
Initializes a new instance of the StreamTokenizer class.
|
Метод | Описание | |
---|---|---|
GetType ( char character ) : TokenType |
Determines a characters type (e.g. number, symbols, character).
|
|
NextNonWhitespaceToken ( ) : TokenType |
Returns next token that is not whitespace.
|
|
NextTokenAny ( ) : TokenType |
public NextToken ( bool ignoreWhitespace ) : TokenType | ||
ignoreWhitespace | bool | Determines is whitespace is ignored. True if whitespace is to be ignored. |
Результат | TokenType |
public StreamTokenizer ( TextReader reader, bool ignoreWhitespace ) : System | ||
reader | TextReader | A TextReader with some text to read. |
ignoreWhitespace | bool | Flag indicating whether whitespace should be ignored. |
Результат | System |