1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 1991, 1992 Linus Torvalds
8 #include <linux/ctype.h>
9 #include <linux/compiler.h>
10 #include <linux/export.h>
12 const unsigned char _ctype
[] = {
13 _C
,_C
,_C
,_C
,_C
,_C
,_C
,_C
, /* 0-7 */
14 _C
,_C
|_S
,_C
|_S
,_C
|_S
,_C
|_S
,_C
|_S
,_C
,_C
, /* 8-15 */
15 _C
,_C
,_C
,_C
,_C
,_C
,_C
,_C
, /* 16-23 */
16 _C
,_C
,_C
,_C
,_C
,_C
,_C
,_C
, /* 24-31 */
17 _S
|_SP
,_P
,_P
,_P
,_P
,_P
,_P
,_P
, /* 32-39 */
18 _P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
, /* 40-47 */
19 _D
,_D
,_D
,_D
,_D
,_D
,_D
,_D
, /* 48-55 */
20 _D
,_D
,_P
,_P
,_P
,_P
,_P
,_P
, /* 56-63 */
21 _P
,_U
|_X
,_U
|_X
,_U
|_X
,_U
|_X
,_U
|_X
,_U
|_X
,_U
, /* 64-71 */
22 _U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
, /* 72-79 */
23 _U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
, /* 80-87 */
24 _U
,_U
,_U
,_P
,_P
,_P
,_P
,_P
, /* 88-95 */
25 _P
,_L
|_X
,_L
|_X
,_L
|_X
,_L
|_X
,_L
|_X
,_L
|_X
,_L
, /* 96-103 */
26 _L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
, /* 104-111 */
27 _L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
, /* 112-119 */
28 _L
,_L
,_L
,_P
,_P
,_P
,_P
,_C
, /* 120-127 */
29 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 128-143 */
30 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 144-159 */
31 _S
|_SP
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
, /* 160-175 */
32 _P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
,_P
, /* 176-191 */
33 _U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_U
, /* 192-207 */
34 _U
,_U
,_U
,_U
,_U
,_U
,_U
,_P
,_U
,_U
,_U
,_U
,_U
,_U
,_U
,_L
, /* 208-223 */
35 _L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
, /* 224-239 */
36 _L
,_L
,_L
,_L
,_L
,_L
,_L
,_P
,_L
,_L
,_L
,_L
,_L
,_L
,_L
,_L
}; /* 240-255 */
38 EXPORT_SYMBOL(_ctype
);