dockapps/wmbiff-0.4.27/wmbiff/regulo.h
Carlos R. Mafra 21625f40b5 Initial dockapps git repo
I tried to get the latest versions from dockapps.org, but I haven't
tested any of them.

More dockapps will be added as time permits.
2011-03-25 19:45:13 +01:00

18 lines
656 B
C

/* $Id: regulo.h,v 1.2 2003/03/02 02:17:14 bluehal Exp $ */
/* regulo, (pronounced as if the name of a super-hero) added
by Neil Spring to provide a portable interface to regular
expressions that doesn't suck. */
void regulo_atoi(void *dest_int, const char *source);
void regulo_strcpy(void *dest, const char *source);
void regulo_strcpy_tolower(void *dest, const char *source);
void regulo_strcpy_skip1(void *dest, const char *source);
struct regulo {
int match_index;
void *destination;
void (*match_handler) (void *dest, const char *source);
};
int regulo_match(const char *regex,
const char *string, const struct regulo *instructions);