534 lines
27 KiB
HTML
534 lines
27 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: boost::locale::generator 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="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 class="current"><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 id="navrow2" class="tabs2">
|
|
<ul class="tablist">
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</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('classboost_1_1locale_1_1generator.html','');});
|
|
</script>
|
|
<div id="doc-content">
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#pub-methods">Public Member Functions</a> |
|
|
<a href="classboost_1_1locale_1_1generator-members.html">List of all members</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">boost::locale::generator Class Reference</div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
|
|
<p>the major class used for locale generation
|
|
<a href="classboost_1_1locale_1_1generator.html#details">More...</a></p>
|
|
|
|
<p><code>#include <<a class="el" href="generator_8hpp_source.html">boost/locale/generator.hpp</a>></code></p>
|
|
<table class="memberdecls">
|
|
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
|
|
Public Member Functions</h2></td></tr>
|
|
<tr class="memitem:a25f1d8fbbab6558213991c99630e851c"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a25f1d8fbbab6558213991c99630e851c">generator</a> ()</td></tr>
|
|
<tr class="separator:a25f1d8fbbab6558213991c99630e851c"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a767403ea3f6259fd184a6e355caf62f2"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a767403ea3f6259fd184a6e355caf62f2">generator</a> (<a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const &)</td></tr>
|
|
<tr class="separator:a767403ea3f6259fd184a6e355caf62f2"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae3c095f074329954eb90bb80488c7f76"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ae3c095f074329954eb90bb80488c7f76">categories</a> (<a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> cats)</td></tr>
|
|
<tr class="separator:ae3c095f074329954eb90bb80488c7f76"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad0aa601769d49ea79f354d1e1255cd64"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ad0aa601769d49ea79f354d1e1255cd64">categories</a> () const </td></tr>
|
|
<tr class="separator:ad0aa601769d49ea79f354d1e1255cd64"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad5e01c555aa43b438f688dbc29725ab8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ad5e01c555aa43b438f688dbc29725ab8">characters</a> (<a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a> chars)</td></tr>
|
|
<tr class="separator:ad5e01c555aa43b438f688dbc29725ab8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a78feb6e2caae5cc0b01a287cd48691cb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a78feb6e2caae5cc0b01a287cd48691cb">characters</a> () const </td></tr>
|
|
<tr class="separator:a78feb6e2caae5cc0b01a287cd48691cb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a15020562d16dbbe276325b0162d54565"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a15020562d16dbbe276325b0162d54565">add_messages_domain</a> (std::string const &domain)</td></tr>
|
|
<tr class="separator:a15020562d16dbbe276325b0162d54565"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a4804bc5c4a9adb74cffcc2bdac87da1d"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a4804bc5c4a9adb74cffcc2bdac87da1d">set_default_messages_domain</a> (std::string const &domain)</td></tr>
|
|
<tr class="separator:a4804bc5c4a9adb74cffcc2bdac87da1d"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ade4a0ae57dbe87dfc38aa945f063d3c4"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ade4a0ae57dbe87dfc38aa945f063d3c4">clear_domains</a> ()</td></tr>
|
|
<tr class="separator:ade4a0ae57dbe87dfc38aa945f063d3c4"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a12823bbdb209690bfb77caa6404fd91b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a12823bbdb209690bfb77caa6404fd91b">add_messages_path</a> (std::string const &path)</td></tr>
|
|
<tr class="separator:a12823bbdb209690bfb77caa6404fd91b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ae6ef1ec096f219f4e6c092507e41fa35"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ae6ef1ec096f219f4e6c092507e41fa35">clear_paths</a> ()</td></tr>
|
|
<tr class="separator:ae6ef1ec096f219f4e6c092507e41fa35"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a7b4458ef36df82bc9e359735c55203e8"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a7b4458ef36df82bc9e359735c55203e8">clear_cache</a> ()</td></tr>
|
|
<tr class="separator:a7b4458ef36df82bc9e359735c55203e8"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac2d152e2803cd96f4acc646943f2df51"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ac2d152e2803cd96f4acc646943f2df51">locale_cache_enabled</a> (bool on)</td></tr>
|
|
<tr class="separator:ac2d152e2803cd96f4acc646943f2df51"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aacfcd26484a830723a8a9f9d2e91a0e6"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#aacfcd26484a830723a8a9f9d2e91a0e6">locale_cache_enabled</a> () const </td></tr>
|
|
<tr class="separator:aacfcd26484a830723a8a9f9d2e91a0e6"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a9afb2b0791abbabd39c800e08d9c9717"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a9afb2b0791abbabd39c800e08d9c9717">use_ansi_encoding</a> () const </td></tr>
|
|
<tr class="separator:a9afb2b0791abbabd39c800e08d9c9717"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ad9b74721ce3c5e1c39c7e9a4564e1e7b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ad9b74721ce3c5e1c39c7e9a4564e1e7b">use_ansi_encoding</a> (bool enc)</td></tr>
|
|
<tr class="separator:ad9b74721ce3c5e1c39c7e9a4564e1e7b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a75ba62f2ae7daa5a2d6641e36e064ecb"><td class="memItemLeft" align="right" valign="top">std::locale </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a75ba62f2ae7daa5a2d6641e36e064ecb">generate</a> (std::string const &id) const </td></tr>
|
|
<tr class="separator:a75ba62f2ae7daa5a2d6641e36e064ecb"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:aa98d7869660a1eb9b658b2cd4db495b3"><td class="memItemLeft" align="right" valign="top">std::locale </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#aa98d7869660a1eb9b658b2cd4db495b3">generate</a> (std::locale const &base, std::string const &id) const </td></tr>
|
|
<tr class="separator:aa98d7869660a1eb9b658b2cd4db495b3"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:acd80b3f2371c77f4f7e7dfe69ec670ab"><td class="memItemLeft" align="right" valign="top">std::locale </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#acd80b3f2371c77f4f7e7dfe69ec670ab">operator()</a> (std::string const &id) const </td></tr>
|
|
<tr class="separator:acd80b3f2371c77f4f7e7dfe69ec670ab"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:ac0bbbb4aca466e59e82b63bcbf2efc8b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#ac0bbbb4aca466e59e82b63bcbf2efc8b">set_option</a> (std::string const &name, std::string const &value)</td></tr>
|
|
<tr class="separator:ac0bbbb4aca466e59e82b63bcbf2efc8b"><td class="memSeparator" colspan="2"> </td></tr>
|
|
<tr class="memitem:a1804390c65562fa66327152e9dd04c60"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classboost_1_1locale_1_1generator.html#a1804390c65562fa66327152e9dd04c60">clear_options</a> ()</td></tr>
|
|
<tr class="separator:a1804390c65562fa66327152e9dd04c60"><td class="memSeparator" colspan="2"> </td></tr>
|
|
</table>
|
|
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
|
|
<div class="textblock"><p>the major class used for locale generation </p>
|
|
<p>This class is used for specification of all parameters required for locale generation and caching. This class const member functions are thread safe if locale class implementation is thread safe. </p>
|
|
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="boundary_8cpp-example.html#_a0">boundary.cpp</a>, <a class="el" href="calendar_8cpp-example.html#_a0">calendar.cpp</a>, <a class="el" href="collate_8cpp-example.html#_a0">collate.cpp</a>, <a class="el" href="conversions_8cpp-example.html#_a0">conversions.cpp</a>, <a class="el" href="hello_8cpp-example.html#_a0">hello.cpp</a>, <a class="el" href="wboundary_8cpp-example.html#_a0">wboundary.cpp</a>, <a class="el" href="wconversions_8cpp-example.html#_a0">wconversions.cpp</a>, and <a class="el" href="whello_8cpp-example.html#_a0">whello.cpp</a>.</dd>
|
|
</dl></div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
|
|
<a class="anchor" id="a25f1d8fbbab6558213991c99630e851c"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">boost::locale::generator::generator </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Create new generator using global <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html" title="Localization backend manager is a class that holds various backend and allows creation of their combi...">localization_backend_manager</a> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a767403ea3f6259fd184a6e355caf62f2"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">boost::locale::generator::generator </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager</a> const & </td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Create new generator using specific <a class="el" href="classboost_1_1locale_1_1localization__backend__manager.html" title="Localization backend manager is a class that holds various backend and allows creation of their combi...">localization_backend_manager</a> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<h2 class="groupheader">Member Function Documentation</h2>
|
|
<a class="anchor" id="a15020562d16dbbe276325b0162d54565"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::add_messages_domain </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>domain</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Add a new domain of messages that would be generated. It should be set in order to enable messages support.</p>
|
|
<p>Messages domain has following format: "name" or "name/encoding" where name is the base name of the "mo" file where the catalog is stored without ".mo" extension. For example for file <code>/usr/share/locale/he/LC_MESSAGES/blog</code>.mo it would be <code>blog</code>.</p>
|
|
<p>You can optionally specify the encoding of the keys in the sources by adding "/encoding_name" For example blog/cp1255.</p>
|
|
<p>If not defined all keys are assumed to be UTF-8 encoded.</p>
|
|
<dl class="section note"><dt>Note</dt><dd>When you select a domain for the program using dgettext or message API, you do not specify the encoding part. So for example if the provided domain name was "blog/windows-1255" then for translation you should use dgettext("blog","Hello") </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a12823bbdb209690bfb77caa6404fd91b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::add_messages_path </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>path</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Add a search path where dictionaries are looked in.</p>
|
|
<dl class="section note"><dt>Note</dt><dd></dd></dl>
|
|
<ul>
|
|
<li>Under the Windows platform the path is treated as a path in the locale's encoding so if you create locale "en_US.windows-1251" then path would be treated as cp1255, and if it is en_US.UTF-8 it is treated as UTF-8. File name is always opened with a wide file name as wide file names are the native file name on Windows.</li>
|
|
<li>Under POSIX platforms all paths passed as-is regardless of encoding as narrow encodings are the native encodings for POSIX platforms. </li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae3c095f074329954eb90bb80488c7f76"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::categories </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> </td>
|
|
<td class="paramname"><em>cats</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Set types of facets that should be generated, default all </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad0aa601769d49ea79f354d1e1255cd64"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type</a> boost::locale::generator::categories </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Get types of facets that should be generated, default all </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad5e01c555aa43b438f688dbc29725ab8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::characters </td>
|
|
<td>(</td>
|
|
<td class="paramtype"><a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a> </td>
|
|
<td class="paramname"><em>chars</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Set the characters type for which the facets should be generated, default all supported </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a78feb6e2caae5cc0b01a287cd48691cb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type</a> boost::locale::generator::characters </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Get the characters type for which the facets should be generated, default all supported </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a7b4458ef36df82bc9e359735c55203e8"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::clear_cache </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Remove all cached locales </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ade4a0ae57dbe87dfc38aa945f063d3c4"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::clear_domains </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Remove all added domains from the list </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a1804390c65562fa66327152e9dd04c60"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::clear_options </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Clear backend specific options </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ae6ef1ec096f219f4e6c092507e41fa35"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::clear_paths </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Remove all added paths </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a75ba62f2ae7daa5a2d6641e36e064ecb"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::locale boost::locale::generator::generate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>id</em></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Generate a locale with id <em>id</em> </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aa98d7869660a1eb9b658b2cd4db495b3"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::locale boost::locale::generator::generate </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::locale const & </td>
|
|
<td class="paramname"><em>base</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>id</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Generate a locale with id <em>id</em>. Use <em>base</em> as a locale to which all facets are added, instead of std::locale::classic(). </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac2d152e2803cd96f4acc646943f2df51"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::locale_cache_enabled </td>
|
|
<td>(</td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>on</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Turn locale caching ON </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="aacfcd26484a830723a8a9f9d2e91a0e6"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool boost::locale::generator::locale_cache_enabled </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Get locale cache option </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="acd80b3f2371c77f4f7e7dfe69ec670ab"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="mlabels">
|
|
<tr>
|
|
<td class="mlabels-left">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">std::locale boost::locale::generator::operator() </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>id</em></td><td>)</td>
|
|
<td> const</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>Shortcut to generate(id) </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a4804bc5c4a9adb74cffcc2bdac87da1d"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::set_default_messages_domain </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>domain</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Set default message domain. If this member was not called, the first added messages domain is used. If the domain <em>domain</em> is not added yet it is added. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac0bbbb4aca466e59e82b63bcbf2efc8b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::set_option </td>
|
|
<td>(</td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>name</em>, </td>
|
|
</tr>
|
|
<tr>
|
|
<td class="paramkey"></td>
|
|
<td></td>
|
|
<td class="paramtype">std::string const & </td>
|
|
<td class="paramname"><em>value</em> </td>
|
|
</tr>
|
|
<tr>
|
|
<td></td>
|
|
<td>)</td>
|
|
<td></td><td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Set backend specific option </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a9afb2b0791abbabd39c800e08d9c9717"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">bool boost::locale::generator::use_ansi_encoding </td>
|
|
<td>(</td>
|
|
<td class="paramname"></td><td>)</td>
|
|
<td> const</td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Check if by default ANSI encoding is selected or UTF-8 onces. The default is false. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ad9b74721ce3c5e1c39c7e9a4564e1e7b"></a>
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void boost::locale::generator::use_ansi_encoding </td>
|
|
<td>(</td>
|
|
<td class="paramtype">bool </td>
|
|
<td class="paramname"><em>enc</em></td><td>)</td>
|
|
<td></td>
|
|
</tr>
|
|
</table>
|
|
</div><div class="memdoc">
|
|
<p>Select ANSI encodings as default system encoding rather then UTF-8 by default under Windows.</p>
|
|
<p>The default is the most portable and most powerful encoding, UTF-8, but the user can select "system" one if dealing with legacy applications </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this class was generated from the following file:<ul>
|
|
<li>boost/locale/<a class="el" href="generator_8hpp_source.html">generator.hpp</a></li>
|
|
</ul>
|
|
</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>
|