[Boost-bugs] [Boost C++ Libraries] #7225: xpressvie Symbol Tables, I want get mapped value by iterator , not by semantic action

Subject: [Boost-bugs] [Boost C++ Libraries] #7225: xpressvie Symbol Tables, I want get mapped value by iterator , not by semantic action
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-08-13 13:01:43


#7225: xpressvie Symbol Tables,I want get mapped value by iterator ,not by
semantic action
-------------------------------+--------------------------------------------
 Reporter: taodm@… | Owner: eric_niebler
     Type: Feature Requests | Status: new
Milestone: To Be Determined | Component: xpressive
  Version: Boost 1.51.0 | Severity: Problem
 Keywords: |
-------------------------------+--------------------------------------------
 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!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7225>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:10 UTC