The valid represenation of string values are:
More...
#include <Grammar.h>
template<typename Iterator, typename Skipper>
class Gaudi::Parsers::StringGrammar< Iterator, Skipper >
The valid represenation of string values are:
- "abc" , "\"abc""
- 'abs' , '\'abc\''
- Todo:
- implement not ASCII chars in strings
- Author
- Alexander MAZUROV Alexa.nosp@m.nder.nosp@m..Mazu.nosp@m.rov@.nosp@m.gmail.nosp@m..com
-
Vanya BELYAEV ibely.nosp@m.aev@.nosp@m.physi.nosp@m.cs.s.nosp@m.yr.ed.nosp@m.u
- Date
- 2006-05-14
Definition at line 55 of file Grammar.h.
template<typename Iterator , typename Skipper >
template<typename Iterator , typename Skipper >
template<typename Iterator , typename Skipper >
template<typename Iterator , typename Skipper >
Definition at line 60 of file Grammar.h.
: StringGrammar::base_type(str) {
quote = enc::char_(qi::_r1);
>>
quote(qi::_a))[qi::_val += qi::_a]
| (enc::char_[qi::_val += qi::_1] -
quote(qi::_a)))
}
template<typename Iterator , typename Skipper >
Definition at line 93 of file GrammarsV2.h.
: StringGrammar::base_type( str ) {
quote = enc::char_(qi::_r1);
> *( (enc::char_(
'\\') >>
quote(qi::_a))[qi::_val += qi::_a]
| (enc::char_[qi::_val += qi::_1] -
quote(qi::_a))) >
;
}
template<typename Iterator , typename Skipper >
remove CR/LF symbols form the parsed strings
- Attention
- it is a bit dangerous operation The operation allows to write "very long" input strings for opts-files (it is actual e.g. for DataOnDemandSvc configuration) by splitting the strings into few lines All new-line symbols (as well as '
', '', CR/LF etc are substituted by ordinary blanks.
Definition at line 261 of file Grammars.h.
{
cur!=this->val().end();cur++)
}
template<typename Iterator , typename Skipper >
template<typename Iterator , typename Skipper >
template<typename Iterator , typename Skipper >
The documentation for this class was generated from the following files:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r7/GaudiCoreSvc/src/JobOptionsSvc/Grammar.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r7/GaudiKernel/GaudiKernel/Grammars.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r7/GaudiKernel/GaudiKernel/GrammarsV2.h