1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
|
<!-- HTML header for doxygen 1.8.7-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>RapidJSON: rapidjson::UTF16< CharType > 模板结构体 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygenextra.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="topbanner"><a href="https://github.com/Tencent/rapidjson" title="RapidJSON GitHub"><i class="githublogo"></i></a></div>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="搜索" accesskey="S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
</span><span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
</span>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('structrapidjson_1_1_u_t_f16.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#pub-types">Public 类型</a> |
<a href="#pub-methods">Public 成员函数</a> |
<a href="#pub-static-methods">静态 Public 成员函数</a> |
<a href="structrapidjson_1_1_u_t_f16-members.html">所有成员列表</a> </div>
<div class="headertitle">
<div class="title">rapidjson::UTF16< CharType > 模板结构体 参考</div> </div>
</div><!--header-->
<div class="contents">
<p>UTF-16 encoding.
<a href="structrapidjson_1_1_u_t_f16.html#details">更多...</a></p>
<p><code>#include <<a class="el" href="encodings_8h_source.html">encodings.h</a>></code></p>
<div class="dynheader">
类 rapidjson::UTF16< CharType > 继承关系图:</div>
<div class="dyncontent">
<div class="center">
<img src="structrapidjson_1_1_u_t_f16.png" usemap="#rapidjson::UTF16_3C_20CharType_20_3E_map" alt=""/>
<map id="rapidjson::UTF16_3C_20CharType_20_3E_map" name="rapidjson::UTF16_3C_20CharType_20_3E_map">
<area href="structrapidjson_1_1_u_t_f16_b_e.html" title="UTF-16 big endian encoding. " alt="rapidjson::UTF16BE< CharType >" shape="rect" coords="0,56,203,80"/>
<area href="structrapidjson_1_1_u_t_f16_l_e.html" title="UTF-16 little endian encoding. " alt="rapidjson::UTF16LE< CharType >" shape="rect" coords="213,56,416,80"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a439e1dc4701cc7ae34d257ce76f5dc37"><td class="memItemLeft" align="right" valign="top"><a id="a439e1dc4701cc7ae34d257ce76f5dc37"></a>enum  </td><td class="memItemRight" valign="bottom">{ <b>supportUnicode</b> = 1
}</td></tr>
<tr class="separator:a439e1dc4701cc7ae34d257ce76f5dc37"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acb67f53501b796b55996352a6080da54"><td class="memItemLeft" align="right" valign="top"><a id="acb67f53501b796b55996352a6080da54"></a>
typedef CharType </td><td class="memItemRight" valign="bottom"><b>Ch</b></td></tr>
<tr class="separator:acb67f53501b796b55996352a6080da54"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a97a1141d35742ceeedc0da87538b8790"><td class="memItemLeft" align="right" valign="top"><a id="a97a1141d35742ceeedc0da87538b8790"></a>
 </td><td class="memItemRight" valign="bottom"><b>RAPIDJSON_STATIC_ASSERT</b> (sizeof(Ch) >=2)</td></tr>
<tr class="separator:a97a1141d35742ceeedc0da87538b8790"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a7f15344b8f35e341a723fa25d22e59d2"><td class="memTemplParams" colspan="2"><a id="a7f15344b8f35e341a723fa25d22e59d2"></a>
template<typename OutputStream > </td></tr>
<tr class="memitem:a7f15344b8f35e341a723fa25d22e59d2"><td class="memTemplItemLeft" align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><b>Encode</b> (OutputStream &os, unsigned codepoint)</td></tr>
<tr class="separator:a7f15344b8f35e341a723fa25d22e59d2"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:aac8a8cdff51c647b3c3a9d7df5c2ce62"><td class="memTemplParams" colspan="2"><a id="aac8a8cdff51c647b3c3a9d7df5c2ce62"></a>
template<typename OutputStream > </td></tr>
<tr class="memitem:aac8a8cdff51c647b3c3a9d7df5c2ce62"><td class="memTemplItemLeft" align="right" valign="top">static void </td><td class="memTemplItemRight" valign="bottom"><b>EncodeUnsafe</b> (OutputStream &os, unsigned codepoint)</td></tr>
<tr class="separator:aac8a8cdff51c647b3c3a9d7df5c2ce62"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2665394536a32c9ea76d0cc7184e52fe"><td class="memTemplParams" colspan="2"><a id="a2665394536a32c9ea76d0cc7184e52fe"></a>
template<typename InputStream > </td></tr>
<tr class="memitem:a2665394536a32c9ea76d0cc7184e52fe"><td class="memTemplItemLeft" align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><b>Decode</b> (InputStream &is, unsigned *codepoint)</td></tr>
<tr class="separator:a2665394536a32c9ea76d0cc7184e52fe"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9bfa2e9096b1596e0b3a2cc2be6c9477"><td class="memTemplParams" colspan="2"><a id="a9bfa2e9096b1596e0b3a2cc2be6c9477"></a>
template<typename InputStream , typename OutputStream > </td></tr>
<tr class="memitem:a9bfa2e9096b1596e0b3a2cc2be6c9477"><td class="memTemplItemLeft" align="right" valign="top">static bool </td><td class="memTemplItemRight" valign="bottom"><b>Validate</b> (InputStream &is, OutputStream &os)</td></tr>
<tr class="separator:a9bfa2e9096b1596e0b3a2cc2be6c9477"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template<typename CharType = wchar_t><br />
struct rapidjson::UTF16< CharType ></h3>
<p>UTF-16 encoding. </p>
<p><a href="http://en.wikipedia.org/wiki/UTF-16">http://en.wikipedia.org/wiki/UTF-16</a> <a href="http://tools.ietf.org/html/rfc2781">http://tools.ietf.org/html/rfc2781</a> </p><dl class="tparams"><dt>模板参数</dt><dd>
<table class="tparams">
<tr><td class="paramname">CharType</td><td>Type for storing 16-bit UTF-16 data. Default is wchar_t. C++11 may use char16_t instead. </td></tr>
</table>
</dd>
</dl>
<dl class="section note"><dt>注解</dt><dd>implements <a class="el" href="classrapidjson_1_1_encoding.html" title="Concept for encoding of Unicode characters. ">Encoding</a> concept</dd>
<dd>
For in-memory access, no need to concern endianness. The code units and code points are represented by CPU's endianness. For streaming, use <a class="el" href="structrapidjson_1_1_u_t_f16_l_e.html" title="UTF-16 little endian encoding. ">UTF16LE</a> and <a class="el" href="structrapidjson_1_1_u_t_f16_b_e.html" title="UTF-16 big endian encoding. ">UTF16BE</a>, which handle endianness. </dd></dl>
</div><hr/>该结构体的文档由以下文件生成:<ul>
<li>include/rapidjson/<a class="el" href="encodings_8h_source.html">encodings.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.7-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="namespacerapidjson.html">rapidjson</a></li><li class="navelem"><a class="el" href="structrapidjson_1_1_u_t_f16.html">UTF16</a></li>
</ul>
</div>
</body>
</html>
|