XmlRpcUtil.h
Go to the documentation of this file.
00001 #ifndef _XMLRPCUTIL_H_
00002 #define _XMLRPCUTIL_H_
00003 //
00004 // XmlRpc++ Copyright (c) 2002-2003 by Chris Morley
00005 //
00006 #if defined(_MSC_VER)
00007 # pragma warning(disable:4786)    // identifier was truncated in debug info
00008 #endif
00009 
00010 #ifndef MAKEDEPEND
00011 # include <string>
00012 #endif
00013 
00014 #include "XmlRpcDecl.h"
00015 
00016 #if defined(_MSC_VER)
00017 # define snprintf           _snprintf_s
00018 # define vsnprintf    _vsnprintf_s
00019 # define strcasecmp       _stricmp
00020 # define strncasecmp    _strnicmp
00021 #elif defined(__BORLANDC__)
00022 # define strcasecmp stricmp
00023 # define strncasecmp strnicmp
00024 #endif
00025 
00026 namespace XmlRpc {
00027 
00029   class XMLRPCPP_DECL XmlRpcUtil {
00030   public:
00031     // hokey xml parsing
00033     static std::string parseTag(const char* tag, std::string const& xml, int* offset);
00034 
00036     static bool findTag(const char* tag, std::string const& xml, int* offset);
00037 
00040     static std::string getNextTag(std::string const& xml, int* offset);
00041 
00044     static bool nextTagIs(const char* tag, std::string const& xml, int* offset);
00045 
00046 
00048     static std::string xmlEncode(const std::string& raw);
00049 
00051     static std::string xmlDecode(const std::string& encoded);
00052 
00053 
00055     static void log(int level, const char* fmt, ...);
00056 
00058     static void error(const char* fmt, ...);
00059 
00060   };
00061 } // namespace XmlRpc
00062 
00063 #endif // _XMLRPCUTIL_H_


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley
autogenerated on Tue Mar 7 2017 03:44:43