Hello,
i am currently in the process of refactoring some old code into
c++11/14. Part of that code is a regex-like pattern matching mechanism,
which (due to compatibility reasons) should be kept in place for now.
However, in preparation of a future transition to std::regex, i would
like to go ahead, and store the results in a std::match_results object.
Unfortunately, i can't find any setter methods or constructors in this
class, except for the default and copy constructors. Is there any
(preferably portable) way to set the contents (sub-matches, prefix,
suffix) of a std::match_results object without going through std::basic_regex?
Hello,
i am currently in the process of refactoring some old code into
c++11/14. Part of that code is a regex-like pattern matching mechanism,
which (due to compatibility reasons) should be kept in place for now.
However, in preparation of a future transition to std::regex, i would
like to go ahead, and store the results in a std::match_results object.
Unfortunately, i can't find any setter methods or constructors in this
class, except for the default and copy constructors. Is there any
(preferably portable) way to set the contents (sub-matches, prefix,
suffix) of a std::match_results object without going through std::basic_regex?
TIA,
Hergen
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 418 |
Nodes: | 16 (3 / 13) |
Uptime: | 28:47:05 |
Calls: | 8,775 |
Calls today: | 2 |
Files: | 13,289 |
Messages: | 5,965,417 |