📄 wctype.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title><wctype.h></title></head><body bgcolor=white><center><font size=2>The Single UNIX ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_010_716"> </a>NAME</h4><blockquote>wctype.h - wide-character classification and mapping utilities</blockquote><h4><a name = "tag_000_010_717"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <wctype.h></code></pre></blockquote><h4><a name = "tag_000_010_718"> </a>DESCRIPTION</h4><blockquote>The<i><wctype.h></i>header defines the following data types through<dl compact><dt><b>wint_t</b><dd>As described in<i><a href="wchar.h.html"><wchar.h></a></i>.<dt><b>wctrans_t</b><dd><index term="data type, wctrans_t"></index>A scalar type that can hold values which represent locale-specificcharacter mappings.<dt><b>wctype_t</b><dd>As described in<i><a href="wchar.h.html"><wchar.h></a></i>.</dl><p>The<i><wctype.h></i>headerdeclares the following as functions and may also define them as macros.Function prototypes must be provided for use with an ISO Ccompiler.<pre><code>int <a href="iswalnum.html">iswalnum</a>(wint_t);int <a href="iswalpha.html">iswalpha</a>(wint_t);int <a href="iswcntrl.html">iswcntrl</a>(wint_t);int <a href="iswdigit.html">iswdigit</a>(wint_t);int <a href="iswgraph.html">iswgraph</a>(wint_t);int <a href="iswlower.html">iswlower</a>(wint_t);int <a href="iswprint.html">iswprint</a>(wint_t);int <a href="iswpunct.html">iswpunct</a>(wint_t);int <a href="iswspace.html">iswspace</a>(wint_t);int <a href="iswupper.html">iswupper</a>(wint_t);int <a href="iswxdigit.html">iswxdigit</a>(wint_t);int <a href="iswctype.html">iswctype</a>(wint_t, wctype_t);wint_t <a href="towctrans.html">towctrans</a>(wint_t, wctrans_t);wint_t <a href="towlower.html">towlower</a>(wint_t);wint_t <a href="towupper.html">towupper</a>(wint_t);wctrans_t <a href="wctrans.html">wctrans</a>(const char *);wctype_t <a href="wctype.html">wctype</a>(const char *);</code></pre><p><i><wctype.h></i>defines the following macro name:<dl compact><dt>WEOF<dd>Constant expression of type<b>wint_t</b>that is returned by several MSE functions to indicate end-of-file.</dl><p>For all functions described in this header that accept an argument oftype <b>wint_t</b>, the value will be representable as a <b>wchar_t</b>or will equal the value of <b>WEOF</b>. If this argument has any othervalue, the behaviour is undefined.<p>The behaviour of these functions is affected by the LC_CTYPEcategory of the current locale.<p>Inclusion of the<i><wctype.h></i>header may make visible all symbols from the headers<i><a href="ctype.h.html"><ctype.h></a></i>,<i><a href="stdio.h.html"><stdio.h></a></i>,<i><a href="stdarg.h.html"><stdarg.h></a></i>,<i><a href="stdlib.h.html"><stdlib.h></a></i>,<i><a href="string.h.html"><string.h></a></i>,<i><a href="stddef.h.html"><stddef.h></a></i><i><a href="time.h.html"><time.h></a></i>.and<i><a href="wchar.h.html"><wchar.h></a></i>.</blockquote><h4><a name = "tag_000_010_719"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_720"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_721"> </a>SEE ALSO</h4><blockquote><i><a href="iswalnum.html">iswalnum()</a></i>,<i><a href="iswalpha.html">iswalpha()</a></i>,<i><a href="iswcntrl.html">iswcntrl()</a></i>,<i><a href="iswctype.html">iswctype()</a></i>,<i><a href="iswdigit.html">iswdigit()</a></i>,<i><a href="iswgraph.html">iswgraph()</a></i>,<i><a href="iswlower.html">iswlower()</a></i>,<i><a href="iswprint.html">iswprint()</a></i>,<i><a href="iswpunct.html">iswpunct()</a></i>,<i><a href="iswspace.html">iswspace()</a></i>,<i><a href="iswupper.html">iswupper()</a></i>,<i><a href="iswxdigit.html">iswxdigit()</a></i>,<i><a href="setlocale.html">setlocale()</a></i>,<i><a href="towctrans.html">towctrans()</a></i>,<i><a href="towlower.html">towlower()</a></i>,<i><a href="towupper.html">towupper()</a></i>,<i><a href="wctrans.html">wctrans()</a></i>,<i><a href="wctype.html">wctype()</a></i>,<i><a href="locale.h.html"><locale.h></a></i>.<i><a href="wchar.h.html"><wchar.h></a></i>.</blockquote><hr size=2 noshade><center><font size=2>UNIX ® is a registered Trademark of The Open Group.<br>Copyright © 1997 The Open Group<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]</font></center><hr size=2 noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -