ARB
|
#include <tools.h>
Public Member Functions | |
StringParser (const std::string &str) | |
bool | atEnd () const |
unsigned char | at () const |
stringCIter | getPosition () const |
void | setPosition (const stringCIter &position) |
void | advance (size_t offset) |
std::string | rest () const |
stringCIter | find (char c) |
size_t | eatSpaces () |
size_t | expectSpaces (size_t count=1, bool allowMore=true) |
size_t | lookingAt (const char *content) |
void | expectContent (const char *content) |
std::string | extractWord (const char *delimiter=" ") |
long | eatNumber (bool &eaten) |
long | extractNumber () |
Public Attributes | |
stringCIter | pos |
stringCIter | end |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 45 of file tools.h.
Referenced by parseCounter().
|
inline |
Definition at line 46 of file tools.h.
Referenced by parseCounter().
|
inline |
|
inline |
|
inline |
Definition at line 58 of file tools.h.
References pos.
Referenced by expectSpaces(), parseCounter(), scanSeqlenFromID(), and scanSeqlenFromLOCUS().
Definition at line 67 of file tools.h.
References CURRENT_REST, eatSpaces(), and GBS_global_string().
Referenced by parseCounter().
Definition at line 79 of file tools.h.
References pos.
Referenced by expectContent(), and parseCounter().
|
inline |
Definition at line 93 of file tools.h.
References CURRENT_REST, GBS_global_string(), and lookingAt().
Referenced by scanSeqlenFromLOCUS().
|
inline |
Definition at line 99 of file tools.h.
References atEnd(), CURRENT_REST, GBS_global_string(), pos, start, and string().
Referenced by scanSeqlenFromID(), and scanSeqlenFromLOCUS().
|
inline |
Definition at line 110 of file tools.h.
References pos.
Referenced by extractNumber(), and parseCounter().
|
inline |
Definition at line 123 of file tools.h.
References CURRENT_REST, eatNumber(), and GBS_global_string().
Referenced by scanSeqlenFromLOCUS().
stringCIter StringParser::pos |
Definition at line 36 of file tools.h.
Referenced by at(), eatNumber(), eatSpaces(), extractWord(), find(), getPosition(), and lookingAt().