PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.h>
#include "commands/defrem.h"
#include "tsearch/ts_locale.h"
#include "tsearch/ts_public.h"
Go to the source code of this file.
Data Structures | |
struct | Syn |
struct | DictSyn |
Functions | |
PG_FUNCTION_INFO_V1 (dxsyn_init) | |
PG_FUNCTION_INFO_V1 (dxsyn_lexize) | |
static char * | find_word (char *in, char **end) |
static int | compare_syn (const void *a, const void *b) |
static void | read_dictionary (DictSyn *d, const char *filename) |
Datum | dxsyn_init (PG_FUNCTION_ARGS) |
Datum | dxsyn_lexize (PG_FUNCTION_ARGS) |
Variables | |
PG_MODULE_MAGIC | |
|
static |
Definition at line 67 of file dict_xsyn.c.
References a, b, and sort-test::key.
Referenced by dxsyn_lexize(), and read_dictionary().
Datum dxsyn_init | ( | PG_FUNCTION_ARGS | ) |
Definition at line 141 of file dict_xsyn.c.
References defGetBoolean(), defGetString(), DefElem::defname, ereport, errcode(), errmsg(), ERROR, filename, DictSyn::keeporig, DictSyn::keepsynonyms, DictSyn::len, lfirst, DictSyn::matchorig, DictSyn::matchsynonyms, palloc0(), PG_GETARG_POINTER, PG_RETURN_POINTER, read_dictionary(), and DictSyn::syn.
Datum dxsyn_lexize | ( | PG_FUNCTION_ARGS | ) |
Definition at line 197 of file dict_xsyn.c.
References compare_syn(), find_word(), DictSyn::keeporig, DictSyn::keepsynonyms, DictSyn::len, lowerstr(), palloc(), pfree(), PG_GETARG_INT32, PG_GETARG_POINTER, PG_RETURN_POINTER, pnstrdup(), repalloc(), res, DictSyn::syn, Syn::value, value, and word().
|
static |
Definition at line 46 of file dict_xsyn.c.
References pg_mblen(), start, and t_isspace().
Referenced by dxsyn_lexize(), and read_dictionary().
PG_FUNCTION_INFO_V1 | ( | dxsyn_init | ) |
PG_FUNCTION_INFO_V1 | ( | dxsyn_lexize | ) |
|
static |
Definition at line 73 of file dict_xsyn.c.
References compare_syn(), cur, ereport, errcode(), errmsg(), ERROR, filename, find_word(), get_tsearch_config_filename(), if(), Syn::key, sort-test::key, DictSyn::len, lowerstr(), DictSyn::matchorig, DictSyn::matchsynonyms, palloc(), pfree(), pnstrdup(), pstrdup(), qsort, repalloc(), DictSyn::syn, tsearch_readline(), tsearch_readline_begin(), tsearch_readline_end(), Syn::value, and value.
Referenced by dxsyn_init().
PG_MODULE_MAGIC |
Definition at line 21 of file dict_xsyn.c.