Opened 10 years ago
Last modified 10 years ago
#7225 new Feature Requests
xpressvie Symbol Tables,I want get mapped value by iterator ,not by semantic action
Reported by: | Owned by: | Eric Niebler | |
---|---|---|---|
Milestone: | To Be Determined | Component: | xpressive |
Version: | Boost 1.51.0 | Severity: | Problem |
Keywords: | Cc: |
Description
std::map< std::string, string> ones_map = map_list_of("one","1")("two","2"); std::string str( "one two three"); for(sregex_token_iterator cur( str.begin(), str.end(), number_rx );
; cur != sregex_token_iterator(); ++cur )
{
std::cout << *cur << ' ';will print 1 2
}
or str = regex_replace( str, ones_map, "$1"); can get "1 2" or, has existed an easy way? thank you!
Note:
See TracTickets
for help on using tickets.
sorry ! sregex_token_iterator should be sregex_iterator