00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00034 #ifndef __WVTCLSTRING_H
00035 #define __WVTCLSTRING_H
00036
00037 #include "wvbuf.h"
00038
00039
00040
00041 #define WVTCL_NASTIES " \t\n\r"
00042
00043
00044
00045 #define WVTCL_ALWAYS_NASTY "{}\\\""
00046
00047
00048
00049
00050
00051 #define WVTCL_SPLITCHARS " \t\n\r"
00052
00053
00063 WvString wvtcl_escape(WvStringParm s, const char *nasties = WVTCL_NASTIES);
00064
00065
00072 WvString wvtcl_unescape(WvStringParm s);
00073
00074
00080 WvString wvtcl_encode(WvList<WvString> &l, const char *nasties = WVTCL_NASTIES,
00081 const char *splitchars = WVTCL_SPLITCHARS);
00082
00088 WvString wvtcl_getword(WvBuf &buf, const char *splitchars = WVTCL_SPLITCHARS,
00089 bool do_unescape = true);
00090
00107 void wvtcl_decode(WvList<WvString> &l, WvStringParm _s,
00108 const char *splitchars = WVTCL_SPLITCHARS,
00109 bool do_unescape = true);
00110
00111 #endif // __WVTCLSTRING_H