Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages  

ctype.h

00001 /*
00002  * Copyright (c) 1989, 1993
00003  *      The Regents of the University of California.  All rights reserved.
00004  * (c) UNIX System Laboratories, Inc.
00005  * All or some portions of this file are derived from material licensed
00006  * to the University of California by American Telephone and Telegraph
00007  * Co. or Unix System Laboratories, Inc. and are reproduced herein with
00008  * the permission of UNIX System Laboratories, Inc.
00009  *
00010  * This code is derived from software contributed to Berkeley by
00011  * Paul Borman at Krystal Technologies.
00012  *
00013  * Redistribution and use in source and binary forms, with or without
00014  * modification, are permitted provided that the following conditions
00015  * are met:
00016  * 1. Redistributions of source code must retain the above copyright
00017  *    notice, this list of conditions and the following disclaimer.
00018  * 2. Redistributions in binary form must reproduce the above copyright
00019  *    notice, this list of conditions and the following disclaimer in the
00020  *    documentation and/or other materials provided with the distribution.
00021  * 3. All advertising materials mentioning features or use of this software
00022  *    must display the following acknowledgement:
00023  *      This product includes software developed by the University of
00024  *      California, Berkeley and its contributors.
00025  * 4. Neither the name of the University nor the names of its contributors
00026  *    may be used to endorse or promote products derived from this software
00027  *    without specific prior written permission.
00028  *
00029  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00030  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00031  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00032  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00033  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00034  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00035  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00036  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00037  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00038  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00039  * SUCH DAMAGE.
00040  *
00041  *      @(#)ctype.h     8.4 (Berkeley) 1/21/94
00042  *      $FreeBSD: src/include/ctype.h,v 1.24 2002/09/09 05:38:05 mike Exp $
00043  */
00044 
00045 #ifndef _CTYPE_H_
00046 #define _CTYPE_H_
00047 
00048 #include <sys/cdefs.h>
00049 #include <sys/_types.h>
00050 
00051 #define _CTYPE_A        0x00000100L             /* Alpha */
00052 #define _CTYPE_C        0x00000200L             /* Control */
00053 #define _CTYPE_D        0x00000400L             /* Digit */
00054 #define _CTYPE_G        0x00000800L             /* Graph */
00055 #define _CTYPE_L        0x00001000L             /* Lower */
00056 #define _CTYPE_P        0x00002000L             /* Punct */
00057 #define _CTYPE_S        0x00004000L             /* Space */
00058 #define _CTYPE_U        0x00008000L             /* Upper */
00059 #define _CTYPE_X        0x00010000L             /* X digit */
00060 #define _CTYPE_B        0x00020000L             /* Blank */
00061 #define _CTYPE_R        0x00040000L             /* Print */
00062 #define _CTYPE_I        0x00080000L             /* Ideogram */
00063 #define _CTYPE_T        0x00100000L             /* Special */
00064 #define _CTYPE_Q        0x00200000L             /* Phonogram */
00065 #define _CTYPE_SW0      0x20000000L             /* 0 width character */
00066 #define _CTYPE_SW1      0x40000000L             /* 1 width character */
00067 #define _CTYPE_SW2      0x80000000L             /* 2 width character */
00068 #define _CTYPE_SW3      0xc0000000L             /* 3 width character */
00069 
00070 __BEGIN_DECLS
00071 int     isalnum(int);
00072 int     isalpha(int);
00073 int     iscntrl(int);
00074 int     isdigit(int);
00075 int     isgraph(int);
00076 int     islower(int);
00077 int     isprint(int);
00078 int     ispunct(int);
00079 int     isspace(int);
00080 int     isupper(int);
00081 int     isxdigit(int);
00082 int     tolower(int);
00083 int     toupper(int);
00084 
00085 #if __XSI_VISIBLE
00086 int     _tolower(int);
00087 int     _toupper(int);
00088 int     isascii(int);
00089 int     toascii(int);
00090 #endif
00091 
00092 #if __BSD_VISIBLE
00093 int     digittoint(int);
00094 int     isblank(int);
00095 int     ishexnumber(int);
00096 int     isideogram(int);
00097 int     isnumber(int);
00098 int     isphonogram(int);
00099 int     isrune(int);
00100 int     isspecial(int);
00101 #endif
00102 __END_DECLS
00103 
00104 #define _KERNEL
00105 #include <sys/ctype.h>
00106 #undef _KERNEL
00107 
00108 #endif /* !_CTYPE_H_ */