1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <meta http-equiv=
"Content-Type" content=
"text/xhtml;charset=UTF-8"/>
5 <meta http-equiv=
"X-UA-Compatible" content=
"IE=9"/>
6 <meta name=
"generator" content=
"Doxygen 1.8.6"/>
7 <title>Boost.Locale: boost::locale::generator Class Reference
</title>
8 <link href=
"tabs.css" rel=
"stylesheet" type=
"text/css"/>
9 <script type=
"text/javascript" src=
"jquery.js"></script>
10 <script type=
"text/javascript" src=
"dynsections.js"></script>
11 <link href=
"navtree.css" rel=
"stylesheet" type=
"text/css"/>
12 <script type=
"text/javascript" src=
"resize.js"></script>
13 <script type=
"text/javascript" src=
"navtree.js"></script>
14 <script type=
"text/javascript">
15 $(document).ready(initResizable);
16 $(window).load(resizeHeight);
18 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css" />
21 <div id=
"top"><!-- do not remove this div, it is closed by doxygen! -->
23 <table cellspacing=
"0" cellpadding=
"0">
25 <tr style=
"height: 56px;">
26 <td id=
"projectlogo"><img alt=
"Logo" src=
"boost-small.png"/></td>
27 <td style=
"padding-left: 0.5em;">
28 <div id=
"projectname">Boost.Locale
35 <!-- end header part -->
36 <!-- Generated by Doxygen 1.8.6 -->
37 <div id=
"navrow1" class=
"tabs">
39 <li><a href=
"index.html"><span>Main
 Page
</span></a></li>
40 <li><a href=
"pages.html"><span>Related
 Pages
</span></a></li>
41 <li><a href=
"modules.html"><span>Modules
</span></a></li>
42 <li><a href=
"namespaces.html"><span>Namespaces
</span></a></li>
43 <li class=
"current"><a href=
"annotated.html"><span>Classes
</span></a></li>
44 <li><a href=
"files.html"><span>Files
</span></a></li>
45 <li><a href=
"examples.html"><span>Examples
</span></a></li>
48 <div id=
"navrow2" class=
"tabs2">
50 <li><a href=
"annotated.html"><span>Class
 List
</span></a></li>
51 <li><a href=
"hierarchy.html"><span>Class
 Hierarchy
</span></a></li>
52 <li><a href=
"functions.html"><span>Class
 Members
</span></a></li>
56 <div id=
"side-nav" class=
"ui-resizable side-nav-resizable">
58 <div id=
"nav-tree-contents">
59 <div id=
"nav-sync" class=
"sync"></div>
62 <div id=
"splitbar" style=
"-moz-user-select:none;"
63 class=
"ui-resizable-handle">
66 <script type=
"text/javascript">
67 $(document).ready(function(){initNavTree('classboost_1_1locale_1_1generator.html','');});
69 <div id=
"doc-content">
72 <a href=
"#pub-methods">Public Member Functions
</a> |
73 <a href=
"classboost_1_1locale_1_1generator-members.html">List of all members
</a> </div>
74 <div class=
"headertitle">
75 <div class=
"title">boost::locale::generator Class Reference
</div> </div>
77 <div class=
"contents">
79 <p>the major class used for locale generation
80 <a href=
"classboost_1_1locale_1_1generator.html#details">More...
</a></p>
82 <p><code>#include
<<a class=
"el" href=
"generator_8hpp_source.html">boost/locale/generator.hpp
</a>></code></p>
83 <table class=
"memberdecls">
84 <tr class=
"heading"><td colspan=
"2"><h2 class=
"groupheader"><a name=
"pub-methods"></a>
85 Public Member Functions
</h2></td></tr>
86 <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>
87 <tr class=
"separator:a25f1d8fbbab6558213991c99630e851c"><td class=
"memSeparator" colspan=
"2"> </td></tr>
88 <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>
89 <tr class=
"separator:a767403ea3f6259fd184a6e355caf62f2"><td class=
"memSeparator" colspan=
"2"> </td></tr>
90 <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>
91 <tr class=
"separator:ae3c095f074329954eb90bb80488c7f76"><td class=
"memSeparator" colspan=
"2"> </td></tr>
92 <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>
93 <tr class=
"separator:ad0aa601769d49ea79f354d1e1255cd64"><td class=
"memSeparator" colspan=
"2"> </td></tr>
94 <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>
95 <tr class=
"separator:ad5e01c555aa43b438f688dbc29725ab8"><td class=
"memSeparator" colspan=
"2"> </td></tr>
96 <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>
97 <tr class=
"separator:a78feb6e2caae5cc0b01a287cd48691cb"><td class=
"memSeparator" colspan=
"2"> </td></tr>
98 <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>
99 <tr class=
"separator:a15020562d16dbbe276325b0162d54565"><td class=
"memSeparator" colspan=
"2"> </td></tr>
100 <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>
101 <tr class=
"separator:a4804bc5c4a9adb74cffcc2bdac87da1d"><td class=
"memSeparator" colspan=
"2"> </td></tr>
102 <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>
103 <tr class=
"separator:ade4a0ae57dbe87dfc38aa945f063d3c4"><td class=
"memSeparator" colspan=
"2"> </td></tr>
104 <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>
105 <tr class=
"separator:a12823bbdb209690bfb77caa6404fd91b"><td class=
"memSeparator" colspan=
"2"> </td></tr>
106 <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>
107 <tr class=
"separator:ae6ef1ec096f219f4e6c092507e41fa35"><td class=
"memSeparator" colspan=
"2"> </td></tr>
108 <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>
109 <tr class=
"separator:a7b4458ef36df82bc9e359735c55203e8"><td class=
"memSeparator" colspan=
"2"> </td></tr>
110 <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>
111 <tr class=
"separator:ac2d152e2803cd96f4acc646943f2df51"><td class=
"memSeparator" colspan=
"2"> </td></tr>
112 <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>
113 <tr class=
"separator:aacfcd26484a830723a8a9f9d2e91a0e6"><td class=
"memSeparator" colspan=
"2"> </td></tr>
114 <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>
115 <tr class=
"separator:a9afb2b0791abbabd39c800e08d9c9717"><td class=
"memSeparator" colspan=
"2"> </td></tr>
116 <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>
117 <tr class=
"separator:ad9b74721ce3c5e1c39c7e9a4564e1e7b"><td class=
"memSeparator" colspan=
"2"> </td></tr>
118 <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>
119 <tr class=
"separator:a75ba62f2ae7daa5a2d6641e36e064ecb"><td class=
"memSeparator" colspan=
"2"> </td></tr>
120 <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>
121 <tr class=
"separator:aa98d7869660a1eb9b658b2cd4db495b3"><td class=
"memSeparator" colspan=
"2"> </td></tr>
122 <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>
123 <tr class=
"separator:acd80b3f2371c77f4f7e7dfe69ec670ab"><td class=
"memSeparator" colspan=
"2"> </td></tr>
124 <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>
125 <tr class=
"separator:ac0bbbb4aca466e59e82b63bcbf2efc8b"><td class=
"memSeparator" colspan=
"2"> </td></tr>
126 <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>
127 <tr class=
"separator:a1804390c65562fa66327152e9dd04c60"><td class=
"memSeparator" colspan=
"2"> </td></tr>
129 <a name=
"details" id=
"details"></a><h2 class=
"groupheader">Detailed Description
</h2>
130 <div class=
"textblock"><p>the major class used for locale generation
</p>
131 <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>
132 <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>
133 </dl></div><h2 class=
"groupheader">Constructor
& Destructor Documentation
</h2>
134 <a class=
"anchor" id=
"a25f1d8fbbab6558213991c99630e851c"></a>
135 <div class=
"memitem">
136 <div class=
"memproto">
137 <table class=
"memname">
139 <td class=
"memname">boost::locale::generator::generator
</td>
141 <td class=
"paramname"></td><td>)
</td>
145 </div><div class=
"memdoc">
146 <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>
150 <a class=
"anchor" id=
"a767403ea3f6259fd184a6e355caf62f2"></a>
151 <div class=
"memitem">
152 <div class=
"memproto">
153 <table class=
"memname">
155 <td class=
"memname">boost::locale::generator::generator
</td>
157 <td class=
"paramtype"><a class=
"el" href=
"classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager
</a> const
& </td>
158 <td class=
"paramname"></td><td>)
</td>
162 </div><div class=
"memdoc">
163 <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>
167 <h2 class=
"groupheader">Member Function Documentation
</h2>
168 <a class=
"anchor" id=
"a15020562d16dbbe276325b0162d54565"></a>
169 <div class=
"memitem">
170 <div class=
"memproto">
171 <table class=
"memname">
173 <td class=
"memname">void boost::locale::generator::add_messages_domain
</td>
175 <td class=
"paramtype">std::string const
& </td>
176 <td class=
"paramname"><em>domain
</em></td><td>)
</td>
180 </div><div class=
"memdoc">
181 <p>Add a new domain of messages that would be generated. It should be set in order to enable messages support.
</p>
182 <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>
183 <p>You can optionally specify the encoding of the keys in the sources by adding
"/encoding_name" For example blog/cp1255.
</p>
184 <p>If not defined all keys are assumed to be UTF-
8 encoded.
</p>
185 <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>
189 <a class=
"anchor" id=
"a12823bbdb209690bfb77caa6404fd91b"></a>
190 <div class=
"memitem">
191 <div class=
"memproto">
192 <table class=
"memname">
194 <td class=
"memname">void boost::locale::generator::add_messages_path
</td>
196 <td class=
"paramtype">std::string const
& </td>
197 <td class=
"paramname"><em>path
</em></td><td>)
</td>
201 </div><div class=
"memdoc">
202 <p>Add a search path where dictionaries are looked in.
</p>
203 <dl class=
"section note"><dt>Note
</dt><dd></dd></dl>
205 <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>
206 <li>Under POSIX platforms all paths passed as-is regardless of encoding as narrow encodings are the native encodings for POSIX platforms.
</li>
211 <a class=
"anchor" id=
"ae3c095f074329954eb90bb80488c7f76"></a>
212 <div class=
"memitem">
213 <div class=
"memproto">
214 <table class=
"memname">
216 <td class=
"memname">void boost::locale::generator::categories
</td>
218 <td class=
"paramtype"><a class=
"el" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type
</a> </td>
219 <td class=
"paramname"><em>cats
</em></td><td>)
</td>
223 </div><div class=
"memdoc">
224 <p>Set types of facets that should be generated, default all
</p>
228 <a class=
"anchor" id=
"ad0aa601769d49ea79f354d1e1255cd64"></a>
229 <div class=
"memitem">
230 <div class=
"memproto">
231 <table class=
"memname">
233 <td class=
"memname"><a class=
"el" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type
</a> boost::locale::generator::categories
</td>
235 <td class=
"paramname"></td><td>)
</td>
239 </div><div class=
"memdoc">
240 <p>Get types of facets that should be generated, default all
</p>
244 <a class=
"anchor" id=
"ad5e01c555aa43b438f688dbc29725ab8"></a>
245 <div class=
"memitem">
246 <div class=
"memproto">
247 <table class=
"memname">
249 <td class=
"memname">void boost::locale::generator::characters
</td>
251 <td class=
"paramtype"><a class=
"el" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type
</a> </td>
252 <td class=
"paramname"><em>chars
</em></td><td>)
</td>
256 </div><div class=
"memdoc">
257 <p>Set the characters type for which the facets should be generated, default all supported
</p>
261 <a class=
"anchor" id=
"a78feb6e2caae5cc0b01a287cd48691cb"></a>
262 <div class=
"memitem">
263 <div class=
"memproto">
264 <table class=
"memname">
266 <td class=
"memname"><a class=
"el" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type
</a> boost::locale::generator::characters
</td>
268 <td class=
"paramname"></td><td>)
</td>
272 </div><div class=
"memdoc">
273 <p>Get the characters type for which the facets should be generated, default all supported
</p>
277 <a class=
"anchor" id=
"a7b4458ef36df82bc9e359735c55203e8"></a>
278 <div class=
"memitem">
279 <div class=
"memproto">
280 <table class=
"memname">
282 <td class=
"memname">void boost::locale::generator::clear_cache
</td>
284 <td class=
"paramname"></td><td>)
</td>
288 </div><div class=
"memdoc">
289 <p>Remove all cached locales
</p>
293 <a class=
"anchor" id=
"ade4a0ae57dbe87dfc38aa945f063d3c4"></a>
294 <div class=
"memitem">
295 <div class=
"memproto">
296 <table class=
"memname">
298 <td class=
"memname">void boost::locale::generator::clear_domains
</td>
300 <td class=
"paramname"></td><td>)
</td>
304 </div><div class=
"memdoc">
305 <p>Remove all added domains from the list
</p>
309 <a class=
"anchor" id=
"a1804390c65562fa66327152e9dd04c60"></a>
310 <div class=
"memitem">
311 <div class=
"memproto">
312 <table class=
"memname">
314 <td class=
"memname">void boost::locale::generator::clear_options
</td>
316 <td class=
"paramname"></td><td>)
</td>
320 </div><div class=
"memdoc">
321 <p>Clear backend specific options
</p>
325 <a class=
"anchor" id=
"ae6ef1ec096f219f4e6c092507e41fa35"></a>
326 <div class=
"memitem">
327 <div class=
"memproto">
328 <table class=
"memname">
330 <td class=
"memname">void boost::locale::generator::clear_paths
</td>
332 <td class=
"paramname"></td><td>)
</td>
336 </div><div class=
"memdoc">
337 <p>Remove all added paths
</p>
341 <a class=
"anchor" id=
"a75ba62f2ae7daa5a2d6641e36e064ecb"></a>
342 <div class=
"memitem">
343 <div class=
"memproto">
344 <table class=
"memname">
346 <td class=
"memname">std::locale boost::locale::generator::generate
</td>
348 <td class=
"paramtype">std::string const
& </td>
349 <td class=
"paramname"><em>id
</em></td><td>)
</td>
353 </div><div class=
"memdoc">
354 <p>Generate a locale with id
<em>id
</em> </p>
358 <a class=
"anchor" id=
"aa98d7869660a1eb9b658b2cd4db495b3"></a>
359 <div class=
"memitem">
360 <div class=
"memproto">
361 <table class=
"memname">
363 <td class=
"memname">std::locale boost::locale::generator::generate
</td>
365 <td class=
"paramtype">std::locale const
& </td>
366 <td class=
"paramname"><em>base
</em>,
</td>
369 <td class=
"paramkey"></td>
371 <td class=
"paramtype">std::string const
& </td>
372 <td class=
"paramname"><em>id
</em> </td>
377 <td></td><td> const
</td>
380 </div><div class=
"memdoc">
381 <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>
385 <a class=
"anchor" id=
"ac2d152e2803cd96f4acc646943f2df51"></a>
386 <div class=
"memitem">
387 <div class=
"memproto">
388 <table class=
"memname">
390 <td class=
"memname">void boost::locale::generator::locale_cache_enabled
</td>
392 <td class=
"paramtype">bool
 </td>
393 <td class=
"paramname"><em>on
</em></td><td>)
</td>
397 </div><div class=
"memdoc">
398 <p>Turn locale caching ON
</p>
402 <a class=
"anchor" id=
"aacfcd26484a830723a8a9f9d2e91a0e6"></a>
403 <div class=
"memitem">
404 <div class=
"memproto">
405 <table class=
"memname">
407 <td class=
"memname">bool boost::locale::generator::locale_cache_enabled
</td>
409 <td class=
"paramname"></td><td>)
</td>
413 </div><div class=
"memdoc">
414 <p>Get locale cache option
</p>
418 <a class=
"anchor" id=
"acd80b3f2371c77f4f7e7dfe69ec670ab"></a>
419 <div class=
"memitem">
420 <div class=
"memproto">
421 <table class=
"mlabels">
423 <td class=
"mlabels-left">
424 <table class=
"memname">
426 <td class=
"memname">std::locale boost::locale::generator::operator()
</td>
428 <td class=
"paramtype">std::string const
& </td>
429 <td class=
"paramname"><em>id
</em></td><td>)
</td>
434 <td class=
"mlabels-right">
435 <span class=
"mlabels"><span class=
"mlabel">inline
</span></span> </td>
438 </div><div class=
"memdoc">
439 <p>Shortcut to generate(id)
</p>
443 <a class=
"anchor" id=
"a4804bc5c4a9adb74cffcc2bdac87da1d"></a>
444 <div class=
"memitem">
445 <div class=
"memproto">
446 <table class=
"memname">
448 <td class=
"memname">void boost::locale::generator::set_default_messages_domain
</td>
450 <td class=
"paramtype">std::string const
& </td>
451 <td class=
"paramname"><em>domain
</em></td><td>)
</td>
455 </div><div class=
"memdoc">
456 <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>
460 <a class=
"anchor" id=
"ac0bbbb4aca466e59e82b63bcbf2efc8b"></a>
461 <div class=
"memitem">
462 <div class=
"memproto">
463 <table class=
"memname">
465 <td class=
"memname">void boost::locale::generator::set_option
</td>
467 <td class=
"paramtype">std::string const
& </td>
468 <td class=
"paramname"><em>name
</em>,
</td>
471 <td class=
"paramkey"></td>
473 <td class=
"paramtype">std::string const
& </td>
474 <td class=
"paramname"><em>value
</em> </td>
482 </div><div class=
"memdoc">
483 <p>Set backend specific option
</p>
487 <a class=
"anchor" id=
"a9afb2b0791abbabd39c800e08d9c9717"></a>
488 <div class=
"memitem">
489 <div class=
"memproto">
490 <table class=
"memname">
492 <td class=
"memname">bool boost::locale::generator::use_ansi_encoding
</td>
494 <td class=
"paramname"></td><td>)
</td>
498 </div><div class=
"memdoc">
499 <p>Check if by default ANSI encoding is selected or UTF-
8 onces. The default is false.
</p>
503 <a class=
"anchor" id=
"ad9b74721ce3c5e1c39c7e9a4564e1e7b"></a>
504 <div class=
"memitem">
505 <div class=
"memproto">
506 <table class=
"memname">
508 <td class=
"memname">void boost::locale::generator::use_ansi_encoding
</td>
510 <td class=
"paramtype">bool
 </td>
511 <td class=
"paramname"><em>enc
</em></td><td>)
</td>
515 </div><div class=
"memdoc">
516 <p>Select ANSI encodings as default system encoding rather then UTF-
8 by default under Windows.
</p>
517 <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>
521 <hr/>The documentation for this class was generated from the following file:
<ul>
522 <li>boost/locale/
<a class=
"el" href=
"generator_8hpp_source.html">generator.hpp
</a></li>
524 </div><!-- contents -->
525 </div><!-- doc-content -->
528 © 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.