![]() |
cppassist
1.0.0.f4fab4f962ff
C++ sanctuary for small but powerful and frequently required, stand alone features.
|
Token More...
#include <cppassist/include/cppassist/tokenizer/Tokenizer.h>
Public Attributes | |
TokenType | type |
Type of token (see TokenType) More... | |
std::string | content |
Token content (the actual string read) More... | |
int | intValue |
Only valid if type == TokenNumber. More... | |
double | numberValue |
Only valid if type == TokenNumber. More... | |
std::string | stringValue |
Only valid if type == TokenString. More... | |
bool | booleanValue |
Only valid if type == TokenBoolean. More... | |
bool | isDouble |
If type == TokenNumber and isDouble, use numberValue. More... | |
const char * | begin |
Pointer to the first character of the token. More... | |
const char * | end |
Pointer to the first character after the token. More... | |
unsigned int | line |
Line number where the token begins. More... | |
unsigned int | column |
Column number where the token begins. More... | |
Token
std::string cppassist::Tokenizer::Token::content |
Token content (the actual string read)
int cppassist::Tokenizer::Token::intValue |
Only valid if type == TokenNumber.
double cppassist::Tokenizer::Token::numberValue |
Only valid if type == TokenNumber.
std::string cppassist::Tokenizer::Token::stringValue |
Only valid if type == TokenString.
bool cppassist::Tokenizer::Token::booleanValue |
Only valid if type == TokenBoolean.
bool cppassist::Tokenizer::Token::isDouble |
If type == TokenNumber and isDouble, use numberValue.
const char* cppassist::Tokenizer::Token::begin |
Pointer to the first character of the token.
const char* cppassist::Tokenizer::Token::end |
Pointer to the first character after the token.
unsigned int cppassist::Tokenizer::Token::line |
Line number where the token begins.
unsigned int cppassist::Tokenizer::Token::column |
Column number where the token begins.