xref: /openbmc/u-boot/lib/ctype.c (revision 4f9a5b06)
1 /*
2  * (C) Copyright 2000
3  * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4  *
5  * See file CREDITS for list of people who contributed to this
6  * project.
7  *
8  * This program is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License as
10  * published by the Free Software Foundation; either version 2 of
11  * the License, or (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, write to the Free Software
20  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21  * MA 02111-1307 USA
22  */
23 
24 /*
25  *  linux/lib/ctype.c
26  *
27  *  Copyright (C) 1991, 1992  Linus Torvalds
28  */
29 
30 #include <linux/ctype.h>
31 
32 const unsigned char _ctype[] = {
33 _C,_C,_C,_C,_C,_C,_C,_C,			/* 0-7 */
34 _C,_C|_S,_C|_S,_C|_S,_C|_S,_C|_S,_C,_C,		/* 8-15 */
35 _C,_C,_C,_C,_C,_C,_C,_C,			/* 16-23 */
36 _C,_C,_C,_C,_C,_C,_C,_C,			/* 24-31 */
37 _S|_SP,_P,_P,_P,_P,_P,_P,_P,			/* 32-39 */
38 _P,_P,_P,_P,_P,_P,_P,_P,			/* 40-47 */
39 _D,_D,_D,_D,_D,_D,_D,_D,			/* 48-55 */
40 _D,_D,_P,_P,_P,_P,_P,_P,			/* 56-63 */
41 _P,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U,	/* 64-71 */
42 _U,_U,_U,_U,_U,_U,_U,_U,			/* 72-79 */
43 _U,_U,_U,_U,_U,_U,_U,_U,			/* 80-87 */
44 _U,_U,_U,_P,_P,_P,_P,_P,			/* 88-95 */
45 _P,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L,	/* 96-103 */
46 _L,_L,_L,_L,_L,_L,_L,_L,			/* 104-111 */
47 _L,_L,_L,_L,_L,_L,_L,_L,			/* 112-119 */
48 _L,_L,_L,_P,_P,_P,_P,_C,			/* 120-127 */
49 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 128-143 */
50 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,		/* 144-159 */
51 _S|_SP,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,   /* 160-175 */
52 _P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,_P,       /* 176-191 */
53 _U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,_U,       /* 192-207 */
54 _U,_U,_U,_U,_U,_U,_U,_P,_U,_U,_U,_U,_U,_U,_U,_L,       /* 208-223 */
55 _L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,_L,       /* 224-239 */
56 _L,_L,_L,_L,_L,_L,_L,_P,_L,_L,_L,_L,_L,_L,_L,_L};      /* 240-255 */
57