class CCL::StringParser
Simple helper class for parsing a string.
#include <stringbuilder.h> class StringParser { public: // construction StringParser (StringRef string); // methods bool advance (int numChars = 1); bool isEndOfString () const; uchar peek () const; uchar read (); bool read (uchar c); bool readUntil (String& string, StringRef delimiters); bool readUntilWhitespace (String& string); bool readToken (StringRef token); bool peekToken (StringRef token) const; bool skipUntil (StringRef token); void skipAny (StringRef characters); void skipWhitepace (); bool skipEmptyLine (); bool skipLineEnding (); };