genesis/
genesis/bin/
genesis/doc/
genesis/etc/
genesis/microsoft/coldcc/
genesis/microsoft/crypt/
genesis/microsoft/data/
genesis/microsoft/db/
genesis/microsoft/genesis/
genesis/microsoft/io/
genesis/microsoft/misc/
genesis/microsoft/mod/
genesis/microsoft/ndbm/
genesis/microsoft/ops/
genesis/microsoft/pcode/
genesis/test/
/*
// Full copyright information is available in the file ../doc/CREDITS
*/

#ifndef cdc_strutil_h
#define cdc_strutil_h

void     init_match(void);
cList * match_template(char * ctemplate, char * s);
cList * match_pattern(char * pattern, char * s);
cList * match_regexp(cStr * reg, char * s, Bool sensitive, Bool * error);
cList * regexp_matches(cStr * reg, char * s, Bool sensitive, Bool * error);
Int parse_regfunc_args(char * args, Int flags);
cStr * strsub(cStr * sstr, cStr * ssearch, cStr * sreplace, Int flags);
cStr * strsed(cStr * reg,      /* the regexp string */
                  cStr * ss,   /* the string to match against */
                  cStr * rs,   /* the replacement string */
                  Int flags,   /* flags */
                  Int mult);   /* multiplier */
cStr * strfmt(cStr * str, cData * args, Int argc);
cList   * strexplode(cStr * str, char * sep, Int sep_len, Bool blanks);
cList   * strsplit(cStr * str, cStr * regexp, Int flags);

/* string flags */
#define RF_NONE      0
#define RF_GLOBAL    1
#define RF_SENSITIVE 2
#define RF_BLANKS    4

#endif