iswpunctのヘルプ・マニュアル
日本語 英語
iswpunct --help
man iswpunct
ISWPUNCT(3) Linux Programmer’s Manual ISWPUNCT(3)
名前
iswpunct - 句読点・記号ワイド文字かどうかを調べる
書式
#include
int iswpunct(wint_t wc);
説明
iswpunct() 関数は、 ispunct(3) に対応するワイド文字関数である。この関数
は、wc がワイド文字クラス "punct" に属するワイド文字かどうかを調べる。
ワイド文字クラス "punct" はワイド文字クラス "graph" のサブクラスであ る
。したがって、ワイド文字クラス "print" のサブクラスでもある。
ワ イド文字クラス "punct" はワイド文字クラス "alnum" と共通部分を持たな
い。したがって、そのサブク ラ ス で あ る "alpha", "upper", "lower",
"digit", "xdigit" とも共通部分を持たない。
ワ イド文字 "print" のサブクラスなので、ワイド文字クラス "punct" はワイ
ド文字クラス "cntrl" と共通部分を持たない。
ワイド文字クラス "graph" のサブクラスなので、ワイド文字クラ ス "punct"
は ワイド文字クラス "space" とそのサブクラスである "blank" と共通部分を
持たない。
返り値
iswpunct() 関数は、wc がワイド文字クラス "punct" に属するワイド文字なら
ば 0 でない値を返す。そうでなければ 0 を返す。
準拠
C99.
注意
iswpunct() の動作は、現在のロケールの LC_CTYPE カテゴリに依存する。
この関数の名前は Unicode 文字を扱う際には正しくない。なぜなら、ワイド文
字クラス "punct" は句読点文字と記号文字(数学記号、貨幣記号など)の両方を
含むからである。
関連項目
ispunct(3), iswctype(3)
GNU 1999-07-25 ISWPUNCT(3)
ISWPUNCT(3) Linux Programmer’s Manual ISWPUNCT(3)
NAME
iswpunct - test for punctuation or symbolic wide character
SYNOPSIS
#include
int iswpunct(wint_t wc);
DESCRIPTION
The iswpunct() function is the wide-character equivalent of the
ispunct(3) function. It tests whether wc is a wide character belonging
to the wide-character class "punct".
The wide-character class "punct" is a subclass of the wide-character
class "graph", and therefore also a subclass of the wide-character
class "print".
The wide-character class "punct" is disjoint from the wide-character
class "alnum" and therefore also disjoint from its subclasses "alpha",
"upper", "lower", "digit", "xdigit".
Being a subclass of the wide-character class "print", the wide-charac-
ter class "punct" is disjoint from the wide-character class "cntrl".
Being a subclass of the wide-character class "graph", the wide-charac-
ter class "punct" is disjoint from the wide-character class "space" and
its subclass "blank".
RETURN VALUE
The iswpunct() function returns non-zero if wc is a wide-character
belonging to the wide-character class "punct". Otherwise it returns
zero.
CONFORMING TO
C99.
NOTES
The behavior of iswpunct() depends on the LC_CTYPE category of the cur-
rent locale.
This function’s name is a misnomer when dealing with Unicode charac-
ters, because the wide-character class "punct" contains both punctua-
tion characters and symbol (math, currency, etc.) characters.
SEE ALSO
ispunct(3), iswctype(3)
COLOPHON
This page is part of release 3.22 of the Linux man-pages project. A
description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
GNU 1999-07-25 ISWPUNCT(3)