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.28 2004/08/12 09:33:47 tjr Exp $ 00043 * 00044 * © Portions copyright (c) 2006 Nokia Corporation. All rights reserved. 00045 * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved. 00046 00047 */ 00048 00049 #ifndef _CTYPE_H_ 00050 #define _CTYPE_H_ 00051 00052 #include <_ansi.h> 00053 #include <sys/cdefs.h> 00054 #include <sys/_types.h> 00055 #include <_ctype.h> 00056 00057 #ifdef __SYMBIAN32__ 00058 00059 #ifdef __cplusplus 00060 extern "C" { 00061 #endif 00062 // __SYMBIAN32__ 00063 #endif 00064 00065 __BEGIN_DECLS 00066 IMPORT_C int isalnum(int); 00067 IMPORT_C int isalpha(int); 00068 IMPORT_C int iscntrl(int); 00069 IMPORT_C int isdigit(int); 00070 IMPORT_C int isgraph(int); 00071 IMPORT_C int islower(int); 00072 IMPORT_C int isprint(int); 00073 IMPORT_C int ispunct(int); 00074 IMPORT_C int isspace(int); 00075 IMPORT_C int isupper(int); 00076 IMPORT_C int isxdigit(int); 00077 IMPORT_C int tolower(int); 00078 IMPORT_C int toupper(int); 00079 00080 #ifdef __SYMBIAN32__ 00081 /* these two macros always expect that the argument sent is always in uppercase 00082 or lowercase respectively and works only with c locale. 00083 else the behavior is undefined */ 00084 #define _tolower(c) ((c) + 0x20) 00085 #define _toupper(c) ((c) - 0x20) 00086 #define isascii(c) (((c) & ~0x7F) == 0) 00087 #define toascii(c) ((c) & 0x7F) 00088 #endif//__SYMBIAN32__ 00089 __END_DECLS 00090 00091 #ifdef __SYMBIAN32__ 00092 #ifdef __cplusplus 00093 } 00094 #endif 00095 //__SYMBIAN32__ 00096 #endif 00097 00098 #endif /* !_CTYPE_H_ */