1/*-------------------------------------------------------------------------
4 * locale compatibility layer for tsearch
6 * Copyright (c) 1998-2025, PostgreSQL Global Development Group
8 * src/include/tsearch/ts_locale.h
10 *-------------------------------------------------------------------------
23/* working state for tsearch_readline (should be a local var in caller) */
30 char *
curline;
/* current input line, in DB's encoding */
31 /* curline may be NULL, or equal to buf.data, or a palloc'd string */
35 #define TOUCHAR(x) (*((const unsigned char *) (x)))
37/* The second argument of t_iseq() must be a plain ASCII character */
38 #define t_iseq(x,c) (TOUCHAR(x) == (unsigned char) (c))
40 #define COPYCHAR(d,s) memcpy(d, s, pg_mblen(s))
50#endif /* __TSLOCALE_H__ */
bool tsearch_readline_begin(tsearch_readline_state *stp, const char *filename)
int t_isalnum(const char *ptr)
char * tsearch_readline(tsearch_readline_state *stp)
int t_isalpha(const char *ptr)
void tsearch_readline_end(tsearch_readline_state *stp)