From a1b8bbd8a22702232d4fe23ea7cf7d93bcea1daa Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 13 Sep 2005 13:57:28 +0000 Subject: merged Andres Riancho's regex extensions into the code (hopefully correctly) --- template.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'template.h') diff --git a/template.h b/template.h index ff714ae4..6e16f25a 100644 --- a/template.h +++ b/template.h @@ -3,6 +3,12 @@ * This code is placed under the GPL. * begun 2004-11-17 rgerhards */ + +#ifdef FEATURE_REGEXP +/* Include regular expressions */ +#include +#endif + struct template { struct template *pNext; char *pszName; @@ -35,6 +41,10 @@ struct templateEntry { char *pPropRepl; /* pointer to property replacer string */ unsigned iFromPos; /* for partial strings only chars from this position ... */ unsigned iToPos; /* up to that one... */ +#ifdef FEATURE_REGEXP + regex_t re; /* APR: this is the regular expression */ + unsigned has_regex; +#endif enum tplFormatTypes eDateFormat; enum tplFormatCaseConvTypes eCaseConv; struct { /* bit fields! */ -- cgit