|
PostgreSQL Source Code git master
|
#include "postgres.h"#include <ctype.h>#include "catalog/pg_collation_d.h"#include "commands/defrem.h"#include "tsearch/ts_locale.h"#include "tsearch/ts_public.h"#include "utils/formatting.h"
Go to the source code of this file.
Data Structures | |
| struct | Syn |
| struct | DictSyn |
Functions | |
| PG_MODULE_MAGIC_EXT (.name="dict_xsyn",.version=PG_VERSION) | |
| 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) |
|
static |
Definition at line 72 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 146 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 202 of file dict_xsyn.c.
References compare_syn(), find_word(), TSLexeme::flags, DictSyn::keeporig, DictSyn::keepsynonyms, DictSyn::len, TSLexeme::lexeme, TSLexeme::nvariant, palloc(), pfree(), PG_GETARG_INT32, PG_GETARG_POINTER, PG_RETURN_POINTER, pnstrdup(), repalloc(), str_tolower(), DictSyn::syn, Syn::value, value, and word().
|
static |
Definition at line 51 of file dict_xsyn.c.
References pg_mblen(), and start.
Referenced by dxsyn_lexize(), and read_dictionary().
| PG_FUNCTION_INFO_V1 | ( | dxsyn_init | ) |
| PG_FUNCTION_INFO_V1 | ( | dxsyn_lexize | ) |
| PG_MODULE_MAGIC_EXT | ( | . | name = "dict_xsyn", |
| . | version = PG_VERSION |
||
| ) |
|
static |
Definition at line 78 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, DictSyn::matchorig, DictSyn::matchsynonyms, palloc(), pfree(), pnstrdup(), pstrdup(), qsort, repalloc(), str_tolower(), DictSyn::syn, tsearch_readline(), tsearch_readline_begin(), tsearch_readline_end(), Syn::value, and value.
Referenced by dxsyn_init().