PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | TSVectorParseStateData |
Macros | |
#define | RESIZEPRSBUF |
#define | RETURN_TOKEN |
#define | WAITWORD 1 |
#define | WAITENDWORD 2 |
#define | WAITNEXTCHAR 3 |
#define | WAITENDCMPLX 4 |
#define | WAITPOSINFO 5 |
#define | INPOSINFO 6 |
#define | WAITPOSDELIM 7 |
#define | WAITCHARCMPLX 8 |
#define | PRSSYNTAXERROR return prssyntaxerror(state) |
Functions | |
TSVectorParseState | init_tsvector_parser (char *input, int flags, Node *escontext) |
void | reset_tsvector_parser (TSVectorParseState state, char *input) |
void | close_tsvector_parser (TSVectorParseState state) |
static bool | prssyntaxerror (TSVectorParseState state) |
bool | gettoken_tsvector (TSVectorParseState state, char **strval, int *lenval, WordEntryPos **pos_ptr, int *poslen, char **endptr) |
#define INPOSINFO 6 |
Definition at line 135 of file tsvector_parser.c.
#define PRSSYNTAXERROR return prssyntaxerror(state) |
Definition at line 139 of file tsvector_parser.c.
#define RESIZEPRSBUF |
Definition at line 97 of file tsvector_parser.c.
#define RETURN_TOKEN |
Definition at line 109 of file tsvector_parser.c.
#define WAITCHARCMPLX 8 |
Definition at line 137 of file tsvector_parser.c.
#define WAITENDCMPLX 4 |
Definition at line 133 of file tsvector_parser.c.
#define WAITENDWORD 2 |
Definition at line 131 of file tsvector_parser.c.
#define WAITNEXTCHAR 3 |
Definition at line 132 of file tsvector_parser.c.
#define WAITPOSDELIM 7 |
Definition at line 136 of file tsvector_parser.c.
#define WAITPOSINFO 5 |
Definition at line 134 of file tsvector_parser.c.
#define WAITWORD 1 |
Definition at line 130 of file tsvector_parser.c.
void close_tsvector_parser | ( | TSVectorParseState | state | ) |
Definition at line 90 of file tsvector_parser.c.
References pfree().
Referenced by parse_tsquery(), and tsvectorin().
bool gettoken_tsvector | ( | TSVectorParseState | state, |
char ** | strval, | ||
int * | lenval, | ||
WordEntryPos ** | pos_ptr, | ||
int * | poslen, | ||
char ** | endptr | ||
) |
Definition at line 176 of file tsvector_parser.c.
References Assert, COPYCHAR, elog, ereturn, errcode(), errmsg(), ERROR, INPOSINFO, ISOPERATOR, LIMITPOS, palloc(), pg_mblen(), PRSSYNTAXERROR, repalloc(), RESIZEPRSBUF, RETURN_TOKEN, t_isdigit(), t_iseq, t_isspace(), WAITCHARCMPLX, WAITENDCMPLX, WAITENDWORD, WAITNEXTCHAR, WAITPOSDELIM, WAITPOSINFO, WAITWORD, WEP_GETPOS, WEP_GETWEIGHT, WEP_SETPOS, and WEP_SETWEIGHT.
Referenced by gettoken_query_standard(), gettoken_query_websearch(), and tsvectorin().
TSVectorParseState init_tsvector_parser | ( | char * | input, |
int | flags, | ||
Node * | escontext | ||
) |
Definition at line 57 of file tsvector_parser.c.
References input, P_TSV_IS_TSQUERY, P_TSV_IS_WEB, P_TSV_OPR_IS_DELIM, palloc(), and pg_database_encoding_max_length().
Referenced by parse_tsquery(), and tsvectorin().
|
static |
Definition at line 142 of file tsvector_parser.c.
void reset_tsvector_parser | ( | TSVectorParseState | state, |
char * | input | ||
) |
Definition at line 81 of file tsvector_parser.c.
References input.
Referenced by gettoken_query_standard(), and gettoken_query_websearch().