MCPcopy Create free account
hub / github.com/boostorg/spirit / parse_date

Function parse_date

example/qi/parse_date.cpp:74–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73 template <typename Iterator>
74 bool parse_date(Iterator& first, Iterator last, boost::gregorian::date& d)
75 {
76 typedef boost::fusion::vector<int, int, int> date_parts;
77 qi::rule<Iterator, date_parts(), qi::space_type> date =
78 qi::int_ >> '-' >> qi::int_ >> '-' >> qi::int_;
79
80 return phrase_parse(first, last, date, qi::space, d);
81 }
82}
83
84///////////////////////////////////////////////////////////////////////////////

Callers 1

mainFunction · 0.85

Calls 1

phrase_parseFunction · 0.50

Tested by

no test coverage detected