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 '"'
53// the default set of split characters, ie. characters that separate elements
54// in a list. If these characters appear unescaped and not between {} or ""
55// in a list, they signify the end of the current element.
56#define WVTCL_SPLITCHARS_STR " \t\n\r"
57extern const WvStringMask WVTCL_SPLITCHARS;
69WvString wvtcl_escape(WvStringParm s,
70 const WvStringMask &nasties = WVTCL_NASTY_SPACES);
79WvString wvtcl_unescape(WvStringParm s);
87WvString wvtcl_encode(WvList<WvString> &l,
88 const WvStringMask &nasties = WVTCL_NASTY_SPACES,
89 const WvStringMask &splitchars = WVTCL_SPLITCHARS);
96WvString wvtcl_getword(WvBuf &buf,
97 const WvStringMask &splitchars = WVTCL_SPLITCHARS,
98 bool do_unescape = true);
116void wvtcl_decode(WvList<WvString> &l, WvStringParm _s,
117 const WvStringMask &splitchars = WVTCL_SPLITCHARS,
118 bool do_unescape = true);
120#endif // __WVTCLSTRING_H
A class used to provide a masked lookup for characters in a string.