diff options
Diffstat (limited to 'src/rexp.h')
-rw-r--r-- | src/rexp.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -27,13 +27,13 @@ */ #ifndef KBS_REXP_H -#define KBS_REXP_H +#define KBS_REXP_H "$Id$" #include <stdlib.h> /* ---------------------------------------- INTERFACES */ -typedef void *RE_Expression; +typedef struct RE_Expression *RE_Expression; /* Compile a regular expression for use. Returns NULL if the expression @@ -47,6 +47,11 @@ RE_Expression RECompile(const char *regexpr); int RESearch(const RE_Expression re, const char *string); +/* Gets the original expression used to compile the regular expression. +*/ +const char *REGetExpression(const RE_Expression re); + + /* Free a regular expression */ void REFree(RE_Expression re); |