tokenize a text and store col/row information

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

tokenize a text and store col/row information

Hi all,

is there a solution to tokenize a text with something like

template <typename iterator>
bool parse(iterator first, iterator last,
    std::vector<std::string> & words)
    namespace qi = boost::spirit::qi;

    bool r = qi::parse(first, last, +qi::alnum % +qi::space, words);

    if (first != last)
        return false;
    return r;

and to store the col/row information of every token too??

Thanks in advance!


Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
Spirit-general mailing list
[hidden email]