Utilities for XML parsing, encoding, and decoding and message handlers. More...
#include <XmlRpcUtil.h>
Static Public Member Functions | |
static void | error (const char *fmt,...) |
Dump error messages somewhere. More... | |
static bool | findTag (const char *tag, std::string const &xml, int *offset) |
Returns true if the tag is found and updates offset to the char after the tag. More... | |
static std::string | getNextTag (std::string const &xml, int *offset) |
static void | log (int level, const char *fmt,...) |
Dump messages somewhere. More... | |
static std::string | nextTagData (const char *tag, std::string const &xml, int *offset) |
static bool | nextTagIs (const char *tag, std::string const &xml, int *offset) |
static std::string | parseTag (const char *tag, std::string const &xml, int *offset) |
static std::string | xmlDecode (const std::string &encoded) |
Convert encoded xml to raw text. More... | |
static std::string | xmlEncode (const std::string &raw) |
Convert raw text to encoded xml. More... | |
Utilities for XML parsing, encoding, and decoding and message handlers.
Definition at line 84 of file XmlRpcUtil.h.
|
static |
Dump error messages somewhere.
Definition at line 96 of file XmlRpcUtil.cpp.
|
static |
Returns true if the tag is found and updates offset to the char after the tag.
Definition at line 133 of file XmlRpcUtil.cpp.
|
static |
Returns the next tag and updates offset to the char after the tag, or empty string if the next non-whitespace character is not '<'
Definition at line 225 of file XmlRpcUtil.cpp.
|
static |
Dump messages somewhere.
Definition at line 81 of file XmlRpcUtil.cpp.
|
static |
Returns contents between <tag> and </tag> at the specified offset (modulo any whitespace), and updates offset to char after </tag>
Definition at line 173 of file XmlRpcUtil.cpp.
|
static |
Returns true if the tag is found at the specified offset (modulo any whitespace) and updates offset to the char after the tag
Definition at line 150 of file XmlRpcUtil.cpp.
|
static |
Returns contents between <tag> and </tag>, updates offset to char after </tag>. This method will skip any intermediate string to find the tag; as such, it is unsafe to use in general, and nextTagData
should be used instead.
Definition at line 112 of file XmlRpcUtil.cpp.
|
static |
Convert encoded xml to raw text.
Definition at line 262 of file XmlRpcUtil.cpp.
|
static |
Convert raw text to encoded xml.
Definition at line 299 of file XmlRpcUtil.cpp.