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 WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
WvString wvtcl_encode(WvList< WvString > &l, const WvStringMask &nasties=WVTCL_NASTY_SPACES, const WvStringMask &splitchars=WVTCL_SPLITCHARS)
encode a tcl-style list.
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.
void wvtcl_decode(WvList< WvString > &l, WvStringParm _s, const WvStringMask &splitchars=WVTCL_SPLITCHARS, bool do_unescape=true)
split a tcl-style list.
Specialization of WvBufBase for unsigned char type buffers intended for use with raw memory buffers...
WvString wvtcl_escape(WvStringParm s, const WvStringMask &nasties=WVTCL_NASTY_SPACES)
tcl-escape a string.
A linked list container class.
WvString is an implementation of a simple and efficient printable-string class.
WvString wvtcl_unescape(WvStringParm s)
tcl-unescape a string.