1 /*-------------------------------------------------------------------------
5 * Declarations for for fast regex subset, used by ISpell
7 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
11 *-------------------------------------------------------------------------
17 typedef struct RegisNode
23 struct RegisNode
*next
;
24 unsigned char data
[1];
27 #define RNHDRSZ (offsetof(RegisNode,data))
41 bool RS_isRegis(const char *str
);
43 void RS_compile(Regis
*r
, bool issuffix
, const char *str
);
44 void RS_free(Regis
*r
);
46 /*returns true if matches */
47 bool RS_execute(Regis
*r
, char *str
);