genericopenlibs/openenvcore/include/wctype.h
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*-
       
     2  * Copyright (c)1999 Citrus Project,
       
     3  * All rights reserved.
       
     4  *
       
     5  * Redistribution and use in source and binary forms, with or without
       
     6  * modification, are permitted provided that the following conditions
       
     7  * are met:
       
     8  * 1. Redistributions of source code must retain the above copyright
       
     9  *    notice, this list of conditions and the following disclaimer.
       
    10  * 2. Redistributions in binary form must reproduce the above copyright
       
    11  *    notice, this list of conditions and the following disclaimer in the
       
    12  *    documentation and/or other materials provided with the distribution.
       
    13  *
       
    14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
       
    15  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
       
    16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
       
    17  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
       
    18  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
       
    19  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
       
    20  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
       
    21  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
       
    22  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
       
    23  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
       
    24  * SUCH DAMAGE.
       
    25  *
       
    26  *	citrus Id: wctype.h,v 1.4 2000/12/21 01:50:21 itojun Exp
       
    27  *	$NetBSD: wctype.h,v 1.3 2000/12/22 14:16:16 itojun Exp $
       
    28  * $FreeBSD: src/include/wctype.h,v 1.13 2004/08/12 10:29:14 tjr Exp $
       
    29  *
       
    30  * © Portions copyright (c) 2006 Nokia Corporation.  All rights reserved.
       
    31  */
       
    32 
       
    33 #ifndef _WCTYPE_H_
       
    34 #define	_WCTYPE_H_
       
    35 
       
    36 #include <sys/cdefs.h>
       
    37 #include <sys/_types.h>
       
    38 
       
    39 #include <_ctype.h>
       
    40 
       
    41 #ifdef __SYMBIAN32__
       
    42 #include <_ansi.h>
       
    43 #endif// __SYMBIAN32__
       
    44 
       
    45 #ifndef _WCTRANS_T
       
    46 typedef	int	wctrans_t;
       
    47 #define	_WCTRANS_T
       
    48 #endif
       
    49 
       
    50 #ifndef _WCTYPE_T
       
    51 typedef	unsigned long	wctype_t;
       
    52 #define	_WCTYPE_T
       
    53 #endif
       
    54 
       
    55 #ifndef _WINT_T_DECLARED
       
    56 typedef	__wint_t	wint_t;
       
    57 #define	_WINT_T_DECLARED
       
    58 #endif
       
    59 
       
    60 #ifndef WEOF
       
    61 #define	WEOF	((wint_t)-1)
       
    62 #endif
       
    63 
       
    64 #ifdef __SYMBIAN32__
       
    65 #ifdef __cplusplus
       
    66 extern "C" {
       
    67 #endif
       
    68 #endif // __SYMBIAN32__
       
    69 
       
    70 __BEGIN_DECLS
       
    71 IMPORT_C int	iswalnum(wint_t);
       
    72 IMPORT_C int	iswalpha(wint_t);
       
    73 IMPORT_C int	iswblank(wint_t);
       
    74 IMPORT_C int	iswcntrl(wint_t);
       
    75 IMPORT_C int	iswctype(wint_t, wctype_t);
       
    76 IMPORT_C int	iswdigit(wint_t);
       
    77 IMPORT_C int	iswgraph(wint_t);
       
    78 IMPORT_C int	iswlower(wint_t);
       
    79 IMPORT_C int	iswprint(wint_t);
       
    80 IMPORT_C int	iswpunct(wint_t);
       
    81 IMPORT_C int	iswspace(wint_t);
       
    82 IMPORT_C int	iswupper(wint_t);
       
    83 IMPORT_C int	iswxdigit(wint_t);
       
    84 IMPORT_C wint_t	towctrans(wint_t, wctrans_t);
       
    85 IMPORT_C wint_t	towlower(wint_t);
       
    86 IMPORT_C wint_t	towupper(wint_t);
       
    87 IMPORT_C wctrans_t
       
    88 	wctrans(const char *);
       
    89 IMPORT_C wctype_t
       
    90 	wctype(const char *);
       
    91 __END_DECLS
       
    92 
       
    93 #ifdef __SYMBIAN32__
       
    94 #ifdef __cplusplus
       
    95 }
       
    96 #endif
       
    97 #endif // __SYMBIAN32__
       
    98 
       
    99 #endif		/* _WCTYPE_H_ */