Static Public Member Functions | List of all members
XmlRpc::XmlRpcUtil Class Reference

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...
 

Detailed Description

Utilities for XML parsing, encoding, and decoding and message handlers.

Definition at line 84 of file XmlRpcUtil.h.

Member Function Documentation

◆ error()

void XmlRpcUtil::error ( const char *  fmt,
  ... 
)
static

Dump error messages somewhere.

Definition at line 96 of file XmlRpcUtil.cpp.

◆ findTag()

bool XmlRpcUtil::findTag ( const char *  tag,
std::string const &  xml,
int *  offset 
)
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.

◆ getNextTag()

std::string XmlRpcUtil::getNextTag ( std::string const &  xml,
int *  offset 
)
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.

◆ log()

void XmlRpcUtil::log ( int  level,
const char *  fmt,
  ... 
)
static

Dump messages somewhere.

Definition at line 81 of file XmlRpcUtil.cpp.

◆ nextTagData()

std::string XmlRpcUtil::nextTagData ( const char *  tag,
std::string const &  xml,
int *  offset 
)
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.

◆ nextTagIs()

bool XmlRpcUtil::nextTagIs ( const char *  tag,
std::string const &  xml,
int *  offset 
)
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.

◆ parseTag()

std::string XmlRpcUtil::parseTag ( const char *  tag,
std::string const &  xml,
int *  offset 
)
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.

◆ xmlDecode()

std::string XmlRpcUtil::xmlDecode ( const std::string &  encoded)
static

Convert encoded xml to raw text.

Definition at line 262 of file XmlRpcUtil.cpp.

◆ xmlEncode()

std::string XmlRpcUtil::xmlEncode ( const std::string &  raw)
static

Convert raw text to encoded xml.

Definition at line 299 of file XmlRpcUtil.cpp.


The documentation for this class was generated from the following files:


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas , Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:32