1/*-------------------------------------------------------------------------
4 * Key word lookup for PostgreSQL
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/common/kwlookup.h
12 *-------------------------------------------------------------------------
17/* Hash function used by ScanKeywordLookup */
21 * This struct contains the data needed by ScanKeywordLookup to perform a
22 * search within a set of keywords. The contents are typically generated by
23 * src/tools/gen_keywordlist.pl from a header containing PG_KEYWORD macros.
27 const char *
kw_string;
/* all keywords in order, separated by 0円 */
37/* Code that wants to retrieve the text of the N'th keyword should use this. */
38static inline const char *
44#endif /* KWLOOKUP_H */
static const JsonPathKeyword keywords[]
static const char * GetScanKeyword(int n, const ScanKeywordList *keywords)
struct ScanKeywordList ScanKeywordList
int(* ScanKeywordHashFunc)(const void *key, size_t keylen)
int ScanKeywordLookup(const char *str, const ScanKeywordList *keywords)
const uint16 * kw_offsets