上传cppreference

This commit is contained in:
2025-08-01 12:57:54 +08:00
parent e29892f8cd
commit 196e706fe4
5485 changed files with 982007 additions and 3 deletions

View File

@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="zh" dir="ltr" class="client-nojs" xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh">
<head><meta http-equiv="x-ua-compatible" content="ie=edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>std::basic_ios&lt;CharT,Traits&gt;::widen</title>
<link rel="stylesheet" href="ext.css" />
<link rel="stylesheet" href="site_modules.css" />
</head>
<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-cpp_io_basic_ios_widen skin-cppreference2 action-view cpp-navbar">
<div id="cpp-content-base">
<div id="content"><a id="top"></a>
<h1 id="firstHeading" class="firstHeading"><span style="font-size:0.7em; line-height:130%">std::basic_ios&lt;CharT,Traits&gt;::</span>widen</h1>
<div id="bodyContent">
<div id="contentSub"><span class="subpages">&lt; <a href="cpp.html">cpp</a>&lrm; | <a href="cpp-io.html">io</a>&lrm; | <a href="cpp-io-basic_ios.html">basic ios</a></span></div>
<div id="mw-content-text" lang="zh" dir="ltr" class="mw-content-ltr" xml:lang="zh">
<table class="t-dcl-begin">
<tbody>
<tr class="t-dcl">
<td class="t-dcl-nopad">
<div><span class="mw-geshi cpp source-cpp">char_type widen<span class="br0">(</span> <span class="kw4">char</span> c <span class="br0">)</span> <span class="kw4">const</span><span class="sy4">;</span></span></div>
</td>
<td class="t-dcl-nopad"></td>
<td class="t-dcl-nopad"></td>
</tr>
<tr class="t-dcl-sep">
<td></td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>&#36716;&#25442;&#23383;&#31526; <code>c</code> &#21040;&#20854;&#22312;&#24403;&#21069;&#26412;&#22320;&#29615;&#22659;&#30340;&#31561;&#20215;&#29289;&#12290;&#33509;&#38656;&#35201;&#65292;&#21017;&#23558;&#32467;&#26524;&#20174; <span class="t-c"><span class="mw-geshi cpp source-cpp"><span class="kw4">char</span></span></span> &#36716;&#25442;&#20026;&#29992;&#20110;&#27969;&#20869;&#30340;&#23383;&#31526;&#31867;&#22411;&#12290;</p>
<p>&#31561;&#25928;&#22320;&#35843;&#29992; <span class="t-c"><span class="mw-geshi cpp source-cpp"><a href="cpp-locale-use_facet.html"><span class="kw1897">std::<span class="me2">use_facet</span></span></a><span class="sy1">&lt;</span> <a href="cpp-locale-ctype.html"><span class="kw1938">std::<span class="me2">ctype</span></span></a><span class="sy1">&lt;</span>char_type<span class="sy1">&gt;</span> <span class="sy1">&gt;</span><span class="br0">(</span>getloc<span class="br0">(</span><span class="br0">)</span><span class="br0">)</span>.<span class="me1">widen</span><span class="br0">(</span>c<span class="br0">)</span></span></span> &#12290;</p>
<h3><span class="mw-headline" id=".E5.8F.82.E6.95.B0">&#21442;&#25968;</span></h3>
<table class="t-par-begin">
<tr class="t-par">
<td>c</td>
<td>-</td>
<td>&#35201;&#36716;&#25442;&#30340;&#23383;&#31526;</td>
</tr>
</table>
<h3><span class="mw-headline" id=".E8.BF.94.E5.9B.9E.E5.80.BC">&#36820;&#22238;&#20540;</span></h3>
<p>&#36716;&#25442;&#20026; <code>char_type</code> &#30340;&#23383;&#31526;</p>
<h3><span class="mw-headline" id=".E5.8F.82.E9.98.85">&#21442;&#38405;</span></h3>
<table class="t-dsc-begin">
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-io-basic_ios-narrow.html"><span class="t-lines"><span>narrow</span></span></a></div>
</div>
</td>
<td>&#31364;&#21270;&#23383;&#31526;<br />
<span class="t-mark">(&#20844;&#24320;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-locale-ctype-widen.html"><span class="t-lines"><span>do_widen</span></span></a></div>
<div><span class="t-lines"><span><span class="t-cmark">[&#34394;]</span></span></span></div>
</div>
</td>
<td>&#23558;&#19968;&#25110;&#22810;&#20010;&#23383;&#31526;&#20174; <code>char</code> &#36716;&#25442;&#20026; <code>charT</code><br />
<span class="t-mark">(<code>std::ctype&lt;CharT&gt;</code> &#30340;&#34394;&#21463;&#20445;&#25252;&#25104;&#21592;&#20989;&#25968;)</span></td>
</tr>
<tr class="t-dsc">
<td>
<div class="t-dsc-member-div">
<div><a href="cpp-string-multibyte-btowc.html"><span class="t-lines"><span>btowc</span></span></a></div>
</div>
</td>
<td>&#33509;&#21487;&#33021;&#65292;&#21017;&#21152;&#23485;&#21333;&#23383;&#33410;&#31364;&#23383;&#31526;&#20026;&#23485;&#23383;&#31526;<br />
<span class="t-mark">(&#20989;&#25968;)</span></td>
</tr>
</table>
</div>
<div class="visualClear"></div>
</div>
</div>
</div>
</body>
</html>