<!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.8.17"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>GpgFrontend Project: GpgFrontend::CharsetOperator Class 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="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> <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">GpgFrontend Project </div> <div id="projectbrief">A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.</div> </td> </tr> </tbody> </table> </div> <!-- end header part --> <!-- Generated by Doxygen 1.8.17 --> <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'); /* @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> </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"> /* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */ $(document).ready(function(){initNavTree('classGpgFrontend_1_1CharsetOperator.html',''); initResizable(); }); /* @license-end */ </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 Types</a> | <a href="#pub-static-methods">Static Public Member Functions</a> | <a href="classGpgFrontend_1_1CharsetOperator-members.html">List of all members</a> </div> <div class="headertitle"> <div class="title">GpgFrontend::CharsetOperator Class Reference</div> </div> </div><!--header--> <div class="contents"> <div class="dynheader"> Collaboration diagram for GpgFrontend::CharsetOperator:</div> <div class="dyncontent"> <div class="center"><img src="classGpgFrontend_1_1CharsetOperator__coll__graph.png" border="0" usemap="#GpgFrontend_1_1CharsetOperator_coll__map" alt="Collaboration graph"/></div> <map name="GpgFrontend_1_1CharsetOperator_coll__map" id="GpgFrontend_1_1CharsetOperator_coll__map"> <area shape="rect" title=" " alt="" coords="5,5,225,97"/> </map> </div> <table class="memberdecls"> <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a> Public Types</h2></td></tr> <tr class="memitem:a707198805867df0e92b2db162da0f044"><td class="memItemLeft" align="right" valign="top"><a id="a707198805867df0e92b2db162da0f044"></a> using </td><td class="memItemRight" valign="bottom"><b>CharsetInfo</b> = std::tuple< std::string, std::string, int ></td></tr> <tr class="separator:a707198805867df0e92b2db162da0f044"><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> Static Public Member Functions</h2></td></tr> <tr class="memitem:a5a444a0fbd508f6af6a56f4151c21c1f"><td class="memItemLeft" align="right" valign="top">static CharsetInfo </td><td class="memItemRight" valign="bottom"><a class="el" href="classGpgFrontend_1_1CharsetOperator.html#a5a444a0fbd508f6af6a56f4151c21c1f">Detect</a> (const std::string &buffer)</td></tr> <tr class="separator:a5a444a0fbd508f6af6a56f4151c21c1f"><td class="memSeparator" colspan="2"> </td></tr> <tr class="memitem:a5ec0034ec02c373471b9b23fa988829b"><td class="memItemLeft" align="right" valign="top"><a id="a5ec0034ec02c373471b9b23fa988829b"></a> static bool </td><td class="memItemRight" valign="bottom"><b>Convert2Utf8</b> (const std::string &buffer, std::string &out_buffer, std::string from_charset_name)</td></tr> <tr class="separator:a5ec0034ec02c373471b9b23fa988829b"><td class="memSeparator" colspan="2"> </td></tr> </table> <h2 class="groupheader">Member Function Documentation</h2> <a id="a5a444a0fbd508f6af6a56f4151c21c1f"></a> <h2 class="memtitle"><span class="permalink"><a href="#a5a444a0fbd508f6af6a56f4151c21c1f">◆ </a></span>Detect()</h2> <div class="memitem"> <div class="memproto"> <table class="mlabels"> <tr> <td class="mlabels-left"> <table class="memname"> <tr> <td class="memname">GpgFrontend::CharsetOperator::CharsetInfo GpgFrontend::CharsetOperator::Detect </td> <td>(</td> <td class="paramtype">const std::string & </td> <td class="paramname"><em>buffer</em></td><td>)</td> <td></td> </tr> </table> </td> <td class="mlabels-right"> <span class="mlabels"><span class="mlabel">static</span></span> </td> </tr> </table> </div><div class="memdoc"> <p>Copyright (C) 2021 Saturneric</p> <p>This file is part of <a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a>.</p> <p><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a> is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.</p> <p><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a> is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.</p> <p>You should have received a copy of the GNU General Public License along with <a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a>. If not, see <a href="https://www.gnu.org/licenses/">https://www.gnu.org/licenses/</a>.</p> <p>The initial version of the source code is inherited from the gpg4usb project, which is under GPL-3.0-or-later.</p> <p>All the source code of <a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a> was modified and released by Saturneric<a href="#" onclick="location.href='mai'+'lto:'+'eri'+'c@'+'bkt'+'us'+'.co'+'m'; return false;">eric@<span style="display: none;">.nosp@m.</span>bktu<span style="display: none;">.nosp@m.</span>s.com</a> starting on May 12, 2021.</p> <p>SPDX-License-Identifier: GPL-3.0-or-later </p> <p class="reference">Referenced by <a class="el" href="classGpgFrontend_1_1UI_1_1PlainTextEditorPage.html#a14b7431a786ce59e98576e3680cb9a58">GpgFrontend::UI::PlainTextEditorPage::detect_encoding()</a>.</p> </div> </div> <hr/>The documentation for this class was generated from the following files:<ul> <li>src/core/function/<a class="el" href="CharsetOperator_8h_source.html">CharsetOperator.h</a></li> <li>src/core/function/CharsetOperator.cpp</li> </ul> </div><!-- contents --> </div><!-- doc-content --> <!-- start footer part --> <div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> <ul> <li class="navelem"><a class="el" href="namespaceGpgFrontend.html">GpgFrontend</a></li><li class="navelem"><a class="el" href="classGpgFrontend_1_1CharsetOperator.html">CharsetOperator</a></li> <li class="footer">Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li> </ul> </div> </body> </html>