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"> 3<head> 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/gnu_gettext.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); 17</script> 18<link href="doxygen.css" rel="stylesheet" type="text/css" /> 19</head> 20<body> 21<div id="top"><!-- do not remove this div, it is closed by doxygen! --> 22<div id="titlearea"> 23<table cellspacing="0" cellpadding="0"> 24 <tbody> 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 29 </div> 30 </td> 31 </tr> 32 </tbody> 33</table> 34</div> 35<!-- end header part --> 36<!-- Generated by Doxygen 1.8.6 --> 37 <div id="navrow1" class="tabs"> 38 <ul class="tablist"> 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> 46 </ul> 47 </div> 48 <div id="navrow2" class="tabs2"> 49 <ul class="tablist"> 50 <li><a href="files.html"><span>File List</span></a></li> 51 </ul> 52 </div> 53</div><!-- top --> 54<div id="side-nav" class="ui-resizable side-nav-resizable"> 55 <div id="nav-tree"> 56 <div id="nav-tree-contents"> 57 <div id="nav-sync" class="sync"></div> 58 </div> 59 </div> 60 <div id="splitbar" style="-moz-user-select:none;" 61 class="ui-resizable-handle"> 62 </div> 63</div> 64<script type="text/javascript"> 65$(document).ready(function(){initNavTree('gnu__gettext_8hpp_source.html','');}); 66</script> 67<div id="doc-content"> 68<div class="header"> 69 <div class="headertitle"> 70<div class="title">gnu_gettext.hpp</div> </div> 71</div><!--header--> 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_LOCLAE_GNU_GETTEXT_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_LOCLAE_GNU_GETTEXT_HPP</span></div> 82<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor"></span></div> 83<div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="preprocessor">#include <boost/locale/message.hpp></span></div> 84<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#include <boost/function.hpp></span></div> 85<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#include <stdexcept></span></div> 86<div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div> 87<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="keyword">namespace </span>boost {</div> 88<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="keyword">namespace </span>locale {</div> 89<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> </div> 90<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> </div> 91<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="namespaceboost_1_1locale_1_1gnu__gettext.html"> 24</a></span> <span class="keyword">namespace </span>gnu_gettext {</div> 92<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div> 93<div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html"> 34</a></span>  <span class="keyword">struct </span><a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a> {</div> 94<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a>() :</div> 95<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a1afc3be03d4848042e3208d4ca5aec85">language</a>(<span class="stringliteral">"C"</span>),</div> 96<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a39ea1cfd018c7702d94d03e76042ff10">locale_category</a>(<span class="stringliteral">"LC_MESSAGES"</span>)</div> 97<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  {</div> 98<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  }</div> 99<div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div> 100<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a1afc3be03d4848042e3208d4ca5aec85"> 41</a></span>  std::string <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a1afc3be03d4848042e3208d4ca5aec85">language</a>; </div> 101<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#ae939e0c5dbabba7fb4cc2872f4e7dac2"> 42</a></span>  std::string <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#ae939e0c5dbabba7fb4cc2872f4e7dac2">country</a>; </div> 102<div class="line"><a name="l00043"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#af543a11d3ff1d12e24c06306b30f8fb8"> 43</a></span>  std::string <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#af543a11d3ff1d12e24c06306b30f8fb8">variant</a>; </div> 103<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4a7406581c6c7975c90db9d2d157d384"> 44</a></span>  std::string <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4a7406581c6c7975c90db9d2d157d384">encoding</a>; </div> 104<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  std::string <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a39ea1cfd018c7702d94d03e76042ff10">locale_category</a>; </div> 105<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">struct </span><a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html">domain</a> {</div> 106<div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div> 107<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#ae2d68e6e122c01aa07e60142d8af54fc"> 57</a></span>  std::string <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#ae2d68e6e122c01aa07e60142d8af54fc">name</a>; </div> 108<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a7004c3d4bb7ff1ebdba50535723d84a5"> 58</a></span>  std::string <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a7004c3d4bb7ff1ebdba50535723d84a5">encoding</a>; </div> 109<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html">domain</a>() {}</div> 110<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a08bbb38698a079239430066b688d28ab"> 66</a></span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a08bbb38698a079239430066b688d28ab">domain</a>(std::string <span class="keyword">const</span> &n) </div> 111<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  {</div> 112<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <span class="keywordtype">size_t</span> pos = n.find(<span class="stringliteral">"/"</span>);</div> 113<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  <span class="keywordflow">if</span>(pos==std::string::npos) {</div> 114<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#ae2d68e6e122c01aa07e60142d8af54fc">name</a> = n;</div> 115<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a7004c3d4bb7ff1ebdba50535723d84a5">encoding</a> = <span class="stringliteral">"UTF-8"</span>;</div> 116<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div> 117<div class="line"><a name="l00073"></a><span class="lineno"> 73</span>  <span class="keywordflow">else</span> {</div> 118<div class="line"><a name="l00074"></a><span class="lineno"> 74</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#ae2d68e6e122c01aa07e60142d8af54fc">name</a> = n.substr(0,pos);</div> 119<div class="line"><a name="l00075"></a><span class="lineno"> 75</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a7004c3d4bb7ff1ebdba50535723d84a5">encoding</a> = n.substr(pos+1);</div> 120<div class="line"><a name="l00076"></a><span class="lineno"> 76</span>  }</div> 121<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> </div> 122<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  }</div> 123<div class="line"><a name="l00079"></a><span class="lineno"> 79</span> </div> 124<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a4a361b37db81571d440f0ec4d1e9038f"> 83</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a4a361b37db81571d440f0ec4d1e9038f">operator==</a>(<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html">domain</a> <span class="keyword">const</span> &other)<span class="keyword"> const</span></div> 125<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="keyword"> </span>{</div> 126<div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  <span class="keywordflow">return</span> <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#ae2d68e6e122c01aa07e60142d8af54fc">name</a>==other.<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#ae2d68e6e122c01aa07e60142d8af54fc">name</a>;</div> 127<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  }</div> 128<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a26442fe81a0ce8c51775b1267455ecbe"> 90</a></span>  <span class="keywordtype">bool</span> <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a26442fe81a0ce8c51775b1267455ecbe">operator!=</a>(<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html">domain</a> <span class="keyword">const</span> &other)<span class="keyword"> const</span></div> 129<div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="keyword"> </span>{</div> 130<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> !(*<span class="keyword">this</span>==other);</div> 131<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div> 132<div class="line"><a name="l00094"></a><span class="lineno"> 94</span> </div> 133<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  };</div> 134<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>  </div> 135<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#ac3bfe22cf949ed3f87ee28fa0c983502"> 97</a></span>  <span class="keyword">typedef</span> std::vector<domain> <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#ac3bfe22cf949ed3f87ee28fa0c983502">domains_type</a>; </div> 136<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#ac3bfe22cf949ed3f87ee28fa0c983502">domains_type</a> <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a1ca79b90b4b8dbc924e5eb1b42188311">domains</a>; </div> 137<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>  std::vector<std::string> <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a263d9d2c359ae7730e6d5bba54bb3022">paths</a>; </div> 138<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div> 139<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  <span class="keyword">typedef</span> <span class="keyword">function</span><</div> 140<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  std::vector<char>(</div> 141<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  std::string <span class="keyword">const</span> &file_name,</div> 142<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  std::string <span class="keyword">const</span> &<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4a7406581c6c7975c90db9d2d157d384">encoding</a></div> 143<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>  ) </div> 144<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4dfe37c5a392e5106e65b396a5288b76"> 119</a></span>  > <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4dfe37c5a392e5106e65b396a5288b76">callback_type</a>;</div> 145<div class="line"><a name="l00120"></a><span class="lineno"> 120</span> </div> 146<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a63bd8b01ca532a2657186bab3fa396a2"> 125</a></span>  <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4dfe37c5a392e5106e65b396a5288b76">callback_type</a> <a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a63bd8b01ca532a2657186bab3fa396a2">callback</a>;</div> 147<div class="line"><a name="l00126"></a><span class="lineno"> 126</span> </div> 148<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>  };</div> 149<div class="line"><a name="l00128"></a><span class="lineno"> 128</span> </div> 150<div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div> 151<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  <span class="keyword">template</span><<span class="keyword">typename</span> CharType></div> 152<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  <a class="code" href="classboost_1_1locale_1_1message__format.html">message_format<CharType></a> *<a class="code" href="namespaceboost_1_1locale_1_1gnu__gettext.html#a6793c9f58e61e745205f3a2678b41a11">create_messages_facet</a>(<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a> <span class="keyword">const</span> &<a class="code" href="classboost_1_1locale_1_1info.html">info</a>);</div> 153<div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div> 154<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  </div> 155<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>  <span class="keyword">template</span><></div> 156<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  BOOST_LOCALE_DECL <a class="code" href="classboost_1_1locale_1_1message__format.html">message_format<char></a> *<a class="code" href="namespaceboost_1_1locale_1_1gnu__gettext.html#a6793c9f58e61e745205f3a2678b41a11">create_messages_facet</a>(<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a> <span class="keyword">const</span> &<a class="code" href="classboost_1_1locale_1_1info.html">info</a>);</div> 157<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>  </div> 158<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>  <span class="keyword">template</span><></div> 159<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>  BOOST_LOCALE_DECL <a class="code" href="classboost_1_1locale_1_1message__format.html">message_format<wchar_t></a> *<a class="code" href="namespaceboost_1_1locale_1_1gnu__gettext.html#a6793c9f58e61e745205f3a2678b41a11">create_messages_facet</a>(<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a> <span class="keyword">const</span> &<a class="code" href="classboost_1_1locale_1_1info.html">info</a>);</div> 160<div class="line"><a name="l00144"></a><span class="lineno"> 144</span> </div> 161<div class="line"><a name="l00145"></a><span class="lineno"> 145</span> <span class="preprocessor"> #ifdef BOOST_LOCALE_ENABLE_CHAR16_T</span></div> 162<div class="line"><a name="l00146"></a><span class="lineno"> 146</span> <span class="preprocessor"></span> <span class="keyword">template</span><></div> 163<div class="line"><a name="l00147"></a><span class="lineno"> 147</span>  BOOST_LOCALE_DECL <a class="code" href="classboost_1_1locale_1_1message__format.html">message_format<char16_t></a> *<a class="code" href="namespaceboost_1_1locale_1_1gnu__gettext.html#a6793c9f58e61e745205f3a2678b41a11">create_messages_facet</a>(<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a> <span class="keyword">const</span> &<a class="code" href="classboost_1_1locale_1_1info.html">info</a>);</div> 164<div class="line"><a name="l00148"></a><span class="lineno"> 148</span> <span class="preprocessor"> #endif</span></div> 165<div class="line"><a name="l00149"></a><span class="lineno"> 149</span> <span class="preprocessor"></span> </div> 166<div class="line"><a name="l00150"></a><span class="lineno"> 150</span> <span class="preprocessor"> #ifdef BOOST_LOCALE_ENABLE_CHAR32_T</span></div> 167<div class="line"><a name="l00151"></a><span class="lineno"> 151</span> <span class="preprocessor"></span> <span class="keyword">template</span><></div> 168<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>  BOOST_LOCALE_DECL <a class="code" href="classboost_1_1locale_1_1message__format.html">message_format<char32_t></a> *<a class="code" href="namespaceboost_1_1locale_1_1gnu__gettext.html#a6793c9f58e61e745205f3a2678b41a11">create_messages_facet</a>(<a class="code" href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">messages_info</a> <span class="keyword">const</span> &<a class="code" href="classboost_1_1locale_1_1info.html">info</a>);</div> 169<div class="line"><a name="l00153"></a><span class="lineno"> 153</span> <span class="preprocessor"> #endif</span></div> 170<div class="line"><a name="l00154"></a><span class="lineno"> 154</span> <span class="preprocessor"></span></div> 171<div class="line"><a name="l00156"></a><span class="lineno"> 156</span> </div> 172<div class="line"><a name="l00157"></a><span class="lineno"> 157</span> } <span class="comment">// gnu_gettext</span></div> 173<div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div> 174<div class="line"><a name="l00160"></a><span class="lineno"> 160</span> </div> 175<div class="line"><a name="l00161"></a><span class="lineno"> 161</span> } <span class="comment">// locale</span></div> 176<div class="line"><a name="l00162"></a><span class="lineno"> 162</span> } <span class="comment">// boost</span></div> 177<div class="line"><a name="l00163"></a><span class="lineno"> 163</span> </div> 178<div class="line"><a name="l00164"></a><span class="lineno"> 164</span> <span class="preprocessor">#endif</span></div> 179<div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="preprocessor"></span></div> 180<div class="line"><a name="l00166"></a><span class="lineno"> 166</span> <span class="comment">// vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4</span></div> 181<div class="line"><a name="l00167"></a><span class="lineno"> 167</span> </div> 182<div class="ttc" id="classboost_1_1locale_1_1info_html"><div class="ttname"><a href="classboost_1_1locale_1_1info.html">boost::locale::info</a></div><div class="ttdoc">a facet that holds general information about locale </div><div class="ttdef"><b>Definition:</b> info.hpp:27</div></div> 183<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_a1ca79b90b4b8dbc924e5eb1b42188311"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a1ca79b90b4b8dbc924e5eb1b42188311">boost::locale::gnu_gettext::messages_info::domains</a></div><div class="ttdeci">domains_type domains</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:99</div></div> 184<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain_html_a26442fe81a0ce8c51775b1267455ecbe"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a26442fe81a0ce8c51775b1267455ecbe">boost::locale::gnu_gettext::messages_info::domain::operator!=</a></div><div class="ttdeci">bool operator!=(domain const &other) const </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:90</div></div> 185<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_a4a7406581c6c7975c90db9d2d157d384"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4a7406581c6c7975c90db9d2d157d384">boost::locale::gnu_gettext::messages_info::encoding</a></div><div class="ttdeci">std::string encoding</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:44</div></div> 186<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_a39ea1cfd018c7702d94d03e76042ff10"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a39ea1cfd018c7702d94d03e76042ff10">boost::locale::gnu_gettext::messages_info::locale_category</a></div><div class="ttdeci">std::string locale_category</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:46</div></div> 187<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html">boost::locale::gnu_gettext::messages_info</a></div><div class="ttdoc">This structure holds all information required for creating gnu-gettext message catalogs,. </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:34</div></div> 188<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain_html_a08bbb38698a079239430066b688d28ab"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a08bbb38698a079239430066b688d28ab">boost::locale::gnu_gettext::messages_info::domain::domain</a></div><div class="ttdeci">domain(std::string const &n)</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:66</div></div> 189<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain_html_a4a361b37db81571d440f0ec4d1e9038f"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a4a361b37db81571d440f0ec4d1e9038f">boost::locale::gnu_gettext::messages_info::domain::operator==</a></div><div class="ttdeci">bool operator==(domain const &other) const </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:83</div></div> 190<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_a263d9d2c359ae7730e6d5bba54bb3022"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a263d9d2c359ae7730e6d5bba54bb3022">boost::locale::gnu_gettext::messages_info::paths</a></div><div class="ttdeci">std::vector< std::string > paths</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:101</div></div> 191<div class="ttc" id="classboost_1_1locale_1_1message__format_html"><div class="ttname"><a href="classboost_1_1locale_1_1message__format.html">boost::locale::message_format</a></div><div class="ttdoc">This facet provides message formatting abilities. </div><div class="ttdef"><b>Definition:</b> message.hpp:47</div></div> 192<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain_html"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html">boost::locale::gnu_gettext::messages_info::domain</a></div><div class="ttdoc">This type represents GNU Gettext domain name for the messages. </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:55</div></div> 193<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_a1afc3be03d4848042e3208d4ca5aec85"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a1afc3be03d4848042e3208d4ca5aec85">boost::locale::gnu_gettext::messages_info::language</a></div><div class="ttdeci">std::string language</div><div class="ttdoc">The language we load the catalog for, like "ru", "en", "de". </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:41</div></div> 194<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_ac3bfe22cf949ed3f87ee28fa0c983502"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#ac3bfe22cf949ed3f87ee28fa0c983502">boost::locale::gnu_gettext::messages_info::domains_type</a></div><div class="ttdeci">std::vector< domain > domains_type</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:97</div></div> 195<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain_html_ae2d68e6e122c01aa07e60142d8af54fc"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#ae2d68e6e122c01aa07e60142d8af54fc">boost::locale::gnu_gettext::messages_info::domain::name</a></div><div class="ttdeci">std::string name</div><div class="ttdoc">The name of the domain. </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:57</div></div> 196<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_a4dfe37c5a392e5106e65b396a5288b76"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a4dfe37c5a392e5106e65b396a5288b76">boost::locale::gnu_gettext::messages_info::callback_type</a></div><div class="ttdeci">function< std::vector< char > std::string const &file_name, std::string const &encoding) > callback_type</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:119</div></div> 197<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_a63bd8b01ca532a2657186bab3fa396a2"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#a63bd8b01ca532a2657186bab3fa396a2">boost::locale::gnu_gettext::messages_info::callback</a></div><div class="ttdeci">callback_type callback</div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:125</div></div> 198<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_ae939e0c5dbabba7fb4cc2872f4e7dac2"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#ae939e0c5dbabba7fb4cc2872f4e7dac2">boost::locale::gnu_gettext::messages_info::country</a></div><div class="ttdeci">std::string country</div><div class="ttdoc">The country we load the catalog for, like "US", "IL". </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:42</div></div> 199<div class="ttc" id="namespaceboost_1_1locale_1_1gnu__gettext_html_a6793c9f58e61e745205f3a2678b41a11"><div class="ttname"><a href="namespaceboost_1_1locale_1_1gnu__gettext.html#a6793c9f58e61e745205f3a2678b41a11">boost::locale::gnu_gettext::create_messages_facet</a></div><div class="ttdeci">message_format< CharType > * create_messages_facet(messages_info const &info)</div></div> 200<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_html_af543a11d3ff1d12e24c06306b30f8fb8"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info.html#af543a11d3ff1d12e24c06306b30f8fb8">boost::locale::gnu_gettext::messages_info::variant</a></div><div class="ttdeci">std::string variant</div><div class="ttdoc">Language variant, like "euro" so it would look for catalog like de_DE@euro. </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:43</div></div> 201<div class="ttc" id="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain_html_a7004c3d4bb7ff1ebdba50535723d84a5"><div class="ttname"><a href="structboost_1_1locale_1_1gnu__gettext_1_1messages__info_1_1domain.html#a7004c3d4bb7ff1ebdba50535723d84a5">boost::locale::gnu_gettext::messages_info::domain::encoding</a></div><div class="ttdeci">std::string encoding</div><div class="ttdoc">The character encoding for the domain. </div><div class="ttdef"><b>Definition:</b> gnu_gettext.hpp:58</div></div> 202</div><!-- fragment --></div><!-- contents --> 203</div><!-- doc-content --> 204 205 <li class="footer"> 206© 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. 207 </li> 208 </ul> 209 </div> 210</body> 211</html> 212