Метод | Описание | |
---|---|---|
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 ignoreWhitespaceAsToken ) : TokenType |
Returns the next token.
|
|
StreamTokenizer ( |
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 ignoreWhitespaceAsToken ) : TokenType | ||
ignoreWhitespaceAsToken | bool | Determines is whitespace is ignored. True if whitespace is to be ignored. |
Результат | TokenType |
public StreamTokenizer ( |
||
reader | A TextReader with some text to read. | |
ignoreWhitespace | bool | Flag indicating whether whitespace should be ignored. |
Результат | System |