Public Member Functions | |
tiny_parser (std::string::const_iterator first, std::string::const_iterator last) | |
Construct. | |
bool | space (size_t size=0) |
match isspace chars, variable size if size 0 | |
bool | operator() (const char *p) |
match literal | |
int | digits (size_t num, bool leading0=true) |
match digits, -1 means no | |
int | array_item (const char **a, size_t size) |
match array item, -1 means no | |
bool | at_end () const |
test at end | |
void | push () |
save first | |
void | pop () |
restore first | |
const std::string::const_iterator & | first () const |
first (next position) |