]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/iswpunct.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man3 / iswpunct.3
CommitLineData
fea681da
MK
1.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2.\"
e4a74ca8 3.\" SPDX-License-Identifier: GPL-2.0-or-later
fea681da
MK
4.\"
5.\" References consulted:
6.\" GNU glibc-2 source code and manual
7.\" Dinkumware C library reference http://www.dinkumware.com/
008f1ecc 8.\" OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
fea681da
MK
9.\" ISO/IEC 9899:1999
10.\"
45186a5d 11.TH ISWPUNCT 3 2021-03-22 "Linux man-pages (unreleased)"
fea681da
MK
12.SH NAME
13iswpunct \- test for punctuation or symbolic wide character
ac9fd3df
AC
14.SH LIBRARY
15Standard C library
8fc3b2cf 16.RI ( libc ", " \-lc )
fea681da
MK
17.SH SYNOPSIS
18.nf
19.B #include <wctype.h>
68e4db0a 20.PP
fea681da
MK
21.BI "int iswpunct(wint_t " wc );
22.fi
23.SH DESCRIPTION
60a90ecd
MK
24The
25.BR iswpunct ()
26function is the wide-character equivalent of the
27.BR ispunct (3)
28function.
35cfd378
MK
29It tests whether
30.I wc
31is a wide character
d0f17b57 32belonging to the wide-character class "punct".
fea681da 33.PP
d0f17b57
MK
34The wide-character class "punct" is a subclass of the wide-character class
35"graph", and therefore also a subclass of the wide-character class "print".
fea681da 36.PP
d0f17b57 37The wide-character class "punct" is disjoint from the wide-character class
fea681da
MK
38"alnum" and therefore also disjoint from its subclasses "alpha", "upper",
39"lower", "digit", "xdigit".
40.PP
d0f17b57
MK
41Being a subclass of the wide-character class "print",
42the wide-character class
43"punct" is disjoint from the wide-character class "cntrl".
fea681da 44.PP
d0f17b57
MK
45Being a subclass of the wide-character class "graph",
46the wide-character class
47"punct" is disjoint from the wide-character class "space" and its subclass
fea681da 48"blank".
47297adb 49.SH RETURN VALUE
60a90ecd
MK
50The
51.BR iswpunct ()
c7094399 52function returns nonzero
35cfd378
MK
53if
54.I wc
55is a wide-character
d0f17b57 56belonging to the wide-character class "punct".
2b9b829d 57Otherwise, it returns zero.
b2c5b0e9
PH
58.SH ATTRIBUTES
59For an explanation of the terms used in this section, see
60.BR attributes (7).
c466875e
MK
61.ad l
62.nh
b2c5b0e9
PH
63.TS
64allbox;
c466875e 65lbx lb lb
b2c5b0e9
PH
66l l l.
67Interface Attribute Value
68T{
69.BR iswpunct ()
70T} Thread safety MT-Safe locale
71.TE
c466875e
MK
72.hy
73.ad
74.sp 1
3113c7f3 75.SH STANDARDS
3d7f18e7 76POSIX.1-2001, POSIX.1-2008, C99.
fea681da 77.SH NOTES
d9bfdb9c 78The behavior of
60a90ecd 79.BR iswpunct ()
1274071a
MK
80depends on the
81.B LC_CTYPE
82category of the
fea681da
MK
83current locale.
84.PP
85This function's name is a misnomer when dealing with Unicode characters,
d0f17b57 86because the wide-character class "punct" contains both punctuation characters
fea681da 87and symbol (math, currency, etc.) characters.
47297adb 88.SH SEE ALSO
e37e3282
MK
89.BR ispunct (3),
90.BR iswctype (3)