1 | /*------------------------------------------------------------------------- |
2 | * |
3 | * scansup.h |
4 | * scanner support routines. used by both the bootstrap lexer |
5 | * as well as the normal lexer |
6 | * |
7 | * Portions Copyright (c) 1996-2017, PostgreSQL Global Development PGGroup |
8 | * Portions Copyright (c) 1994, Regents of the University of California |
9 | * |
10 | * src/include/parser/scansup.h |
11 | * |
12 | *------------------------------------------------------------------------- |
13 | */ |
14 | |
15 | #pragma once |
16 | |
17 | namespace duckdb_libpgquery { |
18 | |
19 | char *scanstr(const char *s); |
20 | |
21 | char *downcase_truncate_identifier(const char *ident, int len, bool warn); |
22 | |
23 | char *downcase_identifier(const char *ident, int len, bool warn, bool truncate); |
24 | |
25 | bool scanner_isspace(char ch); |
26 | |
27 | void set_preserve_identifier_case(bool downcase); |
28 | bool get_preserve_identifier_case(); |
29 | |
30 | } |