Update of /cvsroot/mod-c/ehtml/include
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv12608/include
Modified Files:
Common.h
Log Message:
* Wrote hex_aton.
* Recoded GetByteFromHex into 2 calls of hex_aton.
* Wrote xatoul.
* Wrote is_directory.
* Wrote xmemdup.
Index: Common.h
===================================================================
RCS file: /cvsroot/mod-c/ehtml/include/Common.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Common.h 6 Mar 2006 08:00:34 -0000 1.7
--- Common.h 8 Sep 2006 14:24:05 -0000 1.8
***************
*** 24,27 ****
--- 24,29 ----
//#include <new>
+ #include <string>
+ #include "MemBuf.h"
#include "ehtml.h"
#include <apr_pools.h>
***************
*** 175,178 ****
--- 177,198 ----
extern int GetByteFromString( unsigned char * buf, int buf_len, const char * hex_string );
+ const char* ehtml_strerror(int errno);
+
+ std::string urlencode(const MemBuf& mb); //TODO: updateme
+ std::string urlencode(const std::string& s); //TODO: updateme
+ MemBuf urldecode(const std::string& s) throw (const char*); //TODO: updateme
+
+ std::string hexencode(const MemBuf& mb); //TODO: writeme
+ MemBuf hexdecode(const std::string& s) throw (const char*); //TODO: writeme
+
+ std::string base64encode(const MemBuf& mb); //TODO: writeme
+ MemBuf base64decode(const std::string& s) throw (const char*); //TODO: writeme
+
+ unsigned long xatoul(const char* s) throw(const char*);
+ double xatod(const char* s) throw(const char*);
+ bool is_directory(const char* filename);
+
+ void* xmemdup(const void* p, size_t n);
+
#ifdef DEBUG
#define ASSERT( expr ) {\
|