From cb4ebecb2f29c278af71414a0dc2aa28f39f8072 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Thu, 22 Dec 2005 17:38:04 +0000 Subject: added support for field-based text extraction in the property replacer. This is untested so far (the evening came quicker than anticipated ;)) --- template.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'template.h') diff --git a/template.h b/template.h index 8c89eafe..8fde34a9 100644 --- a/template.h +++ b/template.h @@ -44,10 +44,11 @@ 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 +#ifdef FEATURE_REGEXP + regex_t re; /* APR: this is the regular expression */ + unsigned has_regex; +#endif + unsigned has_fields; /* support for field-couting */ enum tplFormatTypes eDateFormat; enum tplFormatCaseConvTypes eCaseConv; struct { /* bit fields! */ -- cgit