1/*-------------------------------------------------------------------------
6 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
10 * src/backend/tsearch/regis.c
12 *-------------------------------------------------------------------------
21 #define RS_IN_ONEOF_IN 2
22 #define RS_IN_NONEOF 3
27 * Test whether a regex is of the subset supported here.
28 * Keep this in sync with RS_compile!
92 memset(r, 0,
sizeof(
Regis));
118 else /* shouldn't get here */
134 else /* shouldn't get here */
146 else /* shouldn't get here */
199 if (*(ptr +
i) != *(
c +
i))
int pg_mblen(const char *mbstr)
void pfree(void *pointer)
void * palloc0(Size size)
static RegisNode * newRegisNode(RegisNode *prev, int len)
void RS_compile(Regis *r, bool issuffix, const char *str)
bool RS_execute(Regis *r, char *str)
bool RS_isRegis(const char *str)
static bool mb_strchr(char *str, char *c)
unsigned char data[FLEXIBLE_ARRAY_MEMBER]
int t_isalpha(const char *ptr)