These parse functions work on HTTP char class definitions.
Functions | |
bool | isspace (char c) |
Test if HTTP specification space char, SP or HT. | |
bool RESTCGI_API | parse (std::string::const_iterator &first, std::string::const_iterator last, const char *v) |
bool RESTCGI_API | parse_any (std::string::const_iterator &first, std::string::const_iterator last) |
bool RESTCGI_API | parse_eor (std::string::const_iterator &first, std::string::const_iterator last) |
bool RESTCGI_API | parse_skip (std::string::const_iterator &first, std::string::const_iterator last, const char *terms) |
bool RESTCGI_API restcgi::httpsyn::parse | ( | std::string::const_iterator & | first, | |
std::string::const_iterator | last, | |||
const char * | v | |||
) |
Parse literal, returning whether found or not and advancing first (past literal) if found. Skips leading SP or HT chars.
bool RESTCGI_API restcgi::httpsyn::parse_any | ( | std::string::const_iterator & | first, | |
std::string::const_iterator | last | |||
) |
Parse looking for any non-space char, returning whether found or not and advancing first to non-space if found.
bool RESTCGI_API restcgi::httpsyn::parse_eor | ( | std::string::const_iterator & | first, | |
std::string::const_iterator | last | |||
) |
Parse end-of-range, returning whether found or not and advancing first (to last) if found. Skips SP or HT chars.
bool RESTCGI_API restcgi::httpsyn::parse_skip | ( | std::string::const_iterator & | first, | |
std::string::const_iterator | last, | |||
const char * | terms | |||
) |
Parse looking for term chars skipping all other chars and advancing first (past term char) if found.