PostgreSQL Source Code
git master
|
Go to the source code of this file.
Data Structures | |
struct | ScanKeywordList |
Typedefs | |
typedef int(* | ScanKeywordHashFunc) (const void *key, size_t keylen) |
typedef struct ScanKeywordList | ScanKeywordList |
Functions | |
int | ScanKeywordLookup (const char *str, const ScanKeywordList *keywords) |
static const char * | GetScanKeyword (int n, const ScanKeywordList *keywords) |
typedef int(* ScanKeywordHashFunc) (const void *key, size_t keylen) |
Definition at line 18 of file kwlookup.h.
typedef struct ScanKeywordList ScanKeywordList |
|
inlinestatic |
Definition at line 39 of file kwlookup.h.
References ScanKeywordList::kw_offsets, and ScanKeywordList::kw_string.
Referenced by pg_get_keywords(), plpgsql_yylex(), ScanCKeywordLookup(), and ScanKeywordLookup().
int ScanKeywordLookup | ( | const char * | str, |
const ScanKeywordList * | keywords | ||
) |
Definition at line 38 of file kwlookup.c.
References GetScanKeyword(), ScanKeywordList::hash, len, ScanKeywordList::max_kw_len, ScanKeywordList::num_keywords, and str.
Referenced by fmtId(), plpgsql_yylex(), quote_identifier(), and ScanECPGKeywordLookup().