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 bool | nextTagIs (const char *tag, std::string const &xml, int *offset) |
static std::string | parseTag (const char *tag, std::string const &xml, int *offset) |
Returns contents between <tag> and </tag>, updates offset to char after </tag> More... | |
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 86 of file XmlRpcUtil.h.
|
static |
Dump error messages somewhere.
Definition at line 95 of file XmlRpcUtil.cpp.
|
static |
Returns true if the tag is found and updates offset to the char after the tag.
Definition at line 127 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 163 of file XmlRpcUtil.cpp.
|
static |
Dump messages somewhere.
Definition at line 80 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 142 of file XmlRpcUtil.cpp.
|
static |
Returns contents between <tag> and </tag>, updates offset to char after </tag>
Definition at line 109 of file XmlRpcUtil.cpp.
|
static |
Convert encoded xml to raw text.
Definition at line 198 of file XmlRpcUtil.cpp.
|
static |
Convert raw text to encoded xml.
Definition at line 235 of file XmlRpcUtil.cpp.