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.hpp Source File
</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><a href=
"annotated.html"><span>Classes
</span></a></li>
44 <li class=
"current"><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=
"files.html"><span>File
 List
</span></a></li>
54 <div id=
"side-nav" class=
"ui-resizable side-nav-resizable">
56 <div id=
"nav-tree-contents">
57 <div id=
"nav-sync" class=
"sync"></div>
60 <div id=
"splitbar" style=
"-moz-user-select:none;"
61 class=
"ui-resizable-handle">
64 <script type=
"text/javascript">
65 $(document).ready(function(){initNavTree('generator_8hpp_source.html','');});
67 <div id=
"doc-content">
69 <div class=
"headertitle">
70 <div class=
"title">generator.hpp
</div> </div>
72 <div class=
"contents">
73 <div class=
"fragment"><div class=
"line"><a name=
"l00001"></a><span class=
"lineno"> 1</span> <span class=
"comment">//
</span></div>
74 <div class=
"line"><a name=
"l00002"></a><span class=
"lineno"> 2</span> <span class=
"comment">// Copyright (c)
2009-
2011 Artyom Beilis (Tonkikh)
</span></div>
75 <div class=
"line"><a name=
"l00003"></a><span class=
"lineno"> 3</span> <span class=
"comment">//
</span></div>
76 <div class=
"line"><a name=
"l00004"></a><span class=
"lineno"> 4</span> <span class=
"comment">// Distributed under the Boost Software License, Version
1.0. (See
</span></div>
77 <div class=
"line"><a name=
"l00005"></a><span class=
"lineno"> 5</span> <span class=
"comment">// accompanying file LICENSE_1_0.txt or copy at
</span></div>
78 <div class=
"line"><a name=
"l00006"></a><span class=
"lineno"> 6</span> <span class=
"comment">// http://www.boost.org/LICENSE_1_0.txt)
</span></div>
79 <div class=
"line"><a name=
"l00007"></a><span class=
"lineno"> 7</span> <span class=
"comment">//
</span></div>
80 <div class=
"line"><a name=
"l00008"></a><span class=
"lineno"> 8</span> <span class=
"preprocessor">#ifndef BOOST_LOCALE_GENERATOR_HPP
</span></div>
81 <div class=
"line"><a name=
"l00009"></a><span class=
"lineno"> 9</span> <span class=
"preprocessor"></span><span class=
"preprocessor">#define BOOST_LOCALE_GENERATOR_HPP
</span></div>
82 <div class=
"line"><a name=
"l00010"></a><span class=
"lineno"> 10</span> <span class=
"preprocessor"></span><span class=
"preprocessor">#include
<boost/locale/config.hpp
></span></div>
83 <div class=
"line"><a name=
"l00011"></a><span class=
"lineno"> 11</span> <span class=
"preprocessor">#include
<boost/cstdint.hpp
></span></div>
84 <div class=
"line"><a name=
"l00012"></a><span class=
"lineno"> 12</span> <span class=
"preprocessor">#ifdef BOOST_MSVC
</span></div>
85 <div class=
"line"><a name=
"l00013"></a><span class=
"lineno"> 13</span> <span class=
"preprocessor"></span><span class=
"preprocessor"># pragma warning(push)
</span></div>
86 <div class=
"line"><a name=
"l00014"></a><span class=
"lineno"> 14</span> <span class=
"preprocessor"></span><span class=
"preprocessor"># pragma warning(disable :
4275 4251 4231 4660)
</span></div>
87 <div class=
"line"><a name=
"l00015"></a><span class=
"lineno"> 15</span> <span class=
"preprocessor"></span><span class=
"preprocessor">#endif
</span></div>
88 <div class=
"line"><a name=
"l00016"></a><span class=
"lineno"> 16</span> <span class=
"preprocessor"></span><span class=
"preprocessor">#include
<string
></span></div>
89 <div class=
"line"><a name=
"l00017"></a><span class=
"lineno"> 17</span> <span class=
"preprocessor">#include
<locale
></span></div>
90 <div class=
"line"><a name=
"l00018"></a><span class=
"lineno"> 18</span> <span class=
"preprocessor">#include
<memory
></span></div>
91 <div class=
"line"><a name=
"l00019"></a><span class=
"lineno"> 19</span> </div>
92 <div class=
"line"><a name=
"l00020"></a><span class=
"lineno"> 20</span> <span class=
"keyword">namespace
</span>boost {
</div>
93 <div class=
"line"><a name=
"l00021"></a><span class=
"lineno"> 21</span> </div>
94 <div class=
"line"><a name=
"l00022"></a><span class=
"lineno"> 22</span>  <span class=
"keyword">template
</span><<span class=
"keyword">typename
</span> Type
></div>
95 <div class=
"line"><a name=
"l00023"></a><span class=
"lineno"><a class=
"line" href=
"classboost_1_1shared__ptr.html"> 23</a></span>  <span class=
"keyword">class
</span><a class=
"code" href=
"classboost_1_1shared__ptr.html">shared_ptr
</a>;
</div>
96 <div class=
"line"><a name=
"l00024"></a><span class=
"lineno"> 24</span> </div>
97 <div class=
"line"><a name=
"l00028"></a><span class=
"lineno"> 28</span>  <span class=
"keyword">namespace
</span>locale {
</div>
98 <div class=
"line"><a name=
"l00029"></a><span class=
"lineno"> 29</span> </div>
99 <div class=
"line"><a name=
"l00030"></a><span class=
"lineno"> 30</span>  <span class=
"keyword">class
</span>localization_backend;
</div>
100 <div class=
"line"><a name=
"l00031"></a><span class=
"lineno"> 31</span>  <span class=
"keyword">class
</span>localization_backend_manager;
</div>
101 <div class=
"line"><a name=
"l00032"></a><span class=
"lineno"> 32</span> </div>
102 <div class=
"line"><a name=
"l00033"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a330a4c5134eb5110b33a0b4f986f34be"> 33</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a330a4c5134eb5110b33a0b4f986f34be">nochar_facet
</a> =
0;
</div>
103 <div class=
"line"><a name=
"l00034"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#ac57b3067a033cb4416098b8c34867aa1"> 34</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#ac57b3067a033cb4416098b8c34867aa1">char_facet
</a> =
1 << 0;
</div>
104 <div class=
"line"><a name=
"l00035"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#af26277ad3002b9d09790ca42590352fe"> 35</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#af26277ad3002b9d09790ca42590352fe">wchar_t_facet
</a> =
1 << 1;
</div>
105 <div class=
"line"><a name=
"l00036"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a4f02f43f0bef71bdd9262141508fe8f0"> 36</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a4f02f43f0bef71bdd9262141508fe8f0">char16_t_facet
</a> =
1 << 2;
</div>
106 <div class=
"line"><a name=
"l00037"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a77cbac0792b48c20173dd92544c625e5"> 37</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a77cbac0792b48c20173dd92544c625e5">char32_t_facet
</a> =
1 << 3;
</div>
107 <div class=
"line"><a name=
"l00038"></a><span class=
"lineno"> 38</span> </div>
108 <div class=
"line"><a name=
"l00039"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#ac57221e55dcc193f60a8af0064d58f1e"> 39</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#ac57221e55dcc193f60a8af0064d58f1e">character_first_facet
</a> =
<a class=
"code" href=
"namespaceboost_1_1locale.html#ac57b3067a033cb4416098b8c34867aa1">char_facet
</a>;
</div>
109 <div class=
"line"><a name=
"l00040"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a6719d31f7dc35bd97116dd353e5464c6"> 40</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a6719d31f7dc35bd97116dd353e5464c6">character_last_facet
</a> =
<a class=
"code" href=
"namespaceboost_1_1locale.html#a77cbac0792b48c20173dd92544c625e5">char32_t_facet
</a>;
</div>
110 <div class=
"line"><a name=
"l00041"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#acbf4f064b76445979094471c7092bd4c"> 41</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#acbf4f064b76445979094471c7092bd4c">all_characters
</a> =
0xFFFF;
</div>
111 <div class=
"line"><a name=
"l00042"></a><span class=
"lineno"> 42</span>  </div>
112 <div class=
"line"><a name=
"l00043"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8"> 43</a></span>  <span class=
"keyword">typedef
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type
</a>;
</div>
113 <div class=
"line"><a name=
"l00044"></a><span class=
"lineno"> 44</span> </div>
114 <div class=
"line"><a name=
"l00045"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a980b72231e52c32b8bef91ce60e6936a"> 45</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a980b72231e52c32b8bef91ce60e6936a">convert_facet
</a> =
1 << 0;
</div>
115 <div class=
"line"><a name=
"l00046"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a2dd40649cf5bb125d9ef5f42ad792446"> 46</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a2dd40649cf5bb125d9ef5f42ad792446">collation_facet
</a> =
1 << 1;
</div>
116 <div class=
"line"><a name=
"l00047"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a4ee453a8b95be64b802edae99ad5d9ed"> 47</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a4ee453a8b95be64b802edae99ad5d9ed">formatting_facet
</a>=
1 << 2;
</div>
117 <div class=
"line"><a name=
"l00048"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#adeadf3347a4fa74afd7fd1f6674be1b0"> 48</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#adeadf3347a4fa74afd7fd1f6674be1b0">parsing_facet
</a> =
1 << 3;
</div>
118 <div class=
"line"><a name=
"l00049"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#aa5b134d0be315fefbfde1216ea3904d9"> 49</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#aa5b134d0be315fefbfde1216ea3904d9">message_facet
</a> =
1 << 4;
</div>
119 <div class=
"line"><a name=
"l00050"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#aaffe2f2ba9df34eb86caa0c815d00d6b"> 50</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#aaffe2f2ba9df34eb86caa0c815d00d6b">codepage_facet
</a> =
1 << 5;
</div>
120 <div class=
"line"><a name=
"l00051"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#ac2fa68f626cf136556cbf56c82d3fdd6"> 51</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#ac2fa68f626cf136556cbf56c82d3fdd6">boundary_facet
</a> =
1 << 6;
</div>
121 <div class=
"line"><a name=
"l00052"></a><span class=
"lineno"> 52</span>  </div>
122 <div class=
"line"><a name=
"l00053"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a91e9fa9c9d99150ff7801a0423cb2374"> 53</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a91e9fa9c9d99150ff7801a0423cb2374">per_character_facet_first
</a> =
<a class=
"code" href=
"namespaceboost_1_1locale.html#a980b72231e52c32b8bef91ce60e6936a">convert_facet
</a>;
</div>
123 <div class=
"line"><a name=
"l00054"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#afbb1680a86838f1b145590dce820c558"> 54</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#afbb1680a86838f1b145590dce820c558">per_character_facet_last
</a> =
<a class=
"code" href=
"namespaceboost_1_1locale.html#ac2fa68f626cf136556cbf56c82d3fdd6">boundary_facet
</a>;
</div>
124 <div class=
"line"><a name=
"l00055"></a><span class=
"lineno"> 55</span> </div>
125 <div class=
"line"><a name=
"l00056"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#ae068c6887999c1f839d6d13eaf2a0b7c"> 56</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"classboost_1_1locale_1_1calendar__facet.html">calendar_facet
</a> =
1 << 16;
</div>
126 <div class=
"line"><a name=
"l00057"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#aa0d08754ca3856546c63f1f79a153a7b"> 57</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#aa0d08754ca3856546c63f1f79a153a7b">information_facet
</a> =
1 << 17;
</div>
127 <div class=
"line"><a name=
"l00058"></a><span class=
"lineno"> 58</span> </div>
128 <div class=
"line"><a name=
"l00059"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#acdc78d8aaea40ff98a227c6d31a7be19"> 59</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#acdc78d8aaea40ff98a227c6d31a7be19">non_character_facet_first
</a> =
<a class=
"code" href=
"namespaceboost_1_1locale.html#ae068c6887999c1f839d6d13eaf2a0b7c">calendar_facet
</a>;
</div>
129 <div class=
"line"><a name=
"l00060"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a66521f8acb9412f2fc3ab38b7a409e20"> 60</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a66521f8acb9412f2fc3ab38b7a409e20">non_character_facet_last
</a> =
<a class=
"code" href=
"namespaceboost_1_1locale.html#aa0d08754ca3856546c63f1f79a153a7b">information_facet
</a>;
</div>
130 <div class=
"line"><a name=
"l00061"></a><span class=
"lineno"> 61</span> </div>
131 <div class=
"line"><a name=
"l00062"></a><span class=
"lineno"> 62</span>  </div>
132 <div class=
"line"><a name=
"l00063"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#ab51b0b65a19b1db3adc14e9866097e2a"> 63</a></span>  <span class=
"keyword">static
</span> <span class=
"keyword">const
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#ab51b0b65a19b1db3adc14e9866097e2a">all_categories
</a> =
0xFFFFFFFFu;
</div>
133 <div class=
"line"><a name=
"l00064"></a><span class=
"lineno"> 64</span>  </div>
134 <div class=
"line"><a name=
"l00065"></a><span class=
"lineno"><a class=
"line" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1"> 65</a></span>  <span class=
"keyword">typedef
</span> uint32_t
<a class=
"code" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type
</a>;
</div>
135 <div class=
"line"><a name=
"l00066"></a><span class=
"lineno"> 66</span> </div>
136 <div class=
"line"><a name=
"l00073"></a><span class=
"lineno"> 73</span> </div>
137 <div class=
"line"><a name=
"l00074"></a><span class=
"lineno"><a class=
"line" href=
"classboost_1_1locale_1_1generator.html"> 74</a></span>  <span class=
"keyword">class
</span>BOOST_LOCALE_DECL
<a class=
"code" href=
"classboost_1_1locale_1_1generator.html">generator
</a> {
</div>
138 <div class=
"line"><a name=
"l00075"></a><span class=
"lineno"> 75</span>  <span class=
"keyword">public
</span>:
</div>
139 <div class=
"line"><a name=
"l00076"></a><span class=
"lineno"> 76</span> </div>
140 <div class=
"line"><a name=
"l00080"></a><span class=
"lineno"> 80</span>  <a class=
"code" href=
"classboost_1_1locale_1_1generator.html">generator
</a>();
</div>
141 <div class=
"line"><a name=
"l00084"></a><span class=
"lineno"> 84</span>  <a class=
"code" href=
"classboost_1_1locale_1_1generator.html">generator
</a>(
<a class=
"code" href=
"classboost_1_1locale_1_1localization__backend__manager.html">localization_backend_manager
</a> <span class=
"keyword">const
</span> &);
</div>
142 <div class=
"line"><a name=
"l00085"></a><span class=
"lineno"> 85</span> </div>
143 <div class=
"line"><a name=
"l00086"></a><span class=
"lineno"> 86</span>  ~
<a class=
"code" href=
"classboost_1_1locale_1_1generator.html">generator
</a>();
</div>
144 <div class=
"line"><a name=
"l00087"></a><span class=
"lineno"> 87</span> </div>
145 <div class=
"line"><a name=
"l00091"></a><span class=
"lineno"> 91</span>  <span class=
"keywordtype">void
</span> categories(
<a class=
"code" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type
</a> cats);
</div>
146 <div class=
"line"><a name=
"l00095"></a><span class=
"lineno"> 95</span>  <a class=
"code" href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">locale_category_type
</a> categories()
<span class=
"keyword">const
</span>;
</div>
147 <div class=
"line"><a name=
"l00096"></a><span class=
"lineno"> 96</span>  </div>
148 <div class=
"line"><a name=
"l00100"></a><span class=
"lineno"> 100</span>  <span class=
"keywordtype">void
</span> characters(
<a class=
"code" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type
</a> chars);
</div>
149 <div class=
"line"><a name=
"l00104"></a><span class=
"lineno"> 104</span>  <a class=
"code" href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">character_facet_type
</a> characters()
<span class=
"keyword">const
</span>;
</div>
150 <div class=
"line"><a name=
"l00105"></a><span class=
"lineno"> 105</span> </div>
151 <div class=
"line"><a name=
"l00126"></a><span class=
"lineno"> 126</span>  <span class=
"keywordtype">void
</span> add_messages_domain(std::string
<span class=
"keyword">const
</span> &<a class=
"code" href=
"group__manipulators.html#gab522188e3d82f1d2898b290b9132925e">domain
</a>);
</div>
152 <div class=
"line"><a name=
"l00131"></a><span class=
"lineno"> 131</span>  <span class=
"keywordtype">void
</span> set_default_messages_domain(std::string
<span class=
"keyword">const
</span> &domain);
</div>
153 <div class=
"line"><a name=
"l00132"></a><span class=
"lineno"> 132</span> </div>
154 <div class=
"line"><a name=
"l00136"></a><span class=
"lineno"> 136</span>  <span class=
"keywordtype">void
</span> clear_domains();
</div>
155 <div class=
"line"><a name=
"l00137"></a><span class=
"lineno"> 137</span> </div>
156 <div class=
"line"><a name=
"l00152"></a><span class=
"lineno"> 152</span>  <span class=
"keywordtype">void
</span> add_messages_path(std::string
<span class=
"keyword">const
</span> &path);
</div>
157 <div class=
"line"><a name=
"l00153"></a><span class=
"lineno"> 153</span> </div>
158 <div class=
"line"><a name=
"l00157"></a><span class=
"lineno"> 157</span>  <span class=
"keywordtype">void
</span> clear_paths();
</div>
159 <div class=
"line"><a name=
"l00158"></a><span class=
"lineno"> 158</span> </div>
160 <div class=
"line"><a name=
"l00162"></a><span class=
"lineno"> 162</span>  <span class=
"keywordtype">void
</span> clear_cache();
</div>
161 <div class=
"line"><a name=
"l00163"></a><span class=
"lineno"> 163</span> </div>
162 <div class=
"line"><a name=
"l00167"></a><span class=
"lineno"> 167</span>  <span class=
"keywordtype">void
</span> locale_cache_enabled(
<span class=
"keywordtype">bool
</span> on);
</div>
163 <div class=
"line"><a name=
"l00168"></a><span class=
"lineno"> 168</span> </div>
164 <div class=
"line"><a name=
"l00172"></a><span class=
"lineno"> 172</span>  <span class=
"keywordtype">bool
</span> locale_cache_enabled()
<span class=
"keyword">const
</span>;
</div>
165 <div class=
"line"><a name=
"l00173"></a><span class=
"lineno"> 173</span> </div>
166 <div class=
"line"><a name=
"l00177"></a><span class=
"lineno"> 177</span>  <span class=
"keywordtype">bool
</span> use_ansi_encoding()
<span class=
"keyword">const
</span>;
</div>
167 <div class=
"line"><a name=
"l00178"></a><span class=
"lineno"> 178</span> </div>
168 <div class=
"line"><a name=
"l00186"></a><span class=
"lineno"> 186</span>  <span class=
"keywordtype">void
</span> use_ansi_encoding(
<span class=
"keywordtype">bool
</span> enc);
</div>
169 <div class=
"line"><a name=
"l00187"></a><span class=
"lineno"> 187</span> </div>
170 <div class=
"line"><a name=
"l00191"></a><span class=
"lineno"> 191</span>  std::locale generate(std::string
<span class=
"keyword">const
</span> &<span class=
"keywordtype">id
</span>)
<span class=
"keyword">const
</span>;
</div>
171 <div class=
"line"><a name=
"l00196"></a><span class=
"lineno"> 196</span>  std::locale generate(std::locale
<span class=
"keyword">const
</span> &base,std::string
<span class=
"keyword">const
</span> &<span class=
"keywordtype">id
</span>)
<span class=
"keyword">const
</span>;
</div>
172 <div class=
"line"><a name=
"l00200"></a><span class=
"lineno"><a class=
"line" href=
"classboost_1_1locale_1_1generator.html#acd80b3f2371c77f4f7e7dfe69ec670ab"> 200</a></span>  std::locale
<a class=
"code" href=
"classboost_1_1locale_1_1generator.html#acd80b3f2371c77f4f7e7dfe69ec670ab">operator()
</a>(std::string
<span class=
"keyword">const
</span> &<span class=
"keywordtype">id
</span>)
<span class=
"keyword"> const
</span></div>
173 <div class=
"line"><a name=
"l00201"></a><span class=
"lineno"> 201</span> <span class=
"keyword"> </span>{
</div>
174 <div class=
"line"><a name=
"l00202"></a><span class=
"lineno"> 202</span>  <span class=
"keywordflow">return
</span> generate(
<span class=
"keywordtype">id
</span>);
</div>
175 <div class=
"line"><a name=
"l00203"></a><span class=
"lineno"> 203</span>  }
</div>
176 <div class=
"line"><a name=
"l00204"></a><span class=
"lineno"> 204</span>  </div>
177 <div class=
"line"><a name=
"l00208"></a><span class=
"lineno"> 208</span>  <span class=
"keywordtype">void
</span> set_option(std::string
<span class=
"keyword">const
</span> &name,std::string
<span class=
"keyword">const
</span> &value);
</div>
178 <div class=
"line"><a name=
"l00209"></a><span class=
"lineno"> 209</span> </div>
179 <div class=
"line"><a name=
"l00213"></a><span class=
"lineno"> 213</span>  <span class=
"keywordtype">void
</span> clear_options();
</div>
180 <div class=
"line"><a name=
"l00214"></a><span class=
"lineno"> 214</span> </div>
181 <div class=
"line"><a name=
"l00215"></a><span class=
"lineno"> 215</span>  <span class=
"keyword">private
</span>:
</div>
182 <div class=
"line"><a name=
"l00216"></a><span class=
"lineno"> 216</span> </div>
183 <div class=
"line"><a name=
"l00217"></a><span class=
"lineno"> 217</span>  <span class=
"keywordtype">void
</span> set_all_options(
<a class=
"code" href=
"classboost_1_1shared__ptr.html">shared_ptr
<localization_backend
></a> backend,std::string
<span class=
"keyword">const
</span> &<span class=
"keywordtype">id
</span>)
<span class=
"keyword">const
</span>;
</div>
184 <div class=
"line"><a name=
"l00218"></a><span class=
"lineno"> 218</span> </div>
185 <div class=
"line"><a name=
"l00219"></a><span class=
"lineno"> 219</span>  <a class=
"code" href=
"classboost_1_1locale_1_1generator.html">generator
</a>(
<a class=
"code" href=
"classboost_1_1locale_1_1generator.html">generator
</a> <span class=
"keyword">const
</span> &);
</div>
186 <div class=
"line"><a name=
"l00220"></a><span class=
"lineno"> 220</span>  <span class=
"keywordtype">void
</span> operator=(
<a class=
"code" href=
"classboost_1_1locale_1_1generator.html">generator
</a> <span class=
"keyword">const
</span> &);
</div>
187 <div class=
"line"><a name=
"l00221"></a><span class=
"lineno"> 221</span> </div>
188 <div class=
"line"><a name=
"l00222"></a><span class=
"lineno"> 222</span>  <span class=
"keyword">struct
</span>data;
</div>
189 <div class=
"line"><a name=
"l00223"></a><span class=
"lineno"> 223</span>  std::auto_ptr
<data
> d;
</div>
190 <div class=
"line"><a name=
"l00224"></a><span class=
"lineno"> 224</span>  };
</div>
191 <div class=
"line"><a name=
"l00225"></a><span class=
"lineno"> 225</span> </div>
192 <div class=
"line"><a name=
"l00226"></a><span class=
"lineno"> 226</span>  }
</div>
193 <div class=
"line"><a name=
"l00227"></a><span class=
"lineno"> 227</span> }
</div>
194 <div class=
"line"><a name=
"l00228"></a><span class=
"lineno"> 228</span> <span class=
"preprocessor">#ifdef BOOST_MSVC
</span></div>
195 <div class=
"line"><a name=
"l00229"></a><span class=
"lineno"> 229</span> <span class=
"preprocessor"></span><span class=
"preprocessor">#pragma warning(pop)
</span></div>
196 <div class=
"line"><a name=
"l00230"></a><span class=
"lineno"> 230</span> <span class=
"preprocessor"></span><span class=
"preprocessor">#endif
</span></div>
197 <div class=
"line"><a name=
"l00231"></a><span class=
"lineno"> 231</span> <span class=
"preprocessor"></span></div>
198 <div class=
"line"><a name=
"l00232"></a><span class=
"lineno"> 232</span> </div>
199 <div class=
"line"><a name=
"l00233"></a><span class=
"lineno"> 233</span> <span class=
"preprocessor">#endif
</span></div>
200 <div class=
"line"><a name=
"l00234"></a><span class=
"lineno"> 234</span> <span class=
"preprocessor"></span><span class=
"comment">// vim: tabstop=
4 expandtab shiftwidth=
4 softtabstop=
4 </span></div>
201 <div class=
"line"><a name=
"l00235"></a><span class=
"lineno"> 235</span> </div>
202 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_ac2fa68f626cf136556cbf56c82d3fdd6"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#ac2fa68f626cf136556cbf56c82d3fdd6">boost::locale::boundary_facet
</a></div><div class=
"ttdeci">static const uint32_t boundary_facet
</div><div class=
"ttdoc">Generate boundary analysis facet.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
51</div></div>
203 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_acdc78d8aaea40ff98a227c6d31a7be19"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#acdc78d8aaea40ff98a227c6d31a7be19">boost::locale::non_character_facet_first
</a></div><div class=
"ttdeci">static const uint32_t non_character_facet_first
</div><div class=
"ttdoc">First character independent facet.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
59</div></div>
204 <div class=
"ttc" id=
"classboost_1_1locale_1_1calendar__facet_html"><div class=
"ttname"><a href=
"classboost_1_1locale_1_1calendar__facet.html">boost::locale::calendar_facet
</a></div><div class=
"ttdoc">the facet that generates calendar for specific locale
</div><div class=
"ttdef"><b>Definition:
</b> date_time_facet.hpp:
234</div></div>
205 <div class=
"ttc" id=
"classboost_1_1locale_1_1localization__backend__manager_html"><div class=
"ttname"><a href=
"classboost_1_1locale_1_1localization__backend__manager.html">boost::locale::localization_backend_manager
</a></div><div class=
"ttdoc">Localization backend manager is a class that holds various backend and allows creation of their combi...
</div><div class=
"ttdef"><b>Definition:
</b> localization_backend.hpp:
84</div></div>
206 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_adeadf3347a4fa74afd7fd1f6674be1b0"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#adeadf3347a4fa74afd7fd1f6674be1b0">boost::locale::parsing_facet
</a></div><div class=
"ttdeci">static const uint32_t parsing_facet
</div><div class=
"ttdoc">Generate numbers, currency, date-time formatting facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
48</div></div>
207 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a330a4c5134eb5110b33a0b4f986f34be"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a330a4c5134eb5110b33a0b4f986f34be">boost::locale::nochar_facet
</a></div><div class=
"ttdeci">static const uint32_t nochar_facet
</div><div class=
"ttdoc">Unspecified character category for character independent facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
33</div></div>
208 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a8c993aaf15e683e97d062560ccf914d8"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a8c993aaf15e683e97d062560ccf914d8">boost::locale::character_facet_type
</a></div><div class=
"ttdeci">uint32_t character_facet_type
</div><div class=
"ttdoc">type that specifies the character type that locales can be generated for
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
43</div></div>
209 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a4ee453a8b95be64b802edae99ad5d9ed"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a4ee453a8b95be64b802edae99ad5d9ed">boost::locale::formatting_facet
</a></div><div class=
"ttdeci">static const uint32_t formatting_facet
</div><div class=
"ttdoc">Generate numbers, currency, date-time formatting facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
47</div></div>
210 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a980b72231e52c32b8bef91ce60e6936a"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a980b72231e52c32b8bef91ce60e6936a">boost::locale::convert_facet
</a></div><div class=
"ttdeci">static const uint32_t convert_facet
</div><div class=
"ttdoc">Generate conversion facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
45</div></div>
211 <div class=
"ttc" id=
"classboost_1_1locale_1_1generator_html_acd80b3f2371c77f4f7e7dfe69ec670ab"><div class=
"ttname"><a href=
"classboost_1_1locale_1_1generator.html#acd80b3f2371c77f4f7e7dfe69ec670ab">boost::locale::generator::operator()
</a></div><div class=
"ttdeci">std::locale operator()(std::string const
&id) const
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
200</div></div>
212 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_afbb1680a86838f1b145590dce820c558"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#afbb1680a86838f1b145590dce820c558">boost::locale::per_character_facet_last
</a></div><div class=
"ttdeci">static const uint32_t per_character_facet_last
</div><div class=
"ttdoc">Last facet specific for character.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
54</div></div>
213 <div class=
"ttc" id=
"classboost_1_1shared__ptr_html"><div class=
"ttname"><a href=
"classboost_1_1shared__ptr.html">boost::shared_ptr
</a></div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
23</div></div>
214 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_ae068c6887999c1f839d6d13eaf2a0b7c"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#ae068c6887999c1f839d6d13eaf2a0b7c">boost::locale::calendar_facet
</a></div><div class=
"ttdeci">static const uint32_t calendar_facet
</div><div class=
"ttdoc">Generate boundary analysis facet.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
56</div></div>
215 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_aa5b134d0be315fefbfde1216ea3904d9"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#aa5b134d0be315fefbfde1216ea3904d9">boost::locale::message_facet
</a></div><div class=
"ttdeci">static const uint32_t message_facet
</div><div class=
"ttdoc">Generate message facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
49</div></div>
216 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_aaffe2f2ba9df34eb86caa0c815d00d6b"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#aaffe2f2ba9df34eb86caa0c815d00d6b">boost::locale::codepage_facet
</a></div><div class=
"ttdeci">static const uint32_t codepage_facet
</div><div class=
"ttdoc">Generate character set conversion facets (derived from std::codecvt)
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
50</div></div>
217 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a91e9fa9c9d99150ff7801a0423cb2374"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a91e9fa9c9d99150ff7801a0423cb2374">boost::locale::per_character_facet_first
</a></div><div class=
"ttdeci">static const uint32_t per_character_facet_first
</div><div class=
"ttdoc">First facet specific for character.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
53</div></div>
218 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a6719d31f7dc35bd97116dd353e5464c6"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a6719d31f7dc35bd97116dd353e5464c6">boost::locale::character_last_facet
</a></div><div class=
"ttdeci">static const uint32_t character_last_facet
</div><div class=
"ttdoc">Last facet specific for character type.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
40</div></div>
219 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_ac57221e55dcc193f60a8af0064d58f1e"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#ac57221e55dcc193f60a8af0064d58f1e">boost::locale::character_first_facet
</a></div><div class=
"ttdeci">static const uint32_t character_first_facet
</div><div class=
"ttdoc">First facet specific for character type.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
39</div></div>
220 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a2dd40649cf5bb125d9ef5f42ad792446"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a2dd40649cf5bb125d9ef5f42ad792446">boost::locale::collation_facet
</a></div><div class=
"ttdeci">static const uint32_t collation_facet
</div><div class=
"ttdoc">Generate collation facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
46</div></div>
221 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a66521f8acb9412f2fc3ab38b7a409e20"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a66521f8acb9412f2fc3ab38b7a409e20">boost::locale::non_character_facet_last
</a></div><div class=
"ttdeci">static const uint32_t non_character_facet_last
</div><div class=
"ttdoc">Last character independent facet.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
60</div></div>
222 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a4f02f43f0bef71bdd9262141508fe8f0"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a4f02f43f0bef71bdd9262141508fe8f0">boost::locale::char16_t_facet
</a></div><div class=
"ttdeci">static const uint32_t char16_t_facet
</div><div class=
"ttdoc">C++
0x char16_t facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
36</div></div>
223 <div class=
"ttc" id=
"group__manipulators_html_gab522188e3d82f1d2898b290b9132925e"><div class=
"ttname"><a href=
"group__manipulators.html#gab522188e3d82f1d2898b290b9132925e">boost::locale::as::domain
</a></div><div class=
"ttdeci">unspecified_type domain(std::string const
&id)
</div><div class=
"ttdef"><b>Definition:
</b> message.hpp:
789</div></div>
224 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a77cbac0792b48c20173dd92544c625e5"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a77cbac0792b48c20173dd92544c625e5">boost::locale::char32_t_facet
</a></div><div class=
"ttdeci">static const uint32_t char32_t_facet
</div><div class=
"ttdoc">C++
0x char32_t facets.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
37</div></div>
225 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_a32e8cb87d2f68a5577dbb7ce55c0d2b1"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#a32e8cb87d2f68a5577dbb7ce55c0d2b1">boost::locale::locale_category_type
</a></div><div class=
"ttdeci">uint32_t locale_category_type
</div><div class=
"ttdoc">a type used for more fine grained generation of facets
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
65</div></div>
226 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_aa0d08754ca3856546c63f1f79a153a7b"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#aa0d08754ca3856546c63f1f79a153a7b">boost::locale::information_facet
</a></div><div class=
"ttdeci">static const uint32_t information_facet
</div><div class=
"ttdoc">Generate general locale information facet.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
57</div></div>
227 <div class=
"ttc" id=
"classboost_1_1locale_1_1generator_html"><div class=
"ttname"><a href=
"classboost_1_1locale_1_1generator.html">boost::locale::generator
</a></div><div class=
"ttdoc">the major class used for locale generation
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
74</div></div>
228 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_ac57b3067a033cb4416098b8c34867aa1"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#ac57b3067a033cb4416098b8c34867aa1">boost::locale::char_facet
</a></div><div class=
"ttdeci">static const uint32_t char_facet
</div><div class=
"ttdoc">8-bit character facets
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
34</div></div>
229 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_ab51b0b65a19b1db3adc14e9866097e2a"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#ab51b0b65a19b1db3adc14e9866097e2a">boost::locale::all_categories
</a></div><div class=
"ttdeci">static const uint32_t all_categories
</div><div class=
"ttdoc">Generate all of them.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
63</div></div>
230 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_af26277ad3002b9d09790ca42590352fe"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#af26277ad3002b9d09790ca42590352fe">boost::locale::wchar_t_facet
</a></div><div class=
"ttdeci">static const uint32_t wchar_t_facet
</div><div class=
"ttdoc">wide character facets
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
35</div></div>
231 <div class=
"ttc" id=
"namespaceboost_1_1locale_html_acbf4f064b76445979094471c7092bd4c"><div class=
"ttname"><a href=
"namespaceboost_1_1locale.html#acbf4f064b76445979094471c7092bd4c">boost::locale::all_characters
</a></div><div class=
"ttdeci">static const uint32_t all_characters
</div><div class=
"ttdoc">Special mask – generate all.
</div><div class=
"ttdef"><b>Definition:
</b> generator.hpp:
41</div></div>
232 </div><!-- fragment --></div><!-- contents -->
233 </div><!-- doc-content -->
236 © 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.