Orcus
|
Protected Member Functions | |
parser_base (const char *p, size_t n) | |
bool | has_char () const |
bool | has_next () const |
void | next (size_t inc=1) |
void | prev (size_t dec=1) |
char | cur_char () const |
char | next_char () const |
void | skip (const char *chars_to_skip) |
bool | parse_expected (const char *expected) |
double | parse_double () |
size_t | remaining_size () const |
std::ptrdiff_t | offset () const |
Protected Attributes | |
const char * | mp_begin |
const char * | mp_char |
const char * | mp_end |
|
protected |
Return the current offset from the beginning of the character stream.
|
protected |
Try to parse the next characters as double, or return NaN in case of failure.
|
protected |
Parse and check next characters to see if it matches specified character sequence.
expected | null-terminated character array to match against. |
|
protected |
Determine the number of characters remaining after the current character. For instance, if the current character is on the last character in the stream, this method will return 0, whereas if it's on the first character, it will return the total length - 1.