⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 towctrans.html

📁 unix 下的C开发手册,还用详细的例程。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!-- Copyright 1997 The Open Group, All Rights Reserved --><title>towctrans</title></head><body bgcolor=white><center><font size=2>The Single UNIX &reg; Specification, Version 2<br>Copyright &copy; 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_010_127">&nbsp;</a>NAME</h4><blockquote>towctrans - character transliteration</blockquote><h4><a name = "tag_000_010_128">&nbsp;</a>SYNOPSIS</h4><blockquote><pre><code>#include &lt;<a href="wctype.h.html">wctype.h</a>&gt;wint_t towctrans(wint_t <i>wc</i>, wctrans_t <i>desc</i>);</code></pre></blockquote><h4><a name = "tag_000_010_129">&nbsp;</a>DESCRIPTION</h4><blockquote>The<i>towctrans()</i>function transliterates the wide-character code<i>wc</i>using the mapping described by<i>desc</i>.The current setting of the LC_CTYPE category should be the same asduring the call to<i><a href="wctrans.html">wctrans()</a></i>that returned the value<i>desc</i>.If the value of<i>desc</i>is invalid (that is, not obtained by a call to<i><a href="wctrans.html">wctrans()</a></i>or<i>desc</i>is invalidated by asubsequent call to<i><a href="setlocale.html">setlocale()</a></i>that has affected category LC_CTYPE)the result is implementation-dependent.</blockquote><h4><a name = "tag_000_010_130">&nbsp;</a>RETURN VALUE</h4><blockquote>If successful, the<i>towctrans()</i>function returns the mapped value of <i>wc</i>using the mapping described by<i>desc</i>.Otherwise it returns<i>wc</i>unchanged.</blockquote><h4><a name = "tag_000_010_131">&nbsp;</a>ERRORS</h4><blockquote>The<i>towctrans()</i>function may fail if:<dl compact><dt>[EINVAL]<dd><i>desc</i>contains an invalid transliteration descriptor.</dl></blockquote><h4><a name = "tag_000_010_132">&nbsp;</a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_133">&nbsp;</a>APPLICATION USAGE</h4><blockquote>The strings - "tolower" and "toupper" -are reserved for the standard mapping names.In the table below,the functions in the left column are equivalent tothe functions in the right column.<pre><code>towlower(<i>wc</i>)    towctrans(<i>wc</i>, wctrans("tolower"))towupper(<i>wc</i>)    towctrans(<i>wc</i>, wctrans("toupper"))</code></pre></blockquote><h4><a name = "tag_000_010_134">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_135">&nbsp;</a>SEE ALSO</h4><blockquote><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.h.html">&lt;wctype.h&gt;</a></i>.<br></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 &reg; is a registered Trademark of The Open Group.<br>Copyright &copy; 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 + -