Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62845 - branches/quickbook-1.5-spirit2
From: daniel_james_at_[hidden]
Date: 2010-06-12 09:04:28


Author: danieljames
Date: 2010-06-12 09:04:27 EDT (Sat, 12 Jun 2010)
New Revision: 62845
URL: http://svn.boost.org/trac/boost/changeset/62845

Log:
Use the ~ operator in a few places.
Text files modified:
   branches/quickbook-1.5-spirit2/doc_info_grammar.cpp | 22 +++++++++++-----------
   1 files changed, 11 insertions(+), 11 deletions(-)

Modified: branches/quickbook-1.5-spirit2/doc_info_grammar.cpp
==============================================================================
--- branches/quickbook-1.5-spirit2/doc_info_grammar.cpp (original)
+++ branches/quickbook-1.5-spirit2/doc_info_grammar.cpp 2010-06-12 09:04:27 EDT (Sat, 12 Jun 2010)
@@ -81,7 +81,7 @@
>> qi::raw[doc_types] [member_assign(&doc_info::doc_type)]
>> hard_space
>> qi::raw[
- *(qi::char_ - (qi::char_('[') | ']' | qi::eol))
+ *(~qi::char_("[]") - qi::eol)
                 ] [member_assign(&doc_info::doc_title)]
>> quickbook_version
>>
@@ -119,17 +119,17 @@
             | qi::eps [default_quickbook_version]
             ;
 
- doc_version = "version" >> hard_space >> qi::raw[*(qi::char_ - ']')];
- doc_id = "id" >> hard_space >> qi::raw[*(qi::char_ - ']')];
- doc_dirname = "dirname" >> hard_space >> qi::raw[*(qi::char_ - ']')];
- doc_category="category" >> hard_space >> qi::raw[*(qi::char_ - ']')];
- doc_last_revision = "last-revision" >> hard_space >> qi::raw[*(qi::char_ - ']')];
+ doc_version = "version" >> hard_space >> qi::raw[*~qi::char_(']')];
+ doc_id = "id" >> hard_space >> qi::raw[*~qi::char_(']')];
+ doc_dirname = "dirname" >> hard_space >> qi::raw[*~qi::char_(']')];
+ doc_category="category" >> hard_space >> qi::raw[*~qi::char_(']')];
+ doc_last_revision = "last-revision" >> hard_space >> qi::raw[*~qi::char_(']')];
 
         doc_copyright =
                 "copyright"
>> hard_space
>> (+(qi::uint_ >> space)) [member_assign(&doc_info::copyright_entry::years)]
- >> qi::raw[(*(qi::char_ - ']'))]
+ >> qi::raw[*~qi::char_(']')]
                                             [member_assign(&doc_info::copyright_entry::holder)]
             ;
 
@@ -144,10 +144,10 @@
         doc_author =
                 space
>> '['
- >> space
- >> (*(qi::char_ - ',')) [member_assign(&doc_info::author::surname)]
+ >> space
+ >> (*~qi::char_(',')) [member_assign(&doc_info::author::surname)]
>> ',' >> space
- >> (*(qi::char_ - ']')) [member_assign(&doc_info::author::firstname)]
+ >> (*~qi::char_(']')) [member_assign(&doc_info::author::firstname)]
>> ']'
             ;
 
@@ -178,7 +178,7 @@
                 qi::eps [actions.phrase_push]
>> *( common
                 | comment
- | (qi::char_ - ']') [actions.process]
+ | (~qi::char_(']')) [actions.process]
                 )
>> qi::eps [actions.phrase_pop]
             ;


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