| 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 | /////////////////////////////////////////////////////////////////////////////// |