📄 wctype.h.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta name="generator" content="HTML Tidy, see www.w3.org"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link type="text/css" rel="stylesheet" href="style.css"><!-- Generated by The Open Group's rhtm tool v1.2.1 --><!-- Copyright (c) 2001-2003 The Open Group, All Rights Reserved --><title><wctype.h></title></head><body bgcolor="white"><script type="text/javascript" language="JavaScript" src="../jscript/codes.js"></script><basefont size="3"> <a name="<wctype.h>"></a> <a name="tag_13_84"></a><!-- <wctype.h> --> <!--header start--><center><font size="2">The Open Group Base Specifications Issue 6<br>IEEE Std 1003.1, 2003 Edition<br>Copyright © 2001-2003 The IEEE and The Open Group, All Rights reserved.</font></center><!--header end--><hr size="2" noshade><h4><a name="tag_13_84_01"></a>NAME</h4><blockquote>wctype.h - wide-character classification and mapping utilities</blockquote><h4><a name="tag_13_84_02"></a>SYNOPSIS</h4><blockquote class="synopsis"><p><tt>#include <wctype.h></tt></p></blockquote><h4><a name="tag_13_84_03"></a>DESCRIPTION</h4><blockquote><div class="box"><sup>[<a href="javascript:open_code('CX')">CX</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]"border="0"> Some of the functionality described on this reference page extends the ISO C standard. Applications shall definethe appropriate feature test macro (see the System Interfaces volume of IEEE Std 1003.1-2001, <a href="../functions/xsh_chap02_02.html">Section 2.2, The Compilation Environment</a>) to enable the visibility of these symbols in thisheader. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></div><p>The <i><wctype.h></i> header shall define the following types:</p><dl compact><dt><b>wint_t</b></dt><dd>As described in <a href="wchar.h.html"><i><wchar.h></i></a> .</dd><dt><b>wctrans_t</b></dt><dd>A scalar type that can hold values which represent locale-specific character mappings.</dd><dt><b>wctype_t</b></dt><dd>As described in <a href="wchar.h.html"><i><wchar.h></i></a> .</dd></dl><p>The following shall be declared as functions and may also be defined as macros. Function prototypes shall be provided.</p><pre><tt>int iswalnum(wint_t);int iswalpha(wint_t);int iswblank(wint_t);int iswcntrl(wint_t);int iswdigit(wint_t);int iswgraph(wint_t);int iswlower(wint_t);int iswprint(wint_t);int iswpunct(wint_t);int iswspace(wint_t);int iswupper(wint_t);int iswxdigit(wint_t);int iswctype(wint_t, wctype_t);wint_t towctrans(wint_t, wctrans_t);wint_t towlower(wint_t);wint_t towupper(wint_t);wctrans_t wctrans(const char *);wctype_t wctype(const char *);</tt></pre><p>The <i><wctype.h></i> header shall define the following macro name:</p><dl compact><dt>WEOF</dt><dd>Constant expression of type <b>wint_t</b> that is returned by several MSE functions to indicate end-of-file.</dd></dl><p>For all functions described in this header that accept an argument of type <b>wint_t</b>, the value is representable as a<b>wchar_t</b> or equals the value of WEOF. If this argument has any other value, the behavior is undefined.</p><p>The behavior of these functions shall be affected by the <i>LC_CTYPE</i> category of the current locale.</p><p><sup>[<a href="javascript:open_code('CX')">CX</a>]</sup> <img src="../images/opt-start.gif" alt="[Option Start]" border="0">Inclusion of the <i><wctype.h></i> header may make visible all symbols from the headers <a href="../basedefs/ctype.h.html"><i><ctype.h></i></a>, <a href="../basedefs/stdarg.h.html"><i><stdarg.h></i></a>, <a href="../basedefs/stddef.h.html"><i><stddef.h></i></a>, <a href="../basedefs/stdio.h.html"><i><stdio.h></i></a>, <a href="../basedefs/stdlib.h.html"><i><stdlib.h></i></a>, <a href="../basedefs/string.h.html"><i><string.h></i></a>, <a href="../basedefs/time.h.html"><i><time.h></i></a>, and <a href="../basedefs/wchar.h.html"><i><wchar.h></i></a>. <img src="../images/opt-end.gif" alt="[Option End]" border="0"></p></blockquote><hr><div class="box"><em>The following sections are informative.</em></div><h4><a name="tag_13_84_04"></a>APPLICATION USAGE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_84_05"></a>RATIONALE</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_84_06"></a>FUTURE DIRECTIONS</h4><blockquote><p>None.</p></blockquote><h4><a name="tag_13_84_07"></a>SEE ALSO</h4><blockquote><p><a href="ctype.h.html"><i><ctype.h></i></a> , <a href="locale.h.html"><i><locale.h></i></a> , <a href="stdarg.h.html"><i><stdarg.h></i></a> , <a href="stddef.h.html"><i><stddef.h></i></a> , <a href="stdio.h.html"><i><stdio.h></i></a> , <a href="stdlib.h.html"><i><stdlib.h></i></a> , <a href="string.h.html"><i><string.h></i></a> , <a href="time.h.html"><i><time.h></i></a> , <a href="wchar.h.html"><i><wchar.h></i></a> , the System Interfaces volume of IEEE Std 1003.1-2001, <a href="../functions/iswalnum.html"><i>iswalnum</i>()</a>, <a href="../functions/iswalpha.html"><i>iswalpha</i>()</a>, <a href="../functions/iswblank.html"><i>iswblank</i>()</a>, <a href="../functions/iswcntrl.html"><i>iswcntrl</i>()</a>, <a href="../functions/iswctype.html"><i>iswctype</i>()</a>, <a href="../functions/iswdigit.html"><i>iswdigit</i>()</a>, <a href="../functions/iswgraph.html"><i>iswgraph</i>()</a>, <a href="../functions/iswlower.html"><i>iswlower</i>()</a>, <a href="../functions/iswprint.html"><i>iswprint</i>()</a>, <a href="../functions/iswpunct.html"><i>iswpunct</i>()</a>, <a href="../functions/iswspace.html"><i>iswspace</i>()</a>, <a href="../functions/iswupper.html"><i>iswupper</i>()</a>, <a href="../functions/iswxdigit.html"><i>iswxdigit</i>()</a>, <a href="../functions/setlocale.html"><i>setlocale</i>()</a>, <a href="../functions/towctrans.html"><i>towctrans</i>()</a>, <a href="../functions/towlower.html"><i>towlower</i>()</a>, <a href="../functions/towupper.html"><i>towupper</i>()</a>, <a href="../functions/wctrans.html"><i>wctrans</i>()</a>, <a href="../functions/wctype.html"><i>wctype</i>()</a></p></blockquote><h4><a name="tag_13_84_08"></a>CHANGE HISTORY</h4><blockquote><p>First released in Issue 5. Derived from the ISO/IEC 9899:1990/Amendment 1:1995 (E).</p></blockquote><h4><a name="tag_13_84_09"></a>Issue 6</h4><blockquote><p>The <a href="../functions/iswblank.html"><i>iswblank</i>()</a> function is added for alignment with the ISO/IEC 9899:1999standard.</p></blockquote><div class="box"><em>End of informative text.</em></div><hr><hr size="2" noshade><center><font size="2"><!--footer start-->UNIX ® is a registered Trademark of The Open Group.<br>POSIX ® is a registered Trademark of The IEEE.<br>[ <a href="../mindex.html">Main Index</a> | <a href="../basedefs/contents.html">XBD</a> | <a href="../utilities/contents.html">XCU</a> | <a href="../functions/contents.html">XSH</a> | <a href="../xrat/contents.html">XRAT</a>]</font></center><!--footer end--><hr size="2" noshade></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -