Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58772 - trunk/libs/spirit/example/karma
From: hartmut.kaiser_at_[hidden]
Date: 2010-01-06 11:07:44


Author: hkaiser
Date: 2010-01-06 11:07:43 EST (Wed, 06 Jan 2010)
New Revision: 58772
URL: http://svn.boost.org/trac/boost/changeset/58772

Log:
Spirit: minor edits in one of the Karma samples
Text files modified:
   trunk/libs/spirit/example/karma/printf_style_double_format.cpp | 14 +++++++-------
   1 files changed, 7 insertions(+), 7 deletions(-)

Modified: trunk/libs/spirit/example/karma/printf_style_double_format.cpp
==============================================================================
--- trunk/libs/spirit/example/karma/printf_style_double_format.cpp (original)
+++ trunk/libs/spirit/example/karma/printf_style_double_format.cpp 2010-01-06 11:07:43 EST (Wed, 06 Jan 2010)
@@ -47,7 +47,7 @@
 //
 
 ///////////////////////////////////////////////////////////////////////////////
-// define a data structure and an corresponding parser to hold the formatting
+// define a data structure and a corresponding parser to hold the formatting
 // information extracted from the format specification string
 namespace client
 {
@@ -89,11 +89,11 @@
             format %= '%' >> flags >> fill >> width >> prec >> type;
 
             // default flags is right aligned
- flags %= char_('+') | char_('-') | attr(' ');
- fill %= char_('0') | attr(' '); // default fill is space
- width %= uint_ | attr(-1);
- prec %= '.' >> uint_ | attr(3); // default is 3 digits
- type %= no_case[char_('e')] | char_('f') | no_case[char_('g')];
+ flags = char_('+') | char_('-') | attr(' ');
+ fill = char_('0') | attr(' '); // default fill is space
+ width = uint_ | attr(-1);
+ prec = '.' >> uint_ | attr(3); // default is 3 digits
+ type = no_case[char_('e')] | char_('f') | no_case[char_('g')];
         };
 
         qi::rule<Iterator, format_data()> format;
@@ -233,7 +233,7 @@
 
 ///////////////////////////////////////////////////////////////////////////////
 // This is the generator usable in any Karma output format expression, it needs
-// to be used as
+// to be utilized as
 //
 // generate(sink, real("%6.3f"), 3.1415926536); // prints: ' 3.142'
 //


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk