2012-09-28 22:36:46 +00:00
|
|
|
/*******************************************************************************
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-07-10 13:26:01 +00:00
|
|
|
Copyright(C) Jonas 'Sortie' Termansen 2011.
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-07-10 13:26:01 +00:00
|
|
|
This file is part of the Sortix C Library.
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-07-10 13:26:01 +00:00
|
|
|
The Sortix C Library is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
the Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
option) any later version.
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-07-10 13:26:01 +00:00
|
|
|
The Sortix C Library is distributed in the hope that it will be useful, but
|
|
|
|
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
|
|
|
|
License for more details.
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-07-10 13:26:01 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public License
|
|
|
|
along with the Sortix C Library. If not, see <http://www.gnu.org/licenses/>.
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-07-10 13:26:01 +00:00
|
|
|
wctype.h
|
|
|
|
Wide-character classification and mapping utilities
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2012-09-28 22:36:46 +00:00
|
|
|
*******************************************************************************/
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-04-21 20:46:44 +00:00
|
|
|
#ifndef _WCTYPE_H
|
|
|
|
#define _WCTYPE_H 1
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-10-13 11:04:27 +00:00
|
|
|
#include <sys/cdefs.h>
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2013-09-23 14:37:33 +00:00
|
|
|
#include <sys/__/types.h>
|
|
|
|
|
2011-08-05 12:25:00 +00:00
|
|
|
__BEGIN_DECLS
|
|
|
|
|
2013-12-27 00:44:03 +00:00
|
|
|
#ifndef __wint_t_defined
|
|
|
|
#define __wint_t_defined
|
|
|
|
typedef int __wint_t;
|
|
|
|
typedef __wint_t wint_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __wctrans_t_defined
|
|
|
|
#define __wctrans_t_defined
|
|
|
|
/* TODO: figure out what this does and typedef it properly. This is just a
|
|
|
|
temporary assignment. */
|
|
|
|
typedef unsigned int __wctrans_t;
|
|
|
|
typedef __wctrans_t wctrans_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __wctype_t_defined
|
|
|
|
#define __wctype_t_defined
|
|
|
|
typedef int (*wctype_t)(wint_t);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __locale_t_defined
|
|
|
|
#define __locale_t_defined
|
|
|
|
/* TODO: figure out what this does and typedef it properly. This is just a
|
|
|
|
temporary assignment. */
|
|
|
|
typedef int __locale_t;
|
|
|
|
typedef __locale_t locale_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef WEOF
|
|
|
|
#define WEOF (-1)
|
|
|
|
#endif
|
2011-08-05 12:25:00 +00:00
|
|
|
|
2012-12-20 15:18:24 +00:00
|
|
|
int iswalnum(wint_t);
|
|
|
|
int iswalpha(wint_t);
|
|
|
|
int iswblank(wint_t);
|
|
|
|
int iswcntrl(wint_t);
|
|
|
|
int iswctype(wint_t, wctype_t);
|
|
|
|
int iswdigit(wint_t);
|
|
|
|
int iswgraph(wint_t);
|
|
|
|
int iswlower(wint_t);
|
|
|
|
int iswprint(wint_t);
|
|
|
|
int iswpunct(wint_t);
|
|
|
|
int iswspace(wint_t);
|
|
|
|
int iswupper(wint_t);
|
|
|
|
int iswxdigit(wint_t);
|
|
|
|
wint_t towlower(wint_t);
|
|
|
|
wint_t towupper(wint_t);
|
|
|
|
wctype_t wctype(const char *);
|
|
|
|
|
2012-09-28 22:53:50 +00:00
|
|
|
/* TODO: These are not implemented in sortix libc yet. */
|
2013-09-23 14:57:22 +00:00
|
|
|
#if 0
|
2011-08-05 12:25:00 +00:00
|
|
|
int iswalnum_l(wint_t, locale_t);
|
|
|
|
int iswalpha_l(wint_t, locale_t);
|
|
|
|
int iswblank_l(wint_t, locale_t);
|
|
|
|
int iswcntrl_l(wint_t, locale_t);
|
|
|
|
int iswctype_l(wint_t, wctype_t, locale_t);
|
|
|
|
int iswdigit_l(wint_t, locale_t);
|
|
|
|
int iswgraph_l(wint_t, locale_t);
|
|
|
|
int iswlower_l(wint_t, locale_t);
|
|
|
|
int iswprint_l(wint_t, locale_t);
|
|
|
|
int iswpunct_l(wint_t, locale_t);
|
|
|
|
int iswspace_l(wint_t, locale_t);
|
|
|
|
int iswupper_l(wint_t, locale_t);
|
|
|
|
int iswxdigit_l(wint_t, locale_t);
|
|
|
|
wint_t towctrans(wint_t, wctrans_t);
|
|
|
|
wint_t towctrans_l(wint_t, wctrans_t, locale_t);
|
|
|
|
wint_t towlower_l(wint_t, locale_t);
|
|
|
|
wint_t towupper_l(wint_t, locale_t);
|
|
|
|
wctrans_t wctrans(const char *);
|
|
|
|
wctrans_t wctrans_l(const char *, locale_t);
|
|
|
|
wctype_t wctype_l(const char *, locale_t);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif
|