diff options
author | egor-tensin <Egor.Tensin@gmail.com> | 2023-07-04 00:23:27 +0000 |
---|---|---|
committer | egor-tensin <Egor.Tensin@gmail.com> | 2023-07-04 00:23:27 +0000 |
commit | f1ba68bd61d35f084bf42db123c6667e170b981d (patch) | |
tree | c1f9f226f14a2da261b9b100241090c6a1310f83 /utf8_8hpp.html | |
download | winapi-utf8-f1ba68bd61d35f084bf42db123c6667e170b981d.tar.gz winapi-utf8-f1ba68bd61d35f084bf42db123c6667e170b981d.zip |
Deploying to gh-pages from @ egor-tensin/winapi-utf8@5df6c58501383d82eff71e89e02957837258481c 🚀gh-pages
Diffstat (limited to 'utf8_8hpp.html')
-rw-r--r-- | utf8_8hpp.html | 303 |
1 files changed, 303 insertions, 0 deletions
diff --git a/utf8_8hpp.html b/utf8_8hpp.html new file mode 100644 index 0000000..47ce660 --- /dev/null +++ b/utf8_8hpp.html @@ -0,0 +1,303 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.9.1"/> +<meta name="viewport" content="width=device-width, initial-scale=1"/> +<title>winapi_utf8: include/winapi/utf8.hpp File Reference</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="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> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">winapi_utf8 + </div> + </td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.9.1 --> +<script type="text/javascript"> +/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ +var searchBox = new SearchBox("searchBox", "search",false,'Search','.html'); +/* @license-end */ +</script> +<script type="text/javascript" src="menudata.js"></script> +<script type="text/javascript" src="menu.js"></script> +<script type="text/javascript"> +/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ +$(function() { + initMenu('',true,false,'search.php','Search'); + $(document).ready(function() { init_search(); }); +}); +/* @license-end */</script> +<div id="main-nav"></div> +<!-- 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 id="nav-path" class="navpath"> + <ul> +<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_f1714771db42b7b5a0cd2ebe6e9736ed.html">winapi</a></li> </ul> +</div> +</div><!-- top --> +<div class="header"> + <div class="summary"> +<a href="#func-members">Functions</a> </div> + <div class="headertitle"> +<div class="title">utf8.hpp File Reference</div> </div> +</div><!--header--> +<div class="contents"> + +<p>UTF-8 <-> UTF-16 conversion functions. +<a href="#details">More...</a></p> + +<p><a href="utf8_8hpp_source.html">Go to the source code of this file.</a></p> +<table class="memberdecls"> +<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a> +Functions</h2></td></tr> +<tr class="memitem:a4b174d9e77015c16d3e3ab6ad95000b6"><td class="memItemLeft" align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8hpp.html#a4b174d9e77015c16d3e3ab6ad95000b6">winapi::widen</a> (const std::string &)</td></tr> +<tr class="separator:a4b174d9e77015c16d3e3ab6ad95000b6"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a4e76f5bf03006c3d073b189ac937c78f"><td class="memItemLeft" align="right" valign="top">std::wstring </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8hpp.html#a4e76f5bf03006c3d073b189ac937c78f">winapi::widen</a> (const void *src, std::size_t nb)</td></tr> +<tr class="separator:a4e76f5bf03006c3d073b189ac937c78f"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a2d216a9a3b2137fab320949f3759f73b"><td class="memTemplParams" colspan="2">template<typename T , typename Alloc = std::allocator<T>> </td></tr> +<tr class="memitem:a2d216a9a3b2137fab320949f3759f73b"><td class="memTemplItemLeft" align="right" valign="top">std::wstring </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="utf8_8hpp.html#a2d216a9a3b2137fab320949f3759f73b">winapi::widen</a> (const std::vector< T, Alloc > &src)</td></tr> +<tr class="separator:a2d216a9a3b2137fab320949f3759f73b"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:ae643a038e8194c1f0d14bdf9edcafcb7"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8hpp.html#ae643a038e8194c1f0d14bdf9edcafcb7">winapi::narrow</a> (const std::wstring &)</td></tr> +<tr class="separator:ae643a038e8194c1f0d14bdf9edcafcb7"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a2795e1f7649c053417f39b90d3f3480f"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8hpp.html#a2795e1f7649c053417f39b90d3f3480f">winapi::narrow</a> (const std::u16string &)</td></tr> +<tr class="separator:a2795e1f7649c053417f39b90d3f3480f"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:aeeef0f99233162d79ebedc551e87f0d0"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="utf8_8hpp.html#aeeef0f99233162d79ebedc551e87f0d0">winapi::narrow</a> (const void *src, std::size_t nb)</td></tr> +<tr class="separator:aeeef0f99233162d79ebedc551e87f0d0"><td class="memSeparator" colspan="2"> </td></tr> +<tr class="memitem:a46452a40203a7181d4f349ced5c0a584"><td class="memTemplParams" colspan="2">template<typename T , typename Alloc = std::allocator<T>> </td></tr> +<tr class="memitem:a46452a40203a7181d4f349ced5c0a584"><td class="memTemplItemLeft" align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="utf8_8hpp.html#a46452a40203a7181d4f349ced5c0a584">winapi::narrow</a> (const std::vector< T, Alloc > &src)</td></tr> +<tr class="separator:a46452a40203a7181d4f349ced5c0a584"><td class="memSeparator" colspan="2"> </td></tr> +</table> +<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2> +<div class="textblock"><p>UTF-8 <-> UTF-16 conversion functions. </p> + +<p class="definition">Definition in file <a class="el" href="utf8_8hpp_source.html">utf8.hpp</a>.</p> +</div><h2 class="groupheader">Function Documentation</h2> +<a id="a4b174d9e77015c16d3e3ab6ad95000b6"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a4b174d9e77015c16d3e3ab6ad95000b6">◆ </a></span>widen() <span class="overload">[1/3]</span></h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::wstring winapi::widen </td> + <td>(</td> + <td class="paramtype">const std::string & </td> + <td class="paramname"><em>src</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>Convert UTF-8 string to UTF-16. </p> + +<p class="definition">Definition at line <a class="el" href="convert_8cpp_source.html#l00099">99</a> of file <a class="el" href="convert_8cpp_source.html">convert.cpp</a>.</p> + +</div> +</div> +<a id="a4e76f5bf03006c3d073b189ac937c78f"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a4e76f5bf03006c3d073b189ac937c78f">◆ </a></span>widen() <span class="overload">[2/3]</span></h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::wstring winapi::widen </td> + <td>(</td> + <td class="paramtype">const void * </td> + <td class="paramname"><em>src</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">std::size_t </td> + <td class="paramname"><em>nb</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>Convert UTF-8 string to UTF-16. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">src</td><td>Memory address of a UTF-8 string. </td></tr> + <tr><td class="paramname">nb</td><td>String size (in bytes). </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="convert_8cpp_source.html#l00103">103</a> of file <a class="el" href="convert_8cpp_source.html">convert.cpp</a>.</p> + +</div> +</div> +<a id="a2d216a9a3b2137fab320949f3759f73b"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a2d216a9a3b2137fab320949f3759f73b">◆ </a></span>widen() <span class="overload">[3/3]</span></h2> + +<div class="memitem"> +<div class="memproto"> +<div class="memtemplate"> +template<typename T , typename Alloc = std::allocator<T>> </div> + <table class="memname"> + <tr> + <td class="memname">std::wstring winapi::widen </td> + <td>(</td> + <td class="paramtype">const std::vector< T, Alloc > & </td> + <td class="paramname"><em>src</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>Convert UTF-8 string to UTF-16. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">src</td><td>Buffer holding a UTF-8 string. </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="utf8_8hpp_source.html#l00038">38</a> of file <a class="el" href="utf8_8hpp_source.html">utf8.hpp</a>.</p> + +</div> +</div> +<a id="ae643a038e8194c1f0d14bdf9edcafcb7"></a> +<h2 class="memtitle"><span class="permalink"><a href="#ae643a038e8194c1f0d14bdf9edcafcb7">◆ </a></span>narrow() <span class="overload">[1/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::string winapi::narrow </td> + <td>(</td> + <td class="paramtype">const std::wstring & </td> + <td class="paramname"><em>src</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>Convert UTF-16 string to UTF-8. </p> + +<p class="definition">Definition at line <a class="el" href="convert_8cpp_source.html#l00128">128</a> of file <a class="el" href="convert_8cpp_source.html">convert.cpp</a>.</p> + +</div> +</div> +<a id="a2795e1f7649c053417f39b90d3f3480f"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a2795e1f7649c053417f39b90d3f3480f">◆ </a></span>narrow() <span class="overload">[2/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::string winapi::narrow </td> + <td>(</td> + <td class="paramtype">const std::u16string & </td> + <td class="paramname"><em>src</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>Convert UTF-16 string to UTF-8. </p> + +<p class="definition">Definition at line <a class="el" href="convert_8cpp_source.html#l00133">133</a> of file <a class="el" href="convert_8cpp_source.html">convert.cpp</a>.</p> + +</div> +</div> +<a id="aeeef0f99233162d79ebedc551e87f0d0"></a> +<h2 class="memtitle"><span class="permalink"><a href="#aeeef0f99233162d79ebedc551e87f0d0">◆ </a></span>narrow() <span class="overload">[3/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> + <table class="memname"> + <tr> + <td class="memname">std::string winapi::narrow </td> + <td>(</td> + <td class="paramtype">const void * </td> + <td class="paramname"><em>src</em>, </td> + </tr> + <tr> + <td class="paramkey"></td> + <td></td> + <td class="paramtype">std::size_t </td> + <td class="paramname"><em>nb</em> </td> + </tr> + <tr> + <td></td> + <td>)</td> + <td></td><td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>Convert UTF-16 string to UTF-8. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">src</td><td>Memory address of a UTF-16 string. </td></tr> + <tr><td class="paramname">nb</td><td>String size (in bytes). </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="convert_8cpp_source.html#l00137">137</a> of file <a class="el" href="convert_8cpp_source.html">convert.cpp</a>.</p> + +</div> +</div> +<a id="a46452a40203a7181d4f349ced5c0a584"></a> +<h2 class="memtitle"><span class="permalink"><a href="#a46452a40203a7181d4f349ced5c0a584">◆ </a></span>narrow() <span class="overload">[4/4]</span></h2> + +<div class="memitem"> +<div class="memproto"> +<div class="memtemplate"> +template<typename T , typename Alloc = std::allocator<T>> </div> + <table class="memname"> + <tr> + <td class="memname">std::string winapi::narrow </td> + <td>(</td> + <td class="paramtype">const std::vector< T, Alloc > & </td> + <td class="paramname"><em>src</em></td><td>)</td> + <td></td> + </tr> + </table> +</div><div class="memdoc"> +<p>Convert UTF-16 string to UTF-8. </p><dl class="params"><dt>Parameters</dt><dd> + <table class="params"> + <tr><td class="paramname">src</td><td>Buffer holding a UTF-16 string. </td></tr> + </table> + </dd> +</dl> + +<p class="definition">Definition at line <a class="el" href="utf8_8hpp_source.html#l00060">60</a> of file <a class="el" href="utf8_8hpp_source.html">utf8.hpp</a>.</p> + +</div> +</div> +</div><!-- contents --> +<!-- start footer part --> +<hr class="footer"/><address class="footer"><small> +Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 +</small></address> +</body> +</html> |