PostgreSQL Source Code git master
|
#include <ctype.h>
#include <limits.h>
#include <wctype.h>
#include "lib/stringinfo.h"
#include "mb/pg_wchar.h"
#include "utils/pg_locale.h"
Go to the source code of this file.
Data Structures | |
struct | tsearch_readline_state |
Macros | |
#define | TOUCHAR(x) (*((const unsigned char *) (x))) |
#define | t_iseq(x, c) (TOUCHAR(x) == (unsigned char) (c)) |
#define | COPYCHAR(d, s) memcpy(d, s, pg_mblen(s)) |
Functions | |
int | t_isalpha (const char *ptr) |
int | t_isalnum (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) |
#define COPYCHAR | ( | d, | |
s | |||
) | memcpy(d, s, pg_mblen(s)) |
Definition at line 40 of file ts_locale.h.
Definition at line 38 of file ts_locale.h.
Definition at line 35 of file ts_locale.h.
int t_isalnum | ( | 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 parse_or_operator().
int t_isalpha | ( | 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 parse_affentry(), RS_compile(), and RS_isRegis().
char * tsearch_readline | ( | tsearch_readline_state * | stp | ) |
Definition at line 112 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 89 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().
void tsearch_readline_end | ( | tsearch_readline_state * | stp | ) |
Definition at line 157 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().