|
Packit |
6c4009 |
/* Copyright (C) 1996-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* ISO C99 Standard: 7.25
|
|
Packit |
6c4009 |
* Wide character classification and mapping utilities <wctype.h>
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _WCTYPE_H
|
|
Packit |
6c4009 |
#define _WCTYPE_H 1
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <features.h>
|
|
Packit |
6c4009 |
#include <bits/types.h>
|
|
Packit |
6c4009 |
#include <bits/types/wint_t.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Constant expression of type `wint_t' whose value does not correspond
|
|
Packit |
6c4009 |
to any member of the extended character set. */
|
|
Packit |
6c4009 |
#ifndef WEOF
|
|
Packit |
6c4009 |
# define WEOF (0xffffffffu)
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Some definitions from this header also appear in <wchar.h> in
|
|
Packit |
6c4009 |
Unix98 mode. */
|
|
Packit |
6c4009 |
#include <bits/wctype-wchar.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* Extensible wide-character mapping functions: 7.15.3.2.
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__BEGIN_DECLS
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Scalar type that can hold values which represent locale-specific
|
|
Packit |
6c4009 |
character mappings. */
|
|
Packit |
6c4009 |
typedef const __int32_t *wctrans_t;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Construct value that describes a mapping between wide characters
|
|
Packit |
6c4009 |
identified by the string argument PROPERTY. */
|
|
Packit |
6c4009 |
extern wctrans_t wctrans (const char *__property) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Map the wide character WC using the mapping described by DESC. */
|
|
Packit |
6c4009 |
extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# ifdef __USE_XOPEN2K8
|
|
Packit |
6c4009 |
/* POSIX.1-2008 extended locale interface (see locale.h). */
|
|
Packit |
6c4009 |
# include <bits/types/locale_t.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character for which `iswalpha' or `iswdigit' is
|
|
Packit |
6c4009 |
true. */
|
|
Packit |
6c4009 |
extern int iswalnum_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character for which `iswupper' or 'iswlower' is
|
|
Packit |
6c4009 |
true, or any wide character that is one of a locale-specific set of
|
|
Packit |
6c4009 |
wide-characters for which none of `iswcntrl', `iswdigit',
|
|
Packit |
6c4009 |
`iswpunct', or `iswspace' is true. */
|
|
Packit |
6c4009 |
extern int iswalpha_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any control wide character. */
|
|
Packit |
6c4009 |
extern int iswcntrl_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character that corresponds to a decimal-digit
|
|
Packit |
6c4009 |
character. */
|
|
Packit |
6c4009 |
extern int iswdigit_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character for which `iswprint' is true and
|
|
Packit |
6c4009 |
`iswspace' is false. */
|
|
Packit |
6c4009 |
extern int iswgraph_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character that corresponds to a lowercase letter
|
|
Packit |
6c4009 |
or is one of a locale-specific set of wide characters for which
|
|
Packit |
6c4009 |
none of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */
|
|
Packit |
6c4009 |
extern int iswlower_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any printing wide character. */
|
|
Packit |
6c4009 |
extern int iswprint_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any printing wide character that is one of a
|
|
Packit |
6c4009 |
locale-specific et of wide characters for which neither `iswspace'
|
|
Packit |
6c4009 |
nor `iswalnum' is true. */
|
|
Packit |
6c4009 |
extern int iswpunct_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character that corresponds to a locale-specific
|
|
Packit |
6c4009 |
set of wide characters for which none of `iswalnum', `iswgraph', or
|
|
Packit |
6c4009 |
`iswpunct' is true. */
|
|
Packit |
6c4009 |
extern int iswspace_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character that corresponds to an uppercase letter
|
|
Packit |
6c4009 |
or is one of a locale-specific set of wide character for which none
|
|
Packit |
6c4009 |
of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true. */
|
|
Packit |
6c4009 |
extern int iswupper_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character that corresponds to a hexadecimal-digit
|
|
Packit |
6c4009 |
character equivalent to that performed be the functions described
|
|
Packit |
6c4009 |
in the previous subclause. */
|
|
Packit |
6c4009 |
extern int iswxdigit_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Test for any wide character that corresponds to a standard blank
|
|
Packit |
6c4009 |
wide character or a locale-specific set of wide characters for
|
|
Packit |
6c4009 |
which `iswalnum' is false. */
|
|
Packit |
6c4009 |
extern int iswblank_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Construct value that describes a class of wide characters identified
|
|
Packit |
6c4009 |
by the string argument PROPERTY. */
|
|
Packit |
6c4009 |
extern wctype_t wctype_l (const char *__property, locale_t __locale)
|
|
Packit |
6c4009 |
__THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Determine whether the wide-character WC has the property described by
|
|
Packit |
6c4009 |
DESC. */
|
|
Packit |
6c4009 |
extern int iswctype_l (wint_t __wc, wctype_t __desc, locale_t __locale)
|
|
Packit |
6c4009 |
__THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/*
|
|
Packit |
6c4009 |
* Wide-character case-mapping functions.
|
|
Packit |
6c4009 |
*/
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Converts an uppercase letter to the corresponding lowercase letter. */
|
|
Packit |
6c4009 |
extern wint_t towlower_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Converts an lowercase letter to the corresponding uppercase letter. */
|
|
Packit |
6c4009 |
extern wint_t towupper_l (wint_t __wc, locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Construct value that describes a mapping between wide characters
|
|
Packit |
6c4009 |
identified by the string argument PROPERTY. */
|
|
Packit |
6c4009 |
extern wctrans_t wctrans_l (const char *__property, locale_t __locale)
|
|
Packit |
6c4009 |
__THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Map the wide character WC using the mapping described by DESC. */
|
|
Packit |
6c4009 |
extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc,
|
|
Packit |
6c4009 |
locale_t __locale) __THROW;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# endif /* Use POSIX 2008. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
__END_DECLS
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif /* wctype.h */
|