PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
scansup.h
Go to the documentation of this file.
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 Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/parser/scansup.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 
15 #ifndef SCANSUP_H
16 #define SCANSUP_H
17 
18 extern char *scanstr(const char *s);
19 
20 extern char *downcase_truncate_identifier(const char *ident, int len,
21  bool warn);
22 
23 extern char *downcase_identifier(const char *ident, int len,
24  bool warn, bool truncate);
25 
26 extern void truncate_identifier(char *ident, int len, bool warn);
27 
28 extern bool scanner_isspace(char ch);
29 
30 #endif /* SCANSUP_H */
char * downcase_identifier(const char *ident, int len, bool warn, bool truncate)
Definition: scansup.c:140
char * downcase_truncate_identifier(const char *ident, int len, bool warn)
Definition: scansup.c:131
void truncate_identifier(char *ident, int len, bool warn)
Definition: scansup.c:187
bool scanner_isspace(char ch)
Definition: scansup.c:221
char * scanstr(const char *s)
Definition: scansup.c:36
static void warn(void)