scsh-0.6/scsh/rx/re1.h

16 lines
501 B
C
Raw Normal View History

1999-09-23 10:27:41 -04:00
/* Exports from re1.c */
1999-09-23 13:46:46 -04:00
int compile_re(s48_value sre, int sm_p, regex_t **cr);
1999-09-23 10:27:41 -04:00
1999-09-23 13:46:46 -04:00
s48_value re_search(const regex_t *re, s48_value str, int start,
s48_value trans_vec, int max_psm,
s48_value start_vec, s48_value end_vec);
1999-09-23 10:27:41 -04:00
/* Filter a vector of strings by a regexp. */
1999-09-23 13:46:46 -04:00
int filter_stringvec(s48_value re_str, char const **stringvec);
1999-09-23 10:27:41 -04:00
/* Error code -> error msg */
const char *re_errint2str(int errcode, const regex_t *re);
void free_re(regex_t *re); /* Free the malloc'd regexp. */