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

Function parse_qstring

example/qi/custom_string.cpp:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60{
61 template <typename Iterator>
62 bool parse_qstring(Iterator first, Iterator last, QString& t)
63 {
64 using boost::spirit::qi::char_;
65 using boost::spirit::ascii::space;
66 using boost::spirit::qi::phrase_parse;
67
68 bool r = phrase_parse(first, last, +char_, space, t);
69 if (!r || first != last) // fail if we did not get a full match
70 return false;
71
72 return r;
73 }
74}
75
76///////////////////////////////////////////////////////////////////////////////

Callers 1

mainFunction · 0.85

Calls 1

phrase_parseFunction · 0.50

Tested by

no test coverage detected