|
Packit |
7cfc04 |
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
|
|
Packit |
7cfc04 |
.\"
|
|
Packit |
7cfc04 |
.\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
|
|
Packit |
7cfc04 |
.\" This is free documentation; you can redistribute it and/or
|
|
Packit |
7cfc04 |
.\" modify it under the terms of the GNU General Public License as
|
|
Packit |
7cfc04 |
.\" published by the Free Software Foundation; either version 2 of
|
|
Packit |
7cfc04 |
.\" the License, or (at your option) any later version.
|
|
Packit |
7cfc04 |
.\" %%%LICENSE_END
|
|
Packit |
7cfc04 |
.\"
|
|
Packit |
7cfc04 |
.\" References consulted:
|
|
Packit |
7cfc04 |
.\" GNU glibc-2 source code and manual
|
|
Packit |
7cfc04 |
.\" Dinkumware C library reference http://www.dinkumware.com/
|
|
Packit |
7cfc04 |
.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
|
|
Packit |
7cfc04 |
.\" ISO/IEC 9899:1999
|
|
Packit |
7cfc04 |
.\"
|
|
Packit |
7cfc04 |
.TH WCTYPE 3 2015-08-08 "GNU" "Linux Programmer's Manual"
|
|
Packit |
7cfc04 |
.SH NAME
|
|
Packit |
7cfc04 |
wctype \- wide-character classification
|
|
Packit |
7cfc04 |
.SH SYNOPSIS
|
|
Packit |
7cfc04 |
.nf
|
|
Packit |
7cfc04 |
.B #include <wctype.h>
|
|
Packit |
7cfc04 |
.PP
|
|
Packit |
7cfc04 |
.BI "wctype_t wctype(const char *" name );
|
|
Packit |
7cfc04 |
.fi
|
|
Packit |
7cfc04 |
.SH DESCRIPTION
|
|
Packit |
7cfc04 |
The
|
|
Packit |
7cfc04 |
.I wctype_t
|
|
Packit |
7cfc04 |
type represents a property which a wide character may or
|
|
Packit |
7cfc04 |
may not have.
|
|
Packit |
7cfc04 |
In other words, it represents a class of wide characters.
|
|
Packit |
7cfc04 |
This type's nature is implementation-dependent, but the special value
|
|
Packit |
7cfc04 |
.I "(wctype_t) 0"
|
|
Packit |
7cfc04 |
denotes an invalid property.
|
|
Packit |
7cfc04 |
Nonzero
|
|
Packit |
7cfc04 |
.I wctype_t
|
|
Packit |
7cfc04 |
values
|
|
Packit |
7cfc04 |
can be passed to the
|
|
Packit |
7cfc04 |
.BR iswctype (3)
|
|
Packit |
7cfc04 |
function
|
|
Packit |
7cfc04 |
to actually test whether a given
|
|
Packit |
7cfc04 |
wide character has the property.
|
|
Packit |
7cfc04 |
.PP
|
|
Packit |
7cfc04 |
The
|
|
Packit |
7cfc04 |
.BR wctype ()
|
|
Packit |
7cfc04 |
function returns a property, given by its name.
|
|
Packit |
7cfc04 |
The set of
|
|
Packit |
7cfc04 |
valid names depends on the
|
|
Packit |
7cfc04 |
.B LC_CTYPE
|
|
Packit |
7cfc04 |
category of the current locale, but the
|
|
Packit |
7cfc04 |
following names are valid in all locales.
|
|
Packit |
7cfc04 |
.PP
|
|
Packit |
7cfc04 |
.nf
|
|
Packit |
7cfc04 |
"alnum" \- realizes the \fBisalnum\fP(3) classification function
|
|
Packit |
7cfc04 |
"alpha" \- realizes the \fBisalpha\fP(3) classification function
|
|
Packit |
7cfc04 |
"blank" \- realizes the \fBisblank\fP(3) classification function
|
|
Packit |
7cfc04 |
"cntrl" \- realizes the \fBiscntrl\fP(3) classification function
|
|
Packit |
7cfc04 |
"digit" \- realizes the \fBisdigit\fP(3) classification function
|
|
Packit |
7cfc04 |
"graph" \- realizes the \fBisgraph\fP(3) classification function
|
|
Packit |
7cfc04 |
"lower" \- realizes the \fBislower\fP(3) classification function
|
|
Packit |
7cfc04 |
"print" \- realizes the \fBisprint\fP(3) classification function
|
|
Packit |
7cfc04 |
"punct" \- realizes the \fBispunct\fP(3) classification function
|
|
Packit |
7cfc04 |
"space" \- realizes the \fBisspace\fP(3) classification function
|
|
Packit |
7cfc04 |
"upper" \- realizes the \fBisupper\fP(3) classification function
|
|
Packit |
7cfc04 |
"xdigit" \- realizes the \fBisxdigit\fP(3) classification function
|
|
Packit |
7cfc04 |
.fi
|
|
Packit |
7cfc04 |
.SH RETURN VALUE
|
|
Packit |
7cfc04 |
The
|
|
Packit |
7cfc04 |
.BR wctype ()
|
|
Packit |
7cfc04 |
function returns a property descriptor
|
|
Packit |
7cfc04 |
if the
|
|
Packit |
7cfc04 |
.I name
|
|
Packit |
7cfc04 |
is valid.
|
|
Packit |
7cfc04 |
Otherwise, it returns
|
|
Packit |
7cfc04 |
.IR "(wctype_t) 0" .
|
|
Packit |
7cfc04 |
.SH ATTRIBUTES
|
|
Packit |
7cfc04 |
For an explanation of the terms used in this section, see
|
|
Packit |
7cfc04 |
.BR attributes (7).
|
|
Packit |
7cfc04 |
.TS
|
|
Packit |
7cfc04 |
allbox;
|
|
Packit |
7cfc04 |
lb lb lb
|
|
Packit |
7cfc04 |
l l l.
|
|
Packit |
7cfc04 |
Interface Attribute Value
|
|
Packit |
7cfc04 |
T{
|
|
Packit |
7cfc04 |
.BR wctype ()
|
|
Packit |
7cfc04 |
T} Thread safety MT-Safe locale
|
|
Packit |
7cfc04 |
.TE
|
|
Packit |
7cfc04 |
.SH CONFORMING TO
|
|
Packit |
7cfc04 |
POSIX.1-2001, POSIX.1-2008, C99.
|
|
Packit |
7cfc04 |
.SH NOTES
|
|
Packit |
7cfc04 |
The behavior of
|
|
Packit |
7cfc04 |
.BR wctype ()
|
|
Packit |
7cfc04 |
depends on the
|
|
Packit |
7cfc04 |
.B LC_CTYPE
|
|
Packit |
7cfc04 |
category of the
|
|
Packit |
7cfc04 |
current locale.
|
|
Packit |
7cfc04 |
.SH SEE ALSO
|
|
Packit |
7cfc04 |
.BR iswctype (3)
|
|
Packit |
7cfc04 |
.SH COLOPHON
|
|
Packit |
7cfc04 |
This page is part of release 4.15 of the Linux
|
|
Packit |
7cfc04 |
.I man-pages
|
|
Packit |
7cfc04 |
project.
|
|
Packit |
7cfc04 |
A description of the project,
|
|
Packit |
7cfc04 |
information about reporting bugs,
|
|
Packit |
7cfc04 |
and the latest version of this page,
|
|
Packit |
7cfc04 |
can be found at
|
|
Packit |
7cfc04 |
\%https://www.kernel.org/doc/man\-pages/.
|