863 lines
40 KiB
HTML
863 lines
40 KiB
HTML
<!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.6"/>
|
|
<title>Boost.Locale: Character conversion functions</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="navtree.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(initResizable);
|
|
$(window).load(resizeHeight);
|
|
</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="projectlogo"><img alt="Logo" src="boost-small.png"/></td>
|
|
<td style="padding-left: 0.5em;">
|
|
<div id="projectname">Boost.Locale
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.8.6 -->
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
|
|
<li><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</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">
|
|
$(document).ready(function(){initNavTree('group__codepage.html','');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#nested-classes">Classes</a> |
|
|
<a href="#enum-members">Enumerations</a> |
|
|
<a href="#func-members">Functions</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Character conversion functions</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
|
|
Classes</h2></td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html">boost::locale::conv::conversion_error</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The excepton that is thrown in case of conversion error. <a href="classboost_1_1locale_1_1conv_1_1conversion__error.html#details">More...</a><br/></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html">boost::locale::conv::invalid_charset_error</a></td></tr>
|
|
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">This exception is thrown in case of use of unsupported or invalid character set. <a href="classboost_1_1locale_1_1conv_1_1invalid__charset__error.html#details">More...</a><br/></td></tr>
|
|
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
|
|
Enumerations</h2></td></tr>
|
|
<tr class="memitem:ga8e3c5a274f57107ec5745e227c26ba84"><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga8e3c5a274f57107ec5745e227c26ba84">boost::locale::conv::method_type</a> { <a class="el" href="group__codepage.html#gga8e3c5a274f57107ec5745e227c26ba84ae9b554a2955deddf714757788819edf9">boost::locale::conv::skip</a> = 0,
|
|
<a class="el" href="group__codepage.html#gga8e3c5a274f57107ec5745e227c26ba84aab08f9ee241c405ef40bd3cedb43b383">boost::locale::conv::stop</a> = 1,
|
|
<a class="el" href="group__codepage.html#gga8e3c5a274f57107ec5745e227c26ba84adcdc34a57dd2a3ca917f73c13f18b559">boost::locale::conv::default_method</a> = skip
|
|
}</td></tr>
|
|
<tr class="separator:ga8e3c5a274f57107ec5745e227c26ba84"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table><table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
|
|
Functions</h2></td></tr>
|
|
<tr class="memitem:ga2ca59a735ca28c9d5103e37ef2373ca1"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga2ca59a735ca28c9d5103e37ef2373ca1"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga2ca59a735ca28c9d5103e37ef2373ca1">boost::locale::conv::to_utf</a> (char const *begin, char const *end, std::string const &charset, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga2ca59a735ca28c9d5103e37ef2373ca1"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaef8fb7771dce60511d081770547a4139"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:gaef8fb7771dce60511d081770547a4139"><td class="memTemplItemLeft" align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#gaef8fb7771dce60511d081770547a4139">boost::locale::conv::from_utf</a> (CharType const *begin, CharType const *end, std::string const &charset, method_type how=default_method)</td></tr>
|
|
<tr class="separator:gaef8fb7771dce60511d081770547a4139"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga5ae3d72f015dc847ddfd688a0a40ff66"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga5ae3d72f015dc847ddfd688a0a40ff66"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga5ae3d72f015dc847ddfd688a0a40ff66">boost::locale::conv::to_utf</a> (char const *begin, char const *end, std::locale const &loc, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga5ae3d72f015dc847ddfd688a0a40ff66"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga0eee2960f0d6d15491c5b95dd3054d9a"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga0eee2960f0d6d15491c5b95dd3054d9a"><td class="memTemplItemLeft" align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga0eee2960f0d6d15491c5b95dd3054d9a">boost::locale::conv::from_utf</a> (CharType const *begin, CharType const *end, std::locale const &loc, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga0eee2960f0d6d15491c5b95dd3054d9a"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga25227e4e43f6c695dac13844a94741ea"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga25227e4e43f6c695dac13844a94741ea"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga25227e4e43f6c695dac13844a94741ea">boost::locale::conv::to_utf</a> (std::string const &text, std::string const &charset, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga25227e4e43f6c695dac13844a94741ea"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga17c2c9d8659281848db73822fcc38092"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga17c2c9d8659281848db73822fcc38092"><td class="memTemplItemLeft" align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga17c2c9d8659281848db73822fcc38092">boost::locale::conv::from_utf</a> (std::basic_string< CharType > const &text, std::string const &charset, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga17c2c9d8659281848db73822fcc38092"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2be733c3e2028aa43e4b35100bdb1322"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga2be733c3e2028aa43e4b35100bdb1322"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga2be733c3e2028aa43e4b35100bdb1322">boost::locale::conv::to_utf</a> (char const *text, std::string const &charset, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga2be733c3e2028aa43e4b35100bdb1322"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gab784637ee28adb9538b8002dadf0b273"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:gab784637ee28adb9538b8002dadf0b273"><td class="memTemplItemLeft" align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#gab784637ee28adb9538b8002dadf0b273">boost::locale::conv::from_utf</a> (CharType const *text, std::string const &charset, method_type how=default_method)</td></tr>
|
|
<tr class="separator:gab784637ee28adb9538b8002dadf0b273"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga4c22a2bcb97338274752f95e2d265442"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga4c22a2bcb97338274752f95e2d265442"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga4c22a2bcb97338274752f95e2d265442">boost::locale::conv::to_utf</a> (std::string const &text, std::locale const &loc, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga4c22a2bcb97338274752f95e2d265442"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga85cc81b352a88e12191926b95eb39aeb"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga85cc81b352a88e12191926b95eb39aeb"><td class="memTemplItemLeft" align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga85cc81b352a88e12191926b95eb39aeb">boost::locale::conv::from_utf</a> (std::basic_string< CharType > const &text, std::locale const &loc, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga85cc81b352a88e12191926b95eb39aeb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gac298fcddef144915332f031f4565feb0"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:gac298fcddef144915332f031f4565feb0"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharType > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#gac298fcddef144915332f031f4565feb0">boost::locale::conv::to_utf</a> (char const *text, std::locale const &loc, method_type how=default_method)</td></tr>
|
|
<tr class="separator:gac298fcddef144915332f031f4565feb0"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga2a41ad85803d97f7e1906d5c0561eefa"><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr>
|
|
<tr class="memitem:ga2a41ad85803d97f7e1906d5c0561eefa"><td class="memTemplItemLeft" align="right" valign="top">std::string </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga2a41ad85803d97f7e1906d5c0561eefa">boost::locale::conv::from_utf</a> (CharType const *text, std::locale const &loc, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga2a41ad85803d97f7e1906d5c0561eefa"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga7eda9058b8cbac9b05886bcc894faeff"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga7eda9058b8cbac9b05886bcc894faeff">boost::locale::conv::between</a> (char const *begin, char const *end, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga7eda9058b8cbac9b05886bcc894faeff"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga612607a8616add30cf21ceb086e664d5"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga612607a8616add30cf21ceb086e664d5">boost::locale::conv::between</a> (char const *text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga612607a8616add30cf21ceb086e664d5"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gad7f6c33cf95749ab48174ccafddf7b62"><td class="memItemLeft" align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="group__codepage.html#gad7f6c33cf95749ab48174ccafddf7b62">boost::locale::conv::between</a> (std::string const &text, std::string const &to_encoding, std::string const &from_encoding, method_type how=default_method)</td></tr>
|
|
<tr class="separator:gad7f6c33cf95749ab48174ccafddf7b62"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaf0ad39959911b000706e0538ec059d44"><td class="memTemplParams" colspan="2">template<typename CharOut , typename CharIn > </td></tr>
|
|
<tr class="memitem:gaf0ad39959911b000706e0538ec059d44"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharOut > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#gaf0ad39959911b000706e0538ec059d44">boost::locale::conv::utf_to_utf</a> (CharIn const *begin, CharIn const *end, method_type how=default_method)</td></tr>
|
|
<tr class="separator:gaf0ad39959911b000706e0538ec059d44"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:gaa4de44e37cbe5ec4a4b79e1d9bbaf4a7"><td class="memTemplParams" colspan="2">template<typename CharOut , typename CharIn > </td></tr>
|
|
<tr class="memitem:gaa4de44e37cbe5ec4a4b79e1d9bbaf4a7"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharOut > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#gaa4de44e37cbe5ec4a4b79e1d9bbaf4a7">boost::locale::conv::utf_to_utf</a> (CharIn const *str, method_type how=default_method)</td></tr>
|
|
<tr class="separator:gaa4de44e37cbe5ec4a4b79e1d9bbaf4a7"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ga1951228e7f528a20e40258d73cf17f5c"><td class="memTemplParams" colspan="2">template<typename CharOut , typename CharIn > </td></tr>
|
|
<tr class="memitem:ga1951228e7f528a20e40258d73cf17f5c"><td class="memTemplItemLeft" align="right" valign="top">std::basic_string< CharOut > </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__codepage.html#ga1951228e7f528a20e40258d73cf17f5c">boost::locale::conv::utf_to_utf</a> (std::basic_string< CharIn > const &str, method_type how=default_method)</td></tr>
|
|
<tr class="separator:ga1951228e7f528a20e40258d73cf17f5c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<h2 class="groupheader">Enumeration Type Documentation</h2>
|
|
<a class="anchor" id="ga8e3c5a274f57107ec5745e227c26ba84"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">enum <a class="el" href="group__codepage.html#ga8e3c5a274f57107ec5745e227c26ba84">boost::locale::conv::method_type</a></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>enum that defines conversion policy </p>
|
|
<table class="fieldtable">
|
|
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="gga8e3c5a274f57107ec5745e227c26ba84ae9b554a2955deddf714757788819edf9"></a>skip</em> </td><td class="fielddoc">
|
|
<p>Skip illegal/unconvertable characters. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><em><a class="anchor" id="gga8e3c5a274f57107ec5745e227c26ba84aab08f9ee241c405ef40bd3cedb43b383"></a>stop</em> </td><td class="fielddoc">
|
|
<p>Stop conversion and throw <a class="el" href="classboost_1_1locale_1_1conv_1_1conversion__error.html" title="The excepton that is thrown in case of conversion error. ">conversion_error</a>. </p>
|
|
</td></tr>
|
|
<tr><td class="fieldname"><em><a class="anchor" id="gga8e3c5a274f57107ec5745e227c26ba84adcdc34a57dd2a3ca917f73c13f18b559"></a>default_method</em> </td><td class="fielddoc">
|
|
<p>Default method - skip. </p>
|
|
</td></tr>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Function Documentation</h2>
|
|
<a class="anchor" id="ga7eda9058b8cbac9b05886bcc894faeff"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::between </td>
|
|
<td>(</td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>end</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>to_encoding</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>from_encoding</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a text in range [begin,end) to <em>to_encoding</em> from <em>from_encoding</em> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga612607a8616add30cf21ceb086e664d5"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::between </td>
|
|
<td>(</td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>to_encoding</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>from_encoding</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> to <em>to_encoding</em> from <em>from_encoding</em> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gad7f6c33cf95749ab48174ccafddf7b62"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::between </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>to_encoding</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>from_encoding</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
<td class="mlabels-right">
|
|
<span class="mlabels"><span class="mlabel">inline</span></span> </td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> to <em>to_encoding</em> from <em>from_encoding</em> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaef8fb7771dce60511d081770547a4139"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::from_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">CharType const * </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">CharType const * </td>
|
|
<td class="paramname"><em>end</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>charset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>convert UTF text in range [begin,end) to a text encoded with <em>charset</em> according to policy <em>how</em> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga0eee2960f0d6d15491c5b95dd3054d9a"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::from_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">CharType const * </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">CharType const * </td>
|
|
<td class="paramname"><em>end</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::locale const & </td>
|
|
<td class="paramname"><em>loc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>convert UTF text in range [begin,end) to a text encoded according to locale <em>loc</em> according to policy <em>how</em> </p>
|
|
<dl class="section note"><dt>Note</dt><dd>throws std::bad_cast if the loc does not have <a class="el" href="classboost_1_1locale_1_1info.html">info</a> facet installed </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga17c2c9d8659281848db73822fcc38092"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::from_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::basic_string< CharType > const & </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>charset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> from <em>charset</em> to UTF string </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gab784637ee28adb9538b8002dadf0b273"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::from_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">CharType const * </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>charset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> from UTF to <em>charset</em> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga85cc81b352a88e12191926b95eb39aeb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::from_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::basic_string< CharType > const & </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::locale const & </td>
|
|
<td class="paramname"><em>loc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> in UTF to locale encoding given by <em>loc</em> </p>
|
|
<dl class="section note"><dt>Note</dt><dd>throws std::bad_cast if the loc does not have <a class="el" href="classboost_1_1locale_1_1info.html">info</a> facet installed </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga2a41ad85803d97f7e1906d5c0561eefa"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::string boost::locale::conv::from_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">CharType const * </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::locale const & </td>
|
|
<td class="paramname"><em>loc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> in UTF to locale encoding given by <em>loc</em> </p>
|
|
<dl class="section note"><dt>Note</dt><dd>throws std::bad_cast if the loc does not have <a class="el" href="classboost_1_1locale_1_1info.html">info</a> facet installed </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga2ca59a735ca28c9d5103e37ef2373ca1"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharType> boost::locale::conv::to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>end</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>charset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>convert string to UTF string from text in range [begin,end) encoded with <em>charset</em> according to policy <em>how</em> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga5ae3d72f015dc847ddfd688a0a40ff66"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharType> boost::locale::conv::to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>end</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::locale const & </td>
|
|
<td class="paramname"><em>loc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>convert string to UTF string from text in range [begin,end) encoded according to locale <em>loc</em> according to policy <em>how</em> </p>
|
|
<dl class="section note"><dt>Note</dt><dd>throws std::bad_cast if the loc does not have <a class="el" href="classboost_1_1locale_1_1info.html">info</a> facet installed </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga25227e4e43f6c695dac13844a94741ea"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharType> boost::locale::conv::to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>charset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>convert a string <em>text</em> encoded with <em>charset</em> to UTF string </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga2be733c3e2028aa43e4b35100bdb1322"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharType> boost::locale::conv::to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>charset</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> from <em>charset</em> to UTF string </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga4c22a2bcb97338274752f95e2d265442"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharType> boost::locale::conv::to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::locale const & </td>
|
|
<td class="paramname"><em>loc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> in locale encoding given by <em>loc</em> to UTF</p>
|
|
<dl class="section note"><dt>Note</dt><dd>throws std::bad_cast if the loc does not have <a class="el" href="classboost_1_1locale_1_1info.html">info</a> facet installed </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gac298fcddef144915332f031f4565feb0"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharType > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharType> boost::locale::conv::to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">char const * </td>
|
|
<td class="paramname"><em>text</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::locale const & </td>
|
|
<td class="paramname"><em>loc</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a <em>text</em> in locale encoding given by <em>loc</em> to UTF</p>
|
|
<dl class="section note"><dt>Note</dt><dd>throws std::bad_cast if the loc does not have <a class="el" href="classboost_1_1locale_1_1info.html">info</a> facet installed </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaf0ad39959911b000706e0538ec059d44"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharOut , typename CharIn > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharOut> boost::locale::conv::utf_to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">CharIn const * </td>
|
|
<td class="paramname"><em>begin</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">CharIn const * </td>
|
|
<td class="paramname"><em>end</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a Unicode text in range [begin,end) to other Unicode encoding </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gaa4de44e37cbe5ec4a4b79e1d9bbaf4a7"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharOut , typename CharIn > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharOut> boost::locale::conv::utf_to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">CharIn const * </td>
|
|
<td class="paramname"><em>str</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a Unicode NUL terminated string <em>str</em> other Unicode encoding </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga1951228e7f528a20e40258d73cf17f5c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<div class="memtemplate">
|
|
template<typename CharOut , typename CharIn > </div>
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::basic_string<CharOut> boost::locale::conv::utf_to_utf </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::basic_string< CharIn > const & </td>
|
|
<td class="paramname"><em>str</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">method_type </td>
|
|
<td class="paramname"><em>how</em> = <code>default_method</code> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Convert a Unicode string <em>str</em> other Unicode encoding </p>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
</div><!-- doc-content -->
|
|
|
|
<li class="footer">
|
|
© Copyright 2009-2012 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0.
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|