• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4<title>Struct printf</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7<link rel="home" href="../../index.html" title="Chapter 1. Boost.Convert 2.0">
8<link rel="up" href="../../header/boost/convert/printf_hpp.html" title="Header &lt;boost/convert/printf.hpp&gt;">
9<link rel="prev" href="../../header/boost/convert/printf_hpp.html" title="Header &lt;boost/convert/printf.hpp&gt;">
10<link rel="next" href="../../header/boost/convert/spirit_hpp.html" title="Header &lt;boost/convert/spirit.hpp&gt;">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%"><tr>
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15<td align="center"><a href="../../../../../../index.html">Home</a></td>
16<td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19<td align="center"><a href="../../../../../../more/index.htm">More</a></td>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="../../header/boost/convert/printf_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/convert/printf_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../header/boost/convert/spirit_hpp.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="refentry">
26<a name="boost.cnv.printf"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Struct printf</span></h2>
29<p>boost::cnv::printf</p>
30</div>
31<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../header/boost/convert/printf_hpp.html" title="Header &lt;boost/convert/printf.hpp&gt;">boost/convert/printf.hpp</a>&gt;
33
34</span>
35<span class="keyword">struct</span> <a class="link" href="printf.html" title="Struct printf">printf</a> <span class="special">:</span> <span class="keyword">public</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">cnv</span><span class="special">::</span><span class="identifier">cnvbase</span><span class="special">&lt;</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">cnv</span><span class="special">::</span><span class="identifier">printf</span> <span class="special">&gt;</span> <span class="special">{</span>
36  <span class="comment">// types</span>
37  <span class="keyword">typedef</span> <a class="link" href="printf.html" title="Struct printf">boost::cnv::printf</a>               <a name="boost.cnv.printf.this_type"></a><span class="identifier">this_type</span><span class="special">;</span>
38  <span class="keyword">typedef</span> <a class="link" href="cnvbase.html" title="Struct template cnvbase">boost::cnv::cnvbase</a><span class="special">&lt;</span> <a class="link" href="printf.html#boost.cnv.printf.this_type">this_type</a> <span class="special">&gt;</span> <a name="boost.cnv.printf.base_type"></a><span class="identifier">base_type</span><span class="special">;</span>
39
40  <span class="comment">// <a class="link" href="printf.html#idm45934307989552-bb">public member functions</a></span>
41  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> in_type<span class="special">&gt;</span>
42    <span class="identifier">cnv</span><span class="special">::</span><span class="identifier">range</span><span class="special">&lt;</span> <span class="keyword">char</span> <span class="special">*</span> <span class="special">&gt;</span> <a class="link" href="printf.html#idm45934307988992-bb"><span class="identifier">to_str</span></a><span class="special">(</span><span class="identifier">in_type</span><span class="special">,</span> <span class="keyword">char</span> <span class="special">*</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
43  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> string_type<span class="special">,</span> <span class="keyword">typename</span> out_type<span class="special">&gt;</span>
44    <span class="keyword">void</span> <a class="link" href="printf.html#idm45934307985648-bb"><span class="identifier">str_to</span></a><span class="special">(</span><span class="identifier">cnv</span><span class="special">::</span><span class="identifier">range</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span><span class="special">,</span> <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">out_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
45
46  <span class="comment">// <a class="link" href="printf.html#idm45934307981568-bb">private member functions</a></span>
47  <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Type<span class="special">&gt;</span> <span class="keyword">int</span> <a class="link" href="printf.html#idm45934307980992-bb"><span class="identifier">pos</span></a><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
48  <span class="keyword">char</span> <span class="keyword">const</span>  <span class="special">*</span> <a class="link" href="printf.html#idm45934307979024-bb"><span class="identifier">pformat</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
49  <span class="keyword">char</span> <span class="keyword">const</span>  <span class="special">*</span> <a class="link" href="printf.html#idm45934307977216-bb"><span class="identifier">format</span></a><span class="special">(</span><span class="keyword">int</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span>
50<span class="special">}</span><span class="special">;</span></pre></div>
51<div class="refsect1">
52<a name="idm45766273107568"></a><h2>Description</h2>
53<div class="refsect2">
54<a name="idm45766273107152"></a><h3>
55<a name="idm45934307989552-bb"></a><code class="computeroutput">printf</code> public member functions</h3>
56<div class="orderedlist"><ol class="orderedlist" type="1">
57<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> in_type<span class="special">&gt;</span>
58  <span class="identifier">cnv</span><span class="special">::</span><span class="identifier">range</span><span class="special">&lt;</span> <span class="keyword">char</span> <span class="special">*</span> <span class="special">&gt;</span> <a name="idm45934307988992-bb"></a><span class="identifier">to_str</span><span class="special">(</span><span class="identifier">in_type</span> value_in<span class="special">,</span> <span class="keyword">char</span> <span class="special">*</span> buf<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
59<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> string_type<span class="special">,</span> <span class="keyword">typename</span> out_type<span class="special">&gt;</span>
60  <span class="keyword">void</span> <a name="idm45934307985648-bb"></a><span class="identifier">str_to</span><span class="special">(</span><span class="identifier">cnv</span><span class="special">::</span><span class="identifier">range</span><span class="special">&lt;</span> <span class="identifier">string_type</span> <span class="special">&gt;</span> range<span class="special">,</span>
61              <span class="identifier">optional</span><span class="special">&lt;</span> <span class="identifier">out_type</span> <span class="special">&gt;</span> <span class="special">&amp;</span> result_out<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
62</ol></div>
63</div>
64<div class="refsect2">
65<a name="idm45766273074384"></a><h3>
66<a name="idm45934307981568-bb"></a><code class="computeroutput">printf</code> private member functions</h3>
67<div class="orderedlist"><ol class="orderedlist" type="1">
68<li class="listitem"><pre class="literallayout"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> Type<span class="special">&gt;</span> <span class="keyword">int</span> <a name="idm45934307980992-bb"></a><span class="identifier">pos</span><span class="special">(</span><span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
69<li class="listitem"><pre class="literallayout"><span class="keyword">char</span> <span class="keyword">const</span>  <span class="special">*</span> <a name="idm45934307979024-bb"></a><span class="identifier">pformat</span><span class="special">(</span><span class="keyword">int</span> pos<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
70<li class="listitem"><pre class="literallayout"><span class="keyword">char</span> <span class="keyword">const</span>  <span class="special">*</span> <a name="idm45934307977216-bb"></a><span class="identifier">format</span><span class="special">(</span><span class="keyword">int</span> pos<span class="special">)</span> <span class="keyword">const</span><span class="special">;</span></pre></li>
71</ol></div>
72</div>
73</div>
74</div>
75<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
76<td align="left"></td>
77<td align="right"><div class="copyright-footer">Copyright © 2009-2016 Vladimir Batov<p>
78        Distributed under the Boost Software License, Version 1.0. See copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>.
79      </p>
80</div></td>
81</tr></table>
82<hr>
83<div class="spirit-nav">
84<a accesskey="p" href="../../header/boost/convert/printf_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/convert/printf_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="../../header/boost/convert/spirit_hpp.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
85</div>
86</body>
87</html>
88