Go to the documentation of this file.
34 #ifndef __WVTCLSTRING_H
35 #define __WVTCLSTRING_H
42 #define WVTCL_NASTY_SPACES_STR " \t\n\r"
46 #define WVTCL_NASTY_NEWLINES_STR "\n\r"
50 #define WVTCL_ALWAYS_NASTY_CASE '{': case '}': case '\\': case '"'
56 #define WVTCL_SPLITCHARS_STR " \t\n\r"
98 bool do_unescape =
true);
118 bool do_unescape =
true);
120 #endif // __WVTCLSTRING_H
A class used to provide a masked lookup for characters in a string.
WvString wvtcl_getword(WvBuf &buf, const WvStringMask &splitchars=WVTCL_SPLITCHARS, bool do_unescape=true)
Get a single tcl word from an input buffer, and return the rest of the buffer untouched.
WvString wvtcl_unescape(WvStringParm s)
tcl-unescape a string.
WvString is an implementation of a simple and efficient printable-string class.
WvString wvtcl_escape(WvStringParm s, const WvStringMask &nasties=WVTCL_NASTY_SPACES)
tcl-escape a string.
WvString wvtcl_encode(WvList< WvString > &l, const WvStringMask &nasties=WVTCL_NASTY_SPACES, const WvStringMask &splitchars=WVTCL_SPLITCHARS)
encode a tcl-style list.
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers.
void wvtcl_decode(WvList< WvString > &l, WvStringParm _s, const WvStringMask &splitchars=WVTCL_SPLITCHARS, bool do_unescape=true)
split a tcl-style list.
A linked list container class.