XmlRpcUtil.h
Go to the documentation of this file.
1 #ifndef _XMLRPCUTIL_H_
2 #define _XMLRPCUTIL_H_
3 //
4 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
5 //
6 #if defined(_MSC_VER)
7 # pragma warning(disable:4786) // identifier was truncated in debug info
8 #endif
9 
10 #ifndef MAKEDEPEND
11 # include <string>
12 #endif
13 
14 #include "xmlrpcpp/XmlRpcDecl.h"
15 
16 #if defined(_MSC_VER)
17 # define snprintf _snprintf_s
18 # define vsnprintf _vsnprintf_s
19 # define strcasecmp _stricmp
20 # define strncasecmp _strnicmp
21 #elif defined(__BORLANDC__)
22 # define strcasecmp stricmp
23 # define strncasecmp strnicmp
24 #endif
25 
26 namespace XmlRpc {
27 
30  public:
31  // hokey xml parsing
33  static std::string parseTag(const char* tag, std::string const& xml, int* offset);
34 
36  static bool findTag(const char* tag, std::string const& xml, int* offset);
37 
40  static std::string getNextTag(std::string const& xml, int* offset);
41 
44  static bool nextTagIs(const char* tag, std::string const& xml, int* offset);
45 
46 
48  static std::string xmlEncode(const std::string& raw);
49 
51  static std::string xmlDecode(const std::string& encoded);
52 
53 
55  static void log(int level, const char* fmt, ...);
56 
58  static void error(const char* fmt, ...);
59 
60  };
61 } // namespace XmlRpc
62 
63 #endif // _XMLRPCUTIL_H_
Definition: XmlRpc.h:39
Utilities for XML parsing, encoding, and decoding and message handlers.
Definition: XmlRpcUtil.h:29
#define XMLRPCPP_DECL
Definition: XmlRpcDecl.h:52


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley, Austin Hendrix, Dirk Thomas
autogenerated on Mon Nov 2 2020 03:52:24