📄 towctrans.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 ® Specification, Version 2<br>Copyright © 1997 The Open Group</font></center><hr size=2 noshade><h4><a name = "tag_000_010_127"> </a>NAME</h4><blockquote>towctrans - character transliteration</blockquote><h4><a name = "tag_000_010_128"> </a>SYNOPSIS</h4><blockquote><pre><code>#include <<a href="wctype.h.html">wctype.h</a>>wint_t towctrans(wint_t <i>wc</i>, wctrans_t <i>desc</i>);</code></pre></blockquote><h4><a name = "tag_000_010_129"> </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"> </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"> </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"> </a>EXAMPLES</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_133"> </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"> </a>FUTURE DIRECTIONS</h4><blockquote>None.</blockquote><h4><a name = "tag_000_010_135"> </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"><wctype.h></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 ® 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 + -