PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "common/string.h"
#include "storage/fd.h"
#include "tsearch/ts_locale.h"
Go to the source code of this file.
Macros | |
#define | WC_BUF_LEN 3 |
Functions | |
static void | tsearch_readline_callback (void *arg) |
int | t_isdigit (const char *ptr) |
int | t_isspace (const char *ptr) |
int | t_isalpha (const char *ptr) |
int | t_isalnum (const char *ptr) |
int | t_isprint (const char *ptr) |
bool | tsearch_readline_begin (tsearch_readline_state *stp, const char *filename) |
char * | tsearch_readline (tsearch_readline_state *stp) |
void | tsearch_readline_end (tsearch_readline_state *stp) |
char * | lowerstr (const char *str) |
char * | lowerstr_with_len (const char *str, int len) |
#define WC_BUF_LEN 3 |
Definition at line 32 of file ts_locale.c.
char* lowerstr | ( | const char * | str | ) |
Definition at line 253 of file ts_locale.c.
References lowerstr_with_len(), and str.
Referenced by convertPgWchar(), dispell_init(), dsimple_init(), dsnowball_init(), dsynonym_init(), dxsyn_lexize(), lowerstr_ctx(), NIImportAffixes(), and read_dictionary().
char* lowerstr_with_len | ( | const char * | str, |
int | len | ||
) |
Definition at line 266 of file ts_locale.c.
References Assert, char2wchar(), database_ctype_is_c, ereport, errcode(), errmsg(), ERROR, len, palloc(), pfree(), pg_database_encoding_max_length(), pstrdup(), str, TOUCHAR, and wchar2char().
Referenced by dispell_lexize(), dsimple_lexize(), dsnowball_lexize(), dsynonym_lexize(), generate_trgm_only(), generate_wildcard_trgm(), and lowerstr().
int t_isalnum | ( | const char * | ptr | ) |
Definition at line 80 of file ts_locale.c.
References char2wchar(), database_ctype_is_c, pg_mblen(), TOUCHAR, and WC_BUF_LEN.
Referenced by parse_or_operator().
int t_isalpha | ( | const char * | ptr | ) |
Definition at line 65 of file ts_locale.c.
References char2wchar(), database_ctype_is_c, pg_mblen(), TOUCHAR, and WC_BUF_LEN.
Referenced by parse_affentry(), RS_compile(), and RS_isRegis().
int t_isdigit | ( | const char * | ptr | ) |
Definition at line 35 of file ts_locale.c.
References char2wchar(), database_ctype_is_c, pg_mblen(), TOUCHAR, and WC_BUF_LEN.
Referenced by getNextFlagFromString(), gettoken_tsvector(), NISortDictionary(), parse_lquery(), and parse_phrase_operator().
int t_isprint | ( | const char * | ptr | ) |
Definition at line 95 of file ts_locale.c.
References char2wchar(), database_ctype_is_c, pg_mblen(), TOUCHAR, and WC_BUF_LEN.
Referenced by NIImportDictionary().
int t_isspace | ( | const char * | ptr | ) |
Definition at line 50 of file ts_locale.c.
References char2wchar(), database_ctype_is_c, pg_mblen(), TOUCHAR, and WC_BUF_LEN.
Referenced by addCompoundAffixFlagValue(), find_word(), findwrd(), get_nextfield(), getNextFlagFromString(), gettoken_query(), gettoken_query_standard(), gettoken_query_websearch(), gettoken_tsvector(), initTrie(), NIImportAffixes(), NIImportDictionary(), NIImportOOAffixes(), NISortDictionary(), parse_affentry(), parse_or_operator(), readstoplist(), and thesaurusRead().
char* tsearch_readline | ( | tsearch_readline_state * | stp | ) |
Definition at line 157 of file ts_locale.c.
References tsearch_readline_state::buf, tsearch_readline_state::curline, StringInfoData::data, tsearch_readline_state::fp, StringInfoData::len, tsearch_readline_state::lineno, pfree(), pg_any_to_server(), pg_get_line_buf(), PG_UTF8, and pstrdup().
Referenced by dsynonym_init(), initTrie(), NIImportAffixes(), NIImportDictionary(), NIImportOOAffixes(), read_dictionary(), readstoplist(), and thesaurusRead().
bool tsearch_readline_begin | ( | tsearch_readline_state * | stp, |
const char * | filename | ||
) |
Definition at line 134 of file ts_locale.c.
References AllocateFile(), ErrorContextCallback::arg, tsearch_readline_state::buf, ErrorContextCallback::callback, tsearch_readline_state::cb, tsearch_readline_state::curline, error_context_stack, filename, tsearch_readline_state::filename, tsearch_readline_state::fp, initStringInfo(), tsearch_readline_state::lineno, ErrorContextCallback::previous, and tsearch_readline_callback().
Referenced by dsynonym_init(), initTrie(), NIImportAffixes(), NIImportDictionary(), NIImportOOAffixes(), read_dictionary(), readstoplist(), and thesaurusRead().
|
static |
Definition at line 225 of file ts_locale.c.
References arg, tsearch_readline_state::curline, errcontext, tsearch_readline_state::filename, and tsearch_readline_state::lineno.
Referenced by tsearch_readline_begin().
void tsearch_readline_end | ( | tsearch_readline_state * | stp | ) |
Definition at line 202 of file ts_locale.c.
References tsearch_readline_state::buf, tsearch_readline_state::cb, tsearch_readline_state::curline, StringInfoData::data, error_context_stack, tsearch_readline_state::fp, FreeFile(), pfree(), and ErrorContextCallback::previous.
Referenced by dsynonym_init(), initTrie(), NIImportAffixes(), NIImportDictionary(), NIImportOOAffixes(), read_dictionary(), readstoplist(), and thesaurusRead().