00001 /*- 00002 * Copyright (c)1999 Citrus Project, 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 1. Redistributions of source code must retain the above copyright 00009 * notice, this list of conditions and the following disclaimer. 00010 * 2. Redistributions in binary form must reproduce the above copyright 00011 * notice, this list of conditions and the following disclaimer in the 00012 * documentation and/or other materials provided with the distribution. 00013 * 00014 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 00015 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00016 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00017 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 00018 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00019 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00020 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00021 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00022 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00023 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00024 * SUCH DAMAGE. 00025 * 00026 * citrus Id: wctype.h,v 1.4 2000/12/21 01:50:21 itojun Exp 00027 * $NetBSD: wctype.h,v 1.3 2000/12/22 14:16:16 itojun Exp $ 00028 * $FreeBSD: src/include/wctype.h,v 1.13 2004/08/12 10:29:14 tjr Exp $ 00029 * 00030 * © Portions copyright (c) 2006 Nokia Corporation. All rights reserved. 00031 */ 00032 00033 #ifndef _WCTYPE_H_ 00034 #define _WCTYPE_H_ 00035 00036 #include <sys/cdefs.h> 00037 #include <sys/_types.h> 00038 00039 #include <_ctype.h> 00040 00041 #ifdef __SYMBIAN32__ 00042 #include<_ansi.h> 00043 #endif// __SYMBIAN32__ 00044 00045 #ifndef _WCTRANS_T 00046 typedef int wctrans_t; 00047 #define _WCTRANS_T 00048 #endif 00049 00050 #ifndef _WCTYPE_T 00051 typedef unsigned long wctype_t; 00052 #define _WCTYPE_T 00053 #endif 00054 00055 #ifndef _WINT_T_DECLARED 00056 typedef __wint_t wint_t; 00057 #define _WINT_T_DECLARED 00058 #endif 00059 00060 #ifndef WEOF 00061 #define WEOF ((wint_t)-1) 00062 #endif 00063 00064 #ifdef __SYMBIAN32__ 00065 #ifdef __cplusplus 00066 extern "C" { 00067 #endif 00068 // __SYMBIAN32__ 00069 #endif 00070 00071 __BEGIN_DECLS 00072 IMPORT_C int iswalnum(wint_t); 00073 IMPORT_C int iswalpha(wint_t); 00074 IMPORT_C int iswblank(wint_t); 00075 IMPORT_C int iswcntrl(wint_t); 00076 IMPORT_C int iswctype(wint_t, wctype_t); 00077 IMPORT_C int iswdigit(wint_t); 00078 IMPORT_C int iswgraph(wint_t); 00079 IMPORT_C int iswlower(wint_t); 00080 IMPORT_C int iswprint(wint_t); 00081 IMPORT_C int iswpunct(wint_t); 00082 IMPORT_C int iswspace(wint_t); 00083 IMPORT_C int iswupper(wint_t); 00084 IMPORT_C int iswxdigit(wint_t); 00085 IMPORT_C wint_t towctrans(wint_t, wctrans_t); 00086 IMPORT_C wint_t towlower(wint_t); 00087 IMPORT_C wint_t towupper(wint_t); 00088 IMPORT_C wctrans_t 00089 wctrans(const char *); 00090 IMPORT_C wctype_t 00091 wctype(const char *); 00092 __END_DECLS 00093 00094 #ifdef __SYMBIAN32__ 00095 #ifdef __cplusplus 00096 } 00097 #endif 00098 // __SYMBIAN32__ 00099 #endif 00100 00101 #endif /* _WCTYPE_H_ */