|
1 /* |
|
2 * Copyright (c) 1989, 1993 |
|
3 * The Regents of the University of California. All rights reserved. |
|
4 * (c) UNIX System Laboratories, Inc. |
|
5 * All or some portions of this file are derived from material licensed |
|
6 * to the University of California by American Telephone and Telegraph |
|
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with |
|
8 * the permission of UNIX System Laboratories, Inc. |
|
9 * |
|
10 * This code is derived from software contributed to Berkeley by |
|
11 * Paul Borman at Krystal Technologies. |
|
12 * |
|
13 * Redistribution and use in source and binary forms, with or without |
|
14 * modification, are permitted provided that the following conditions |
|
15 * are met: |
|
16 * 1. Redistributions of source code must retain the above copyright |
|
17 * notice, this list of conditions and the following disclaimer. |
|
18 * 2. Redistributions in binary form must reproduce the above copyright |
|
19 * notice, this list of conditions and the following disclaimer in the |
|
20 * documentation and/or other materials provided with the distribution. |
|
21 * 4. Neither the name of the University nor the names of its contributors |
|
22 * may be used to endorse or promote products derived from this software |
|
23 * without specific prior written permission. |
|
24 * |
|
25 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND |
|
26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
|
28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE |
|
29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
|
30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
|
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
|
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
|
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
|
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
|
35 * SUCH DAMAGE. |
|
36 * |
|
37 * From @(#)ctype.h 8.4 (Berkeley) 1/21/94 |
|
38 * From FreeBSD: src/include/ctype.h,v 1.27 2004/06/23 07:11:39 tjr Exp |
|
39 * $FreeBSD: src/include/_ctype.h,v 1.30 2004/08/21 07:00:40 tjr Exp $ |
|
40 * |
|
41 * Portions Copyright (c) 2006-2007 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. |
|
42 */ |
|
43 |
|
44 #ifndef __CTYPE_H_ |
|
45 #define __CTYPE_H_ |
|
46 |
|
47 #include <sys/cdefs.h> |
|
48 #include <sys/_types.h> |
|
49 |
|
50 #ifdef __SYMBIAN32__ |
|
51 #include <_ansi.h> |
|
52 |
|
53 #ifdef __cplusplus |
|
54 extern "C" { |
|
55 #endif |
|
56 #endif // __SYMBIAN32__ |
|
57 |
|
58 #define _CTYPE_A 0x00000100L /* Alpha */ |
|
59 #define _CTYPE_C 0x00000200L /* Control */ |
|
60 #define _CTYPE_D 0x00000400L /* Digit */ |
|
61 #define _CTYPE_G 0x00000800L /* Graph */ |
|
62 #define _CTYPE_L 0x00001000L /* Lower */ |
|
63 #define _CTYPE_P 0x00002000L /* Punct */ |
|
64 #define _CTYPE_S 0x00004000L /* Space */ |
|
65 #define _CTYPE_U 0x00008000L /* Upper */ |
|
66 #define _CTYPE_X 0x00010000L /* X digit */ |
|
67 #define _CTYPE_B 0x00020000L /* Blank */ |
|
68 #define _CTYPE_R 0x00040000L /* Print */ |
|
69 #define _CTYPE_I 0x00080000L /* Ideogram */ |
|
70 #define _CTYPE_T 0x00100000L /* Special */ |
|
71 #define _CTYPE_Q 0x00200000L /* Phonogram */ |
|
72 #define _CTYPE_SW0 0x20000000L /* 0 width character */ |
|
73 #define _CTYPE_SW1 0x40000000L /* 1 width character */ |
|
74 #define _CTYPE_SW2 0x80000000L /* 2 width character */ |
|
75 #define _CTYPE_SW3 0xc0000000L /* 3 width character */ |
|
76 #define _CTYPE_SWM 0xe0000000L /* Mask for screen width data */ |
|
77 #define _CTYPE_SWS 30 /* Bits to shift to get width */ |
|
78 |
|
79 |
|
80 #ifdef __SYMBIAN32__ |
|
81 #ifdef __cplusplus |
|
82 } |
|
83 #endif |
|
84 #endif //__SYMBIAN32__ |
|
85 |
|
86 #endif /* !__CTYPE_H_ */ |