MySQL  8.0.17
Source Code Documentation
sql_chars.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License, version 2.0,
6  as published by the Free Software Foundation.
7 
8  This program is also distributed with certain software (including
9  but not limited to OpenSSL) that is licensed under separate terms,
10  as designated in a particular file or component or in included license
11  documentation. The authors of MySQL hereby grant you an additional
12  permission to link the program and your derivative works with the
13  separately licensed software that they have included with MySQL.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License, version 2.0, for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
23 
24 /*
25  Char classes for lexical scanners
26 */
27 
28 #ifndef SQL_LEX_CHARS_INCLUDED
29 #define SQL_LEX_CHARS_INCLUDED
30 
31 #include "my_compiler.h"
32 #include "my_inttypes.h"
33 #include "my_macros.h"
34 
35 struct CHARSET_INFO;
36 
37 enum MY_ATTRIBUTE((__packed__)) my_lex_states {
70 };
71 
72 enum MY_ATTRIBUTE((__packed__)) hint_lex_char_classes {
74  HINT_CHR_AT, // [@]
76  HINT_CHR_CHAR, // default state
77  HINT_CHR_DIGIT, // [[:digit:]]
79  HINT_CHR_EOF, // pseudo-class
80  HINT_CHR_IDENT, // [_$[:alpha:]]
81  HINT_CHR_MB, // multibyte character
82  HINT_CHR_NL, // \n
85  HINT_CHR_SPACE // [[:space:]] excluding \n
86 };
87 
91 };
92 
94 
96 
97 #endif /* SQL_LEX_CHARS_INCLUDED */
Some common macros.
Definition: sql_chars.h:51
Definition: sql_chars.h:43
Definition: sql_chars.h:60
Definition: sql_chars.h:88
Some integer typedefs for easier portability.
Definition: sql_chars.h:84
Definition: sql_chars.h:48
Definition: sql_chars.h:39
Definition: sql_chars.h:63
my_lex_states
Definition: sql_chars.h:37
Definition: sql_chars.h:85
Definition: sql_chars.h:50
Definition: sql_chars.h:77
Definition: sql_chars.h:40
Definition: sql_chars.h:56
Definition: sql_chars.h:79
enum hint_lex_char_classes hint_map[256]
Definition: sql_chars.h:90
hint_lex_char_classes
Definition: sql_chars.h:72
Definition: sql_chars.h:46
Definition: sql_chars.h:45
Definition: sql_chars.h:59
Definition: sql_chars.h:58
Definition: sql_chars.h:74
Definition: sql_chars.h:42
bool init_state_maps(CHARSET_INFO *cs)
Definition: sql_chars.cc:65
Definition: sql_chars.h:83
Definition: sql_chars.h:41
Header for compiler-dependent features.
Definition: sql_chars.h:57
Definition: sql_chars.h:68
Definition: sql_chars.h:64
enum my_lex_states main_map[256]
Definition: sql_chars.h:89
Definition: sql_chars.h:62
Definition: m_ctype.h:359
Definition: sql_chars.h:54
Definition: sql_chars.h:78
Definition: sql_chars.h:61
Definition: sql_chars.h:65
Definition: sql_chars.h:75
Definition: sql_chars.h:66
Definition: sql_chars.h:47
Definition: sql_chars.h:49
Definition: sql_chars.h:69
Definition: sql_chars.h:53
Definition: sql_chars.h:52
Definition: sql_chars.h:38
Definition: sql_chars.h:82
Definition: sql_chars.h:44
Definition: sql_chars.h:81
Definition: sql_chars.h:80
Definition: sql_chars.h:73
Definition: sql_chars.h:67
Definition: sql_chars.h:55
Definition: sql_chars.h:76