cppassist  1.0.0.f4fab4f962ff
C++ sanctuary for small but powerful and frequently required, stand alone features.
Public Attributes | List of all members
cppassist::Tokenizer::Token Struct Reference

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...
 

Detailed Description

Token

Member Data Documentation

◆ type

TokenType cppassist::Tokenizer::Token::type

Type of token (see TokenType)

◆ content

std::string cppassist::Tokenizer::Token::content

Token content (the actual string read)

◆ intValue

int cppassist::Tokenizer::Token::intValue

Only valid if type == TokenNumber.

◆ numberValue

double cppassist::Tokenizer::Token::numberValue

Only valid if type == TokenNumber.

◆ stringValue

std::string cppassist::Tokenizer::Token::stringValue

Only valid if type == TokenString.

◆ booleanValue

bool cppassist::Tokenizer::Token::booleanValue

Only valid if type == TokenBoolean.

◆ isDouble

bool cppassist::Tokenizer::Token::isDouble

If type == TokenNumber and isDouble, use numberValue.

◆ begin

const char* cppassist::Tokenizer::Token::begin

Pointer to the first character of the token.

◆ end

const char* cppassist::Tokenizer::Token::end

Pointer to the first character after the token.

◆ line

unsigned int cppassist::Tokenizer::Token::line

Line number where the token begins.

◆ column

unsigned int cppassist::Tokenizer::Token::column

Column number where the token begins.


The documentation for this struct was generated from the following file: