PostgreSQL Source Code git master
|
#include "postgres.h"
#include <ctype.h>
#include "catalog/pg_collation_d.h"
#include "miscadmin.h"
#include "tsearch/ts_locale.h"
#include "tsearch/ts_public.h"
Go to the source code of this file.
Functions | |
char * | get_tsearch_config_filename (const char *basename, const char *extension) |
void | readstoplist (const char *fname, StopList *s, char *(*wordop)(const char *, size_t, Oid)) |
bool | searchstoplist (StopList *s, char *key) |
char * get_tsearch_config_filename | ( | const char * | basename, |
const char * | extension | ||
) |
Definition at line 34 of file ts_utils.c.
References ereport, errcode(), errmsg(), ERROR, get_share_path(), MAXPGPATH, my_exec_path, palloc(), and snprintf.
Referenced by dispell_init(), dsynonym_init(), initTrie(), read_dictionary(), readstoplist(), and thesaurusRead().
Definition at line 69 of file ts_utils.c.
References ereport, errcode(), errmsg(), ERROR, filename, get_tsearch_config_filename(), StopList::len, palloc(), pfree(), pg_mblen(), pg_qsort_strcmp(), qsort, repalloc(), StopList::stop, tsearch_readline(), tsearch_readline_begin(), and tsearch_readline_end().
Referenced by dispell_init(), dsimple_init(), and dsnowball_init().
bool searchstoplist | ( | StopList * | s, |
char * | key | ||
) |
Definition at line 141 of file ts_utils.c.
References sort-test::key, StopList::len, pg_qsort_strcmp(), and StopList::stop.
Referenced by dispell_lexize(), dsimple_lexize(), and dsnowball_lexize().