wctype.h revision af062818b47340eef15700d2f0211576ba3506ee
af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Unicode definitions
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright 2000 Francois Gouget.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync *
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef __WINE_WCTYPE_H
af062818b47340eef15700d2f0211576ba3506eevboxsync#define __WINE_WCTYPE_H
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef __WINE_USE_MSVCRT
af062818b47340eef15700d2f0211576ba3506eevboxsync#define __WINE_USE_MSVCRT
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#include <pshpack8.h>
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef _WCHAR_T_DEFINED
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _WCHAR_T_DEFINED
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef __cplusplus
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef unsigned short wchar_t;
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/* ASCII char classification table - binary compatible */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _UPPER 0x0001 /* C1_UPPER */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _LOWER 0x0002 /* C1_LOWER */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _DIGIT 0x0004 /* C1_DIGIT */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _SPACE 0x0008 /* C1_SPACE */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _PUNCT 0x0010 /* C1_PUNCT */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _CONTROL 0x0020 /* C1_CNTRL */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _BLANK 0x0040 /* C1_BLANK */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _HEX 0x0080 /* C1_XDIGIT */
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _LEADBYTE 0x8000
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _ALPHA (0x0100|_UPPER|_LOWER) /* (C1_ALPHA|_UPPER|_LOWER) */
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef WEOF
af062818b47340eef15700d2f0211576ba3506eevboxsync#define WEOF (wint_t)(0xFFFF)
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef _WCTYPE_T_DEFINED
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef unsigned short wint_t;
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef unsigned short wctype_t;
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _WCTYPE_T_DEFINED
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/* FIXME: there's something to do with __p__pctype and __p__pwctype */
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifdef __cplusplus
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifndef _WCTYPE_DEFINED
af062818b47340eef15700d2f0211576ba3506eevboxsync#define _WCTYPE_DEFINED
af062818b47340eef15700d2f0211576ba3506eevboxsyncint is_wctype(wint_t,wctype_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint isleadbyte(int);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswalnum(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswalpha(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswascii(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswcntrl(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswctype(wint_t,wctype_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswdigit(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswgraph(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswlower(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswprint(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswpunct(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswspace(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswupper(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncint iswxdigit(wint_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncwchar_t towlower(wchar_t);
af062818b47340eef15700d2f0211576ba3506eevboxsyncwchar_t towupper(wchar_t);
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* _WCTYPE_DEFINED */
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#ifdef __cplusplus
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#include <poppack.h>
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* __WINE_WCTYPE_H */