From fb3b06185460107ac5720b8d2b79114293cbce19 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 23 Nov 2004 17:10:55 +0000 Subject: everything in place now to support writing to SQL --- template.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'template.h') diff --git a/template.h b/template.h index 52869761..5f09dd8d 100644 --- a/template.h +++ b/template.h @@ -18,6 +18,8 @@ struct template { }; enum EntryTypes { UNDEFINED = 0, CONSTANT = 1, FIELD = 2 }; +enum tplFormatTypes { tplFmtDefault = 0, tplFmtMySQLDate = 1 }; +enum tplFormatCaseConvTypes { tplCaseConvNo = 0, tplCaseConvUpper = 1, tplCaseConvLower = 2 }; /* a specific parse entry */ struct templateEntry { @@ -30,6 +32,12 @@ struct templateEntry { } constant; struct { char *pPropRepl; /* pointer to property replacer string */ + unsigned iFromPos; /* for partial strings only chars from this position ... */ + unsigned iToPos; /* up to that one... */ + enum tplFormatTypes eDateFormat; + enum tplFormatCaseConvTypes eCaseConv; + struct { + } options; /* options as bit fields */ } field; } data; }; -- cgit