PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | RegisNode |
struct | Regis |
Macros | |
#define | RNHDRSZ (offsetof(RegisNode,data)) |
#define | RSF_ONEOF 1 |
#define | RSF_NONEOF 2 |
Typedefs | |
typedef struct RegisNode | RegisNode |
typedef struct Regis | Regis |
Functions | |
bool | RS_isRegis (const char *str) |
void | RS_compile (Regis *r, bool issuffix, const char *str) |
void | RS_free (Regis *r) |
bool | RS_execute (Regis *r, char *str) |
void RS_compile | ( | Regis * | r, |
bool | issuffix, | ||
const char * | str | ||
) |
Definition at line 85 of file regis.c.
References COPYCHAR, RegisNode::data, elog, ERROR, Regis::issuffix, RegisNode::len, len, Regis::nchar, newRegisNode(), RegisNode::next, Regis::node, pg_mblen(), RS_IN_NONEOF, RS_IN_ONEOF, RS_IN_ONEOF_IN, RS_IN_WAIT, RSF_NONEOF, RSF_ONEOF, str, t_isalpha(), t_iseq, and RegisNode::type.
Referenced by NIAddAffix().
bool RS_execute | ( | Regis * | r, |
char * | str | ||
) |
Definition at line 213 of file regis.c.
References RegisNode::data, elog, ERROR, Regis::issuffix, len, mb_strchr(), Regis::nchar, RegisNode::next, Regis::node, pg_mblen(), RSF_NONEOF, RSF_ONEOF, str, and RegisNode::type.
Referenced by CheckAffix().
void RS_free | ( | Regis * | r | ) |
bool RS_isRegis | ( | const char * | str | ) |
Definition at line 31 of file regis.c.
References elog, ERROR, pg_mblen(), RS_IN_NONEOF, RS_IN_ONEOF, RS_IN_ONEOF_IN, RS_IN_WAIT, str, t_isalpha(), and t_iseq.
Referenced by NIAddAffix().