XML.h

00001 // $Id: XML.h 22 2010-09-06 02:04:56Z cschwarz1 $
00002 
00003 #ifndef BASE_XML_H
00004 #define BASE_XML_H
00005 
00006 #include "String.h"
00007 
00008 namespace base {
00010 
00014     class PPBASE_EXPORT XML {
00015     public:
00026         static String escapeHTML(const String &str, bool crlf = false);
00027 
00029 
00037         static String escape(const char* str, unsigned int length);
00038 
00040 
00044         static String decode(const String &str);
00045 
00046     private:
00047         static String decodeEntity(const String &str, size_t pos, size_t length);
00048     };
00049 }
00050 
00051 #endif