1 /*-------------------------------------------------------------------------
5 * Declarations for fast regex subset, used by ISpell
7 * Portions Copyright (c) 1996-2014, PostgreSQL Global Development Group
9 * src/include/tsearch/dicts/regis.h
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);