Evo C++ Library v0.5.1
|
Evo string tokenizers. More...
Classes | |
class | StrTok |
String forward tokenizer. More... | |
class | StrTokBase |
Base tokenizer class – see StrTok and StrTokR. More... | |
class | StrTokLine |
String line tokenizer. More... | |
class | StrTokR |
String reverse tokenizer. More... | |
class | StrTokRS |
String reverse tokenizer (strict). More... | |
class | StrTokS |
String forward tokenizer (strict). More... | |
struct | StrTokVariant< T, NextCh, NextAny > |
String tokenizer adapter used internally to create variants of existing tokenizers – do not use directly. More... | |
Macros | |
#define | EVO_TOK_NEXT_OR_BREAK(TOK, DELIM) if (!TOK.next(DELIM)) break |
Helper for tokenizing using a break-loop. More... | |
#define | EVO_TOK_OR_BREAK(EXPR) if (!EXPR) break |
Helper for tokenizing using a break-loop. More... | |
Typedefs | |
typedef StrTokVariant< StrTok,&StrTok::nextq,&StrTok::nextanyq > | StrTokQ |
String forward tokenizer based on StrTok with quoted token support. More... | |
typedef StrTokVariant< StrTokR,&StrTokR::nextq,&StrTokR::nextanyq > | StrTokQR |
String reverse tokenizer based on StrTokR with quoted token support. More... | |
typedef StrTokVariant< StrTok,&StrTok::nextw > | StrTokWord |
String forward word tokenizer based on StrTok. More... | |
typedef StrTokVariant< StrTokR,&StrTokR::nextw > | StrTokWordR |
String reverse word tokenizer based on StrTokR. More... | |
typedef StrTokVariant< StrTokRS,&StrTokRS::nextw > | StrTokWordRS |
String reverse word tokenizer based on StrTokRS (strict). More... | |
typedef StrTokVariant< StrTokS,&StrTokS::nextw > | StrTokWordS |
String forward word tokenizer based on StrTokS (strict). More... | |
Evo string tokenizers.
#define EVO_TOK_NEXT_OR_BREAK | ( | TOK, | |
DELIM | |||
) | if (!TOK.next(DELIM)) break |
Helper for tokenizing using a break-loop.
TOK.next()
and if it fails this does a break
to stop current loopThese examples use assert()
to represent field validation.
When used with StrTokLine, leave the DELIM
argument empty.
#define EVO_TOK_OR_BREAK | ( | EXPR | ) | if (!EXPR) break |
Helper for tokenizing using a break-loop.
These examples use assert()
to represent field validation.
typedef StrTokVariant<StrTok,&StrTok::nextq,&StrTok::nextanyq> StrTokQ |
String forward tokenizer based on StrTok with quoted token support.
Example:
typedef StrTokVariant<StrTokR,&StrTokR::nextq,&StrTokR::nextanyq> StrTokQR |
String reverse tokenizer based on StrTokR with quoted token support.
Example:
typedef StrTokVariant<StrTok,&StrTok::nextw> StrTokWord |
String forward word tokenizer based on StrTok.
Example:
typedef StrTokVariant<StrTokR,&StrTokR::nextw> StrTokWordR |
String reverse word tokenizer based on StrTokR.
Example:
typedef StrTokVariant<StrTokRS,&StrTokRS::nextw> StrTokWordRS |
String reverse word tokenizer based on StrTokRS (strict).
Example:
typedef StrTokVariant<StrTokS,&StrTokS::nextw> StrTokWordS |
String forward word tokenizer based on StrTokS (strict).
Example: