📄 wctrans.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>wctrans</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_707"> </a>NAME</h4><blockquote>wctrans - define character mapping</blockquote><h4><a name = "tag_000_010_708"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="wctype.h.html">wctype.h</a>>wctrans_t wctrans(const char *<i>charclass</i>);</code></pre></blockquote><h4><a name = "tag_000_010_709"> </a>DESCRIPTION</h4><blockquote>The<i>wctrans()</i>function is defined for valid character mapping names identified in the current locale.The<i>charclass</i>is a string identifying a generic character mapping name for which codeset-specific information is required. The following character mapping names are defined in all locales - "tolower" and "toupper".<p>The function returns a value of type<b>wctrans_t</b>,which can be used as the second argument to subsequent calls of<i><a href="towctrans.html">towctrans()</a></i>.The<i>wctrans()</i>function determines values of<b>wctrans_t</b>according to the rules of the codedcharacter set defined by character mapping informationin the program's locale (category LC_CTYPE).The values returned by<i>wctrans()</i>are valid until a call to<i><a href="setlocale.html">setlocale()</a></i>that modifies the category LC_CTYPE.</blockquote><h4><a name = "tag_000_010_710"> </a>RETURN VALUE</h4><blockquote>The<i>wctrans()</i>function returns 0 if the given character mapping name is not validfor the current locale (category LC_CTYPE),otherwise it returns a non-zero object of type<b>wctrans_t</b>that can be used in calls to<i><a href="towctrans.html">towctrans()</a></i>.</blockquote><h4><a name = "tag_000_010_711"> </a>ERRORS</h4><blockquote>The <i>wctrans()</i>function may fail if:<dl compact><dt>[EINVAL]<dd>The character mapping name pointed to by <i>charclass</i>is not valid in the current locale.</dl></blockquote><h4><a name = "tag_000_010_712"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_713"> </a>APPLICATION USAGE</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_714"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_715"> </a>SEE ALSO</h4><blockquote><i><a href="towctrans.html">towctrans()</a></i>,<i><a href="wctype.h.html"><wctype.h></a></i>.</blockquote><h4>DERIVATION</h4><blockquote>Derived from ISO/IEC 9899:1990/Amendment 1:1995 (E).</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 + -