A class for tokenizing input character streams.
More...
#include <easy3d/util/tokenizer.h>
|
| Tokenizer (const char *src, const char *delims=nullptr) |
|
void | setConsumeWS (bool ws) |
|
bool | isWhitespace (const char c) |
|
bool | isQuote (const char c) |
|
bool | isEOL (const char c) |
|
bool | isTerm (const char c) |
|
bool | isDelim (const char c) |
|
bool | atEOF () |
|
char | consumeWhitespace () |
|
char | consumeOneDelim () |
|
void | consumeToEOL () |
|
bool | readToken () |
|
bool | requireToken (const char *find) |
|
bool | requireTokenDelim (const char *find) |
|
char | getTermChar () const |
| accessor to get character that caused 'stop' of last token read
|
|
bool | getLastToken (std::string &returnTok) |
| get last read token as a std::string
|
|
const char * | getLastTokenPtr () |
| accessor to get last read token const char *
|
|
uint32_t | getLastTokenLen () const |
| accessor to get last read token length
|
|
bool | getTokenString (std::string &returnTok) |
| get next token as a std::string
|
|
bool | getTokenString (char out[], const uint32_t outmax) |
| get next token as a char array with maximum size.
|
|
bool | getTokenFloat (float &out) |
| get next token as a floating-point number
|
|
uint32_t | getTokenFloatArray (float out[], uint32_t size) |
| get next tokens as array of floating point numbers
|
|
uint32_t | getTokenIntArray (int32_t out[], uint32_t size) |
| get next tokens as array of integer numbers
|
|
bool | getTokenInt (int32_t &out) |
| get next token as an integer
|
|
bool | getTokenUint (uint32_t &out) |
| get next token as an unsigned integer
|
|
bool | getTokenBool (bool &out) |
| get next token as some form of boolean value/string
|
|
A class for tokenizing input character streams.
The documentation for this class was generated from the following file:
- /Users/lnan/Documents/Projects/Easy3D/easy3d/util/tokenizer.h