#include <tokens.h>
|
template<typename Iterator , typename Context , typename Skipper , typename Attribute > |
bool | parse (Iterator &first, Iterator const &last, Context &, Skipper const &skipper, Attribute &attr) const |
|
template<typename Context > |
boost::spirit::info | what (Context &) const |
|
Definition at line 208 of file tokens.h.
template<typename Iterator , typename Context , typename Skipper , typename Attribute >
bool fhicl::hex_parser::parse |
( |
Iterator & |
first, |
|
|
Iterator const & |
last, |
|
|
Context & |
, |
|
|
Skipper const & |
skipper, |
|
|
Attribute & |
attr |
|
) |
| const |
|
inline |
Definition at line 221 of file tokens.h.
227 boost::spirit::qi::skip_over(first, last, skipper);
229 static std::string const allowed{
"0123456789abcdefABCDEF"};
232 if (it == last || *it !=
'0')
237 if (it == last || toupper(*it) !=
'X')
242 while (it != last && allowed.find(*it) != std::string::npos)
248 Attribute
raw(first, it);
249 if (
raw.empty() ||
raw.size() == 2)
257 boost::spirit::traits::assign_to(result, attr);
bool canonical_number(std::string const &value, std::string &result)
bool maximally_munched_number(char const ch)
template<typename Context >
boost::spirit::info fhicl::hex_parser::what |
( |
Context & |
| ) |
const |
|
inline |
The documentation for this struct was generated from the following file: