| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| <meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| <title>Boost.Locale: I/O Stream manipulators</title> |
| |
| <link href="tabs.css" rel="stylesheet" type="text/css"/> |
| <link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| <link href="navtree.css" rel="stylesheet" type="text/css"/> |
| <script type="text/javascript" src="jquery.js"></script> |
| <script type="text/javascript" src="resize.js"></script> |
| <script type="text/javascript" src="navtree.js"></script> |
| <script type="text/javascript"> |
| $(document).ready(initResizable); |
| </script> |
| |
| |
| </head> |
| <body> |
| <div id="top"><!-- do not remove this div! --> |
| |
| |
| <div id="titlearea"> |
| <table cellspacing="0" cellpadding="0"> |
| <tbody> |
| <tr style="height: 56px;"> |
| |
| <td id="projectlogo"><img alt="Logo" src="boost-small.png"/></td> |
| |
| |
| <td style="padding-left: 0.5em;"> |
| <div id="projectname">Boost.Locale |
| |
| </div> |
| |
| </td> |
| |
| |
| |
| </tr> |
| </tbody> |
| </table> |
| </div> |
| |
| <!-- Generated by Doxygen 1.7.6.1 --> |
| <div id="navrow1" class="tabs"> |
| <ul class="tablist"> |
| <li><a href="index.html"><span>Main Page</span></a></li> |
| <li><a href="modules.html"><span>Modules</span></a></li> |
| <li><a href="namespaces.html"><span>Namespaces</span></a></li> |
| <li><a href="annotated.html"><span>Classes</span></a></li> |
| <li><a href="files.html"><span>Files</span></a></li> |
| <li><a href="examples.html"><span>Examples</span></a></li> |
| </ul> |
| </div> |
| </div> |
| <div id="side-nav" class="ui-resizable side-nav-resizable"> |
| <div id="nav-tree"> |
| <div id="nav-tree-contents"> |
| </div> |
| </div> |
| <div id="splitbar" style="-moz-user-select:none;" |
| class="ui-resizable-handle"> |
| </div> |
| </div> |
| <script type="text/javascript"> |
| initNavTree('group__manipulators.html',''); |
| </script> |
| <div id="doc-content"> |
| <div class="header"> |
| <div class="summary"> |
| <a href="#func-members">Functions</a> </div> |
| <div class="headertitle"> |
| <div class="title">I/O Stream manipulators</div> </div> |
| <div class="ingroups"><a class="el" href="group__message.html">Message Formatting (translation)</a></div></div><!--header--> |
| <div class="contents"> |
| <table class="memberdecls"> |
| <tr><td colspan="2"><h2><a name="func-members"></a> |
| Functions</h2></td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga879b679c0a88b7af9ac059a6e8f67c0a">boost::locale::as::posix</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gaee05db73f5525d9a010cdc3aa02f634f">boost::locale::as::number</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga97c4997f9692834ea7b5ed3e8137d5fd">boost::locale::as::currency</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga365767c66c9c82fb646458f5eace8534">boost::locale::as::percent</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gae05b82e6658dc573521518fed5f5c77f">boost::locale::as::date</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gae669b101cbeaed6f6d246ebdcaa8f39c">boost::locale::as::time</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga820edf843e20847a0c4ccb8da0c4acd8">boost::locale::as::datetime</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga782b256b82922e6a5f32446787a6f7dc">boost::locale::as::strftime</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gac65e6cd9619db80d60793bbd86a3bd77">boost::locale::as::spellout</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga50cc23779fd846809182e50345b4eb7c">boost::locale::as::ordinal</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga18f1cb392e5b26c12a9deaff816e7998">boost::locale::as::currency_default</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gab8bc145e8147e45e9b9dc0ee9edd9fbe">boost::locale::as::currency_iso</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga2b1ea6b22e2c6f3a162264d9e59d3f95">boost::locale::as::currency_national</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga0970bc4cb3a4ab8070faa04808f65052">boost::locale::as::time_default</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gada3d88eef293c9495a3f7d756d369fd3">boost::locale::as::time_short</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga3f3cc44eeeaffc3b90bebe7660b3e853">boost::locale::as::time_medium</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gad6590ea48c57d53899b90d3464cf3c0b">boost::locale::as::time_long</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga9a8bd936176e3c81dfa07748e1cbabd4">boost::locale::as::time_full</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gacb5b9243e6537a9378e2d020a4e6a57a">boost::locale::as::date_default</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga295c7b48ce2732c196df31a70660b7b9">boost::locale::as::date_short</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga3b9dcc64afbd67883603cfa7bb67e6c4">boost::locale::as::date_medium</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gac553a86e8d0606c4a6f6d75c3cb104e7">boost::locale::as::date_long</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gad8d6858ec18524c9a993da387c896d0e">boost::locale::as::date_full</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr> |
| <tr><td class="memTemplItemLeft" align="right" valign="top">unspecified_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga84cc8985e5305ef54394e84c10223866">boost::locale::as::ftime</a> (std::basic_string< CharType > const &format)</td></tr> |
| <tr><td class="memTemplParams" colspan="2">template<typename CharType > </td></tr> |
| <tr><td class="memTemplItemLeft" align="right" valign="top">unspecified_type </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gae7814e66e9b73b632c28f9cdc58592eb">boost::locale::as::ftime</a> (CharType const *format)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gac90c969d876305b8584def8632ae1808">boost::locale::as::gmt</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">std::ios_base & </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gac6cb5458543daf651cd6b48812891541">boost::locale::as::local_time</a> (std::ios_base &ios)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">unspecified_type </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gad51fbdc634fe0c81e5183915e9eeb238">boost::locale::as::time_zone</a> (char const *id)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">unspecified_type </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#ga4348099506fc7c52945e639683398a20">boost::locale::as::time_zone</a> (std::string const &id)</td></tr> |
| <tr><td class="memItemLeft" align="right" valign="top">unspecified_type </td><td class="memItemRight" valign="bottom"><a class="el" href="group__manipulators.html#gab522188e3d82f1d2898b290b9132925e">boost::locale::as::domain</a> (std::string const &id)</td></tr> |
| </table> |
| <hr/><h2>Function Documentation</h2> |
| <a class="anchor" id="ga97c4997f9692834ea7b5ed3e8137d5fd"></a><!-- doxytag: member="boost::locale::as::currency" ref="ga97c4997f9692834ea7b5ed3e8137d5fd" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga97c4997f9692834ea7b5ed3e8137d5fd">boost::locale::as::currency</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Format currency, number is treated like amount of money </p> |
| <dl><dt><b>Examples: </b></dt><dd><a class="el" href="hello_8cpp-example.html#a4">hello.cpp</a>, and <a class="el" href="whello_8cpp-example.html#a4">whello.cpp</a>.</dd> |
| </dl> |
| </div> |
| </div> |
| <a class="anchor" id="ga18f1cb392e5b26c12a9deaff816e7998"></a><!-- doxytag: member="boost::locale::as::currency_default" ref="ga18f1cb392e5b26c12a9deaff816e7998" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga18f1cb392e5b26c12a9deaff816e7998">boost::locale::as::currency_default</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set default currency formatting style -- national, like "$" </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gab8bc145e8147e45e9b9dc0ee9edd9fbe"></a><!-- doxytag: member="boost::locale::as::currency_iso" ref="gab8bc145e8147e45e9b9dc0ee9edd9fbe" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gab8bc145e8147e45e9b9dc0ee9edd9fbe">boost::locale::as::currency_iso</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set ISO currency formatting style, like "USD", (requires ICU >= 4.2) </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga2b1ea6b22e2c6f3a162264d9e59d3f95"></a><!-- doxytag: member="boost::locale::as::currency_national" ref="ga2b1ea6b22e2c6f3a162264d9e59d3f95" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga2b1ea6b22e2c6f3a162264d9e59d3f95">boost::locale::as::currency_national</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set national currency formatting style, like "$" </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gae05b82e6658dc573521518fed5f5c77f"></a><!-- doxytag: member="boost::locale::as::date" ref="gae05b82e6658dc573521518fed5f5c77f" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gae05b82e6658dc573521518fed5f5c77f">boost::locale::as::date</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Format a date, number is treated as POSIX time </p> |
| <dl><dt><b>Examples: </b></dt><dd><a class="el" href="hello_8cpp-example.html#a5">hello.cpp</a>, and <a class="el" href="whello_8cpp-example.html#a5">whello.cpp</a>.</dd> |
| </dl> |
| </div> |
| </div> |
| <a class="anchor" id="gacb5b9243e6537a9378e2d020a4e6a57a"></a><!-- doxytag: member="boost::locale::as::date_default" ref="gacb5b9243e6537a9378e2d020a4e6a57a" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gacb5b9243e6537a9378e2d020a4e6a57a">boost::locale::as::date_default</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set default (medium) date formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gad8d6858ec18524c9a993da387c896d0e"></a><!-- doxytag: member="boost::locale::as::date_full" ref="gad8d6858ec18524c9a993da387c896d0e" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gad8d6858ec18524c9a993da387c896d0e">boost::locale::as::date_full</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set full date formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gac553a86e8d0606c4a6f6d75c3cb104e7"></a><!-- doxytag: member="boost::locale::as::date_long" ref="gac553a86e8d0606c4a6f6d75c3cb104e7" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gac553a86e8d0606c4a6f6d75c3cb104e7">boost::locale::as::date_long</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set long date formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga3b9dcc64afbd67883603cfa7bb67e6c4"></a><!-- doxytag: member="boost::locale::as::date_medium" ref="ga3b9dcc64afbd67883603cfa7bb67e6c4" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga3b9dcc64afbd67883603cfa7bb67e6c4">boost::locale::as::date_medium</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set medium date formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga295c7b48ce2732c196df31a70660b7b9"></a><!-- doxytag: member="boost::locale::as::date_short" ref="ga295c7b48ce2732c196df31a70660b7b9" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga295c7b48ce2732c196df31a70660b7b9">boost::locale::as::date_short</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set short date formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga820edf843e20847a0c4ccb8da0c4acd8"></a><!-- doxytag: member="boost::locale::as::datetime" ref="ga820edf843e20847a0c4ccb8da0c4acd8" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga820edf843e20847a0c4ccb8da0c4acd8">boost::locale::as::datetime</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Format a date and time, number is treated as POSIX time </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gab522188e3d82f1d2898b290b9132925e"></a><!-- doxytag: member="boost::locale::as::domain" ref="gab522188e3d82f1d2898b290b9132925e" args="(std::string const &id)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">unspecified_type <a class="el" href="group__manipulators.html#gab522188e3d82f1d2898b290b9132925e">boost::locale::as::domain</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::string const & </td> |
| <td class="paramname"><em>id</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Manipulator for switching message domain in ostream,</p> |
| <dl class="note"><dt><b>Note:</b></dt><dd>The returned object throws std::bad_cast if the I/O stream does not have <a class="el" href="classboost_1_1locale_1_1message__format.html">message_format</a> facet installed </dd></dl> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga84cc8985e5305ef54394e84c10223866"></a><!-- doxytag: member="boost::locale::as::ftime" ref="ga84cc8985e5305ef54394e84c10223866" args="(std::basic_string< CharType > const &format)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <div class="memtemplate"> |
| template<typename CharType > </div> |
| <table class="memname"> |
| <tr> |
| <td class="memname">unspecified_type <a class="el" href="group__manipulators.html#ga84cc8985e5305ef54394e84c10223866">boost::locale::as::ftime</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::basic_string< CharType > const & </td> |
| <td class="paramname"><em>format</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set strftime like formatting string</p> |
| <p>Please note, formatting flags are very similar but not exactly the same as flags for C function strftime. Differences: some flags as "%e" do not add blanks to fill text up to two spaces, not all flags supported.</p> |
| <p>Flags:</p> |
| <ul> |
| <li>"%a" -- Abbreviated weekday (Sun.)</li> |
| <li>"%A" -- Full weekday (Sunday)</li> |
| <li>"%b" -- Abbreviated month (Jan.)</li> |
| <li>"%B" -- Full month (January)</li> |
| <li>"%c" -- Locale date-time format. **Note:** prefer using "as::datetime"</li> |
| <li>"%d" -- Day of Month [01,31]</li> |
| <li>"%e" -- Day of Month [1,31]</li> |
| <li>"%h" -- Same as "%b"</li> |
| <li>"%H" -- 24 clock hour [00,23]</li> |
| <li>"%I" -- 12 clock hour [01,12]</li> |
| <li>"%j" -- Day of year [1,366]</li> |
| <li>"%m" -- Month [01,12]</li> |
| <li>"%M" -- Minute [00,59]</li> |
| <li>"%n" -- New Line</li> |
| <li>"%p" -- AM/PM in locale representation</li> |
| <li>"%r" -- Time with AM/PM, same as "%I:%M:%S %p"</li> |
| <li>"%R" -- Same as "%H:%M"</li> |
| <li>"%S" -- Second [00,61]</li> |
| <li>"%t" -- Tab character</li> |
| <li>"%T" -- Same as "%H:%M:%S"</li> |
| <li>"%x" -- Local date representation. **Note:** prefer using "as::date"</li> |
| <li>"%X" -- Local time representation. **Note:** prefer using "as::time"</li> |
| <li>"%y" -- Year [00,99]</li> |
| <li>"%Y" -- 4 digits year. (2009)</li> |
| <li>"%Z" -- Time Zone</li> |
| <li>"%%" -- Percent symbol </li> |
| </ul> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gae7814e66e9b73b632c28f9cdc58592eb"></a><!-- doxytag: member="boost::locale::as::ftime" ref="gae7814e66e9b73b632c28f9cdc58592eb" args="(CharType const *format)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <div class="memtemplate"> |
| template<typename CharType > </div> |
| <table class="memname"> |
| <tr> |
| <td class="memname">unspecified_type <a class="el" href="group__manipulators.html#ga84cc8985e5305ef54394e84c10223866">boost::locale::as::ftime</a> </td> |
| <td>(</td> |
| <td class="paramtype">CharType const * </td> |
| <td class="paramname"><em>format</em></td><td>)</td> |
| <td></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>See <a class="el" href="group__manipulators.html#ga84cc8985e5305ef54394e84c10223866">ftime(std::basic_string<CharType> const &format)</a> </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gac90c969d876305b8584def8632ae1808"></a><!-- doxytag: member="boost::locale::as::gmt" ref="gac90c969d876305b8584def8632ae1808" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gac90c969d876305b8584def8632ae1808">boost::locale::as::gmt</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set GMT time zone to stream </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gac6cb5458543daf651cd6b48812891541"></a><!-- doxytag: member="boost::locale::as::local_time" ref="gac6cb5458543daf651cd6b48812891541" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gac6cb5458543daf651cd6b48812891541">boost::locale::as::local_time</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set local time zone to stream </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gaee05db73f5525d9a010cdc3aa02f634f"></a><!-- doxytag: member="boost::locale::as::number" ref="gaee05db73f5525d9a010cdc3aa02f634f" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gaee05db73f5525d9a010cdc3aa02f634f">boost::locale::as::number</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Format a number. Note, unlike standard number formatting, integers would be treated like real numbers when std::fixed or std::scientific manipulators were applied </p> |
| <dl><dt><b>Examples: </b></dt><dd><a class="el" href="hello_8cpp-example.html#a3">hello.cpp</a>, and <a class="el" href="whello_8cpp-example.html#a3">whello.cpp</a>.</dd> |
| </dl> |
| </div> |
| </div> |
| <a class="anchor" id="ga50cc23779fd846809182e50345b4eb7c"></a><!-- doxytag: member="boost::locale::as::ordinal" ref="ga50cc23779fd846809182e50345b4eb7c" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga50cc23779fd846809182e50345b4eb7c">boost::locale::as::ordinal</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Write an order of the number like 4th. </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga365767c66c9c82fb646458f5eace8534"></a><!-- doxytag: member="boost::locale::as::percent" ref="ga365767c66c9c82fb646458f5eace8534" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga365767c66c9c82fb646458f5eace8534">boost::locale::as::percent</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Format percent, value 0.3 is treated as 30%. </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga879b679c0a88b7af9ac059a6e8f67c0a"></a><!-- doxytag: member="boost::locale::as::posix" ref="ga879b679c0a88b7af9ac059a6e8f67c0a" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga879b679c0a88b7af9ac059a6e8f67c0a">boost::locale::as::posix</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Format values with "POSIX" or "C" locale. Note, if locale was created with additional non-classic locale then These numbers may be localized </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gac65e6cd9619db80d60793bbd86a3bd77"></a><!-- doxytag: member="boost::locale::as::spellout" ref="gac65e6cd9619db80d60793bbd86a3bd77" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gac65e6cd9619db80d60793bbd86a3bd77">boost::locale::as::spellout</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Spell the number, like "one hundred and ten" </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga782b256b82922e6a5f32446787a6f7dc"></a><!-- doxytag: member="boost::locale::as::strftime" ref="ga782b256b82922e6a5f32446787a6f7dc" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga782b256b82922e6a5f32446787a6f7dc">boost::locale::as::strftime</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Create formatted date time, Please note, this manipulator only changes formatting mode, and not format itself, so you are probably looking for ftime manipulator </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gae669b101cbeaed6f6d246ebdcaa8f39c"></a><!-- doxytag: member="boost::locale::as::time" ref="gae669b101cbeaed6f6d246ebdcaa8f39c" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gae669b101cbeaed6f6d246ebdcaa8f39c">boost::locale::as::time</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Format a time, number is treated as POSIX time </p> |
| <dl><dt><b>Examples: </b></dt><dd><a class="el" href="hello_8cpp-example.html#a2">hello.cpp</a>, and <a class="el" href="whello_8cpp-example.html#a2">whello.cpp</a>.</dd> |
| </dl> |
| </div> |
| </div> |
| <a class="anchor" id="ga0970bc4cb3a4ab8070faa04808f65052"></a><!-- doxytag: member="boost::locale::as::time_default" ref="ga0970bc4cb3a4ab8070faa04808f65052" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga0970bc4cb3a4ab8070faa04808f65052">boost::locale::as::time_default</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set default (medium) time formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga9a8bd936176e3c81dfa07748e1cbabd4"></a><!-- doxytag: member="boost::locale::as::time_full" ref="ga9a8bd936176e3c81dfa07748e1cbabd4" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga9a8bd936176e3c81dfa07748e1cbabd4">boost::locale::as::time_full</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set full time formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gad6590ea48c57d53899b90d3464cf3c0b"></a><!-- doxytag: member="boost::locale::as::time_long" ref="gad6590ea48c57d53899b90d3464cf3c0b" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gad6590ea48c57d53899b90d3464cf3c0b">boost::locale::as::time_long</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set long time formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga3f3cc44eeeaffc3b90bebe7660b3e853"></a><!-- doxytag: member="boost::locale::as::time_medium" ref="ga3f3cc44eeeaffc3b90bebe7660b3e853" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#ga3f3cc44eeeaffc3b90bebe7660b3e853">boost::locale::as::time_medium</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set medium time formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gada3d88eef293c9495a3f7d756d369fd3"></a><!-- doxytag: member="boost::locale::as::time_short" ref="gada3d88eef293c9495a3f7d756d369fd3" args="(std::ios_base &ios)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">std::ios_base& <a class="el" href="group__manipulators.html#gada3d88eef293c9495a3f7d756d369fd3">boost::locale::as::time_short</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::ios_base & </td> |
| <td class="paramname"><em>ios</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>set short time formatting style </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="gad51fbdc634fe0c81e5183915e9eeb238"></a><!-- doxytag: member="boost::locale::as::time_zone" ref="gad51fbdc634fe0c81e5183915e9eeb238" args="(char const *id)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">unspecified_type <a class="el" href="group__manipulators.html#gad51fbdc634fe0c81e5183915e9eeb238">boost::locale::as::time_zone</a> </td> |
| <td>(</td> |
| <td class="paramtype">char const * </td> |
| <td class="paramname"><em>id</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set time zone using <em>id</em> </p> |
| |
| </div> |
| </div> |
| <a class="anchor" id="ga4348099506fc7c52945e639683398a20"></a><!-- doxytag: member="boost::locale::as::time_zone" ref="ga4348099506fc7c52945e639683398a20" args="(std::string const &id)" --> |
| <div class="memitem"> |
| <div class="memproto"> |
| <table class="memname"> |
| <tr> |
| <td class="memname">unspecified_type <a class="el" href="group__manipulators.html#gad51fbdc634fe0c81e5183915e9eeb238">boost::locale::as::time_zone</a> </td> |
| <td>(</td> |
| <td class="paramtype">std::string const & </td> |
| <td class="paramname"><em>id</em></td><td>)</td> |
| <td><code> [inline]</code></td> |
| </tr> |
| </table> |
| </div> |
| <div class="memdoc"> |
| <p>Set time zone using <em>id</em> </p> |
| |
| </div> |
| </div> |
| </div><!-- contents --> |
| </div> |
| <div id="nav-path" class="navpath"> |
| <ul> |
| |
| <li class="footer"> |
| © Copyright 2009-2012 Artyom Beilis, Distributed under the <a href="http://www.boost.org/LICENSE_1_0.txt">Boost Software License</a>, Version 1.0. |
| </li> |
| </ul> |
| </div> |
| |
| |
| </body> |
| </html> |