|
bool | SynDomUtils::__trim_filter (unsigned char ch) |
|
void | SynDomUtils::ltrim (std::string &s) |
| Trims a string from the start, in place.
|
|
void | SynDomUtils::rtrim (std::string &s) |
| Trims a string from the end, in place.
|
|
void | SynDomUtils::trim (std::string &s) |
| Trims a string from both ends, in place.
|
|
void | SynDomUtils::lower (std::string &s) |
| Changes the string case to all lowercase, in place.
|
|
bool | SynDomUtils::str_has_prefix (std::string s, std::string prefix) |
| Checks if the string s has the prefix prefix .
|
|
std::vector< std::string > | SynDomUtils::split (std::string s, char delim) |
| Splits a string into an std::vector of strings, using a single character delimiter.
|
|
std::string | SynDomUtils::current_time () |
| Returns the current date and time in ISO 8601 format, with UTC offset.
|
|
bool | SynDomUtils::is_url (std::string s) |
| Rudimentarily checks if the provided string is a URL.
|
|
std::string | SynDomUtils::extract_from_node (pugi::xml_node node, std::vector< ExtractionParam > params) |
| Searches for a certain value, starting from a provided pugi::xml_node , using a vector of ExtractionParam objects to examine different possible alternatives.
|
|
std::string | SynDomUtils::extract_link (pugi::xml_node node, std::vector< std::string > rels, std::vector< std::string > types, bool opt_rel=false, bool opt_type=false) |
| Searches for a certain value pertaining to a <link /> node.
|
|