PostgreSQL Source Code
git master
|
#include "postgres.h"
#include <ctype.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 *)) |
bool | searchstoplist (StopList *s, char *key) |
char* get_tsearch_config_filename | ( | const char * | basename, |
const char * | extension | ||
) |
Definition at line 33 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().
void readstoplist | ( | const char * | fname, |
StopList * | s, | ||
char *(*)(const char *) | wordop | ||
) |
Definition at line 68 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, t_isspace(), tsearch_readline(), tsearch_readline_begin(), and tsearch_readline_end().
Referenced by dispell_init(), dsimple_init(), and dsnowball_init().
Definition at line 140 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().