23token::token(
const std::string& s) : begin(&s[0]), end(&s[0]+s.length())
66std::string token::str() const
68 return empty()?std::string():std::string(begin, end-begin);
std::string to_string(const std::string &v, unsigned int w, unsigned int p, bool)
specialization of conversion from string to strings
bool is_element(char c, const std::string &s)
check if char c arises in string s
Helper functions to process strings.
bool operator==(const char *s) const
compare to const char*
void skip(const std::string &skip_chars)
set begin by skipping all instances of the given character set
const char * begin
pointers that define the range of characters
token()
construct with both pointers set to 0
bool operator!=(const char *s) const
compare to const char*
void reverse_skip(const std::string &skip_chars)
set end by skipping all instances of the given character set