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