SyndicationDomination 0.0
An RSS/Atom parser, because there's nothing else out there.
|
Classes | |
struct | xml_string_writer |
Functions | |
bool | __trim_filter (unsigned char ch) |
void | ltrim (std::string &s) |
Trims a string from the start, in place. | |
void | rtrim (std::string &s) |
Trims a string from the end, in place. | |
void | trim (std::string &s) |
Trims a string from both ends, in place. | |
void | lower (std::string &s) |
Changes the string case to all lowercase, in place. | |
bool | str_has_prefix (std::string s, std::string prefix) |
Checks if the string s has the prefix prefix . | |
std::vector< std::string > | split (std::string s, char delim) |
Splits a string into an std::vector of strings, using a single character delimiter. | |
std::string | current_time () |
Returns the current date and time in ISO 8601 format, with UTC offset. | |
bool | is_url (std::string s) |
Rudimentarily checks if the provided string is a URL. | |
std::string | 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 | 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. | |
Variables | |
const std::string | ATOM_LINK_TAGS [] |
|
inline |
|
inline |
Returns the current date and time in ISO 8601 format, with UTC offset.
|
inline |
Searches for a certain value, starting from a provided pugi::xml_node
, using a vector of ExtractionParam objects to examine different possible alternatives.
node | the pugi::xml_node treated as the root node for the search. |
params | see ExtractionParam |
|
inline |
Searches for a certain value pertaining to a <link />
node.
node | the pugi::xml root node containing the <link /> node(s). |
rels | a list of possible acceptable values for the rel attribute. |
types | a list of possible acceptable values for the type attribute. |
opt_rel | can optionally be set to true to accept values where the rel attribute is absent or empty. |
opt_type | can optionally be set to true to accept values where the type attribute is absent or empty. |
|
inline |
Rudimentarily checks if the provided string is a URL.
|
inline |
Changes the string case to all lowercase, in place.
|
inline |
Trims a string from the start, in place.
|
inline |
Trims a string from the end, in place.
|
inline |
Splits a string into an std::vector of strings, using a single character delimiter.
s | the input string. |
delim | the single character delimiter to be used to split the string. |
|
inline |
Checks if the string s
has the prefix prefix
.
s | the input string. |
prefix | the prefix to search for. |
|
inline |
Trims a string from both ends, in place.
const std::string SynDomUtils::ATOM_LINK_TAGS[] |