|
Boost Users : |
Subject: Re: [Boost-users] [boost-regex] 1.47.0 regexp_search with match_partial does not return 'what'
From: John Maddock (john_at_[hidden])
Date: 2013-09-18 13:34:29
> But i need the correct positions for a buffer handling.
Please try updating your Boost version, this works for me with the last
(1.54) release, adding:
std::cout << "what[0] = " << std::string(what[0].first,
what[0].second) << std::endl;
std::cout << "location = " << what.prefix().second -
what.prefix().first << " length = " << what[0].second - what[0].first <<
std::endl;
Produces:
what[0] = <my:meta
location = 12 length = 8
HTH, John.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net