PostgreSQL Source Code git master
|
#include "postgres.h"
#include "gramparse.h"
#include "mb/pg_wchar.h"
#include "parser/parser.h"
#include "parser/scansup.h"
Go to the source code of this file.
Functions | |
static bool | check_uescapechar (unsigned char escape) |
static char * | str_udeescape (const char *str, char escape, int position, core_yyscan_t yyscanner) |
List * | raw_parser (const char *str, RawParseMode mode) |
int | base_yylex (YYSTYPE *lvalp, YYLTYPE *llocp, core_yyscan_t yyscanner) |
static unsigned int | hexval (unsigned char c) |
static void | check_unicode_value (pg_wchar c) |
int base_yylex | ( | YYSTYPE * | lvalp, |
YYLTYPE * | llocp, | ||
core_yyscan_t | yyscanner | ||
) |
Definition at line 111 of file parser.c.
References Assert(), check_uescapechar(), core_yylex(), next_token(), pg_yyget_extra, scanner_yyerror(), str_udeescape(), truncate_identifier(), and yyextra.
Referenced by base_yylex_location().
|
static |
Definition at line 352 of file parser.c.
References scanner_isspace().
Referenced by base_yylex().
|
static |
Definition at line 342 of file parser.c.
References ereport, errcode(), errmsg(), ERROR, and is_valid_unicode_codepoint().
Referenced by str_udeescape().
|
static |
Definition at line 328 of file parser.c.
Referenced by str_udeescape().
List * raw_parser | ( | const char * | str, |
RawParseMode | mode | ||
) |
Definition at line 42 of file parser.c.
References base_yyparse(), mode, NIL, parser_init(), RAW_PARSE_DEFAULT, RAW_PARSE_PLPGSQL_ASSIGN1, RAW_PARSE_PLPGSQL_ASSIGN2, RAW_PARSE_PLPGSQL_ASSIGN3, RAW_PARSE_PLPGSQL_EXPR, RAW_PARSE_TYPE_NAME, ScanKeywords, ScanKeywordTokens, scanner_finish(), scanner_init(), str, and yyextra.
Referenced by _SPI_prepare_oneshot_plan(), _SPI_prepare_plan(), ATPostAlterTypeParse(), pg_parse_query(), and typeStringToTypeName().
|
static |
Definition at line 372 of file parser.c.
References cancel_scanner_errposition_callback(), check_unicode_value(), ereport, errcode(), errhint(), errmsg(), ERROR, hexval(), is_utf16_surrogate_first(), is_utf16_surrogate_second(), MAX_UNICODE_EQUIVALENT_STRING, palloc(), pg_unicode_to_server(), repalloc(), scanner_errposition(), setup_scanner_errposition_callback(), str, and surrogate_pair_to_codepoint().
Referenced by base_yylex().