YAGNI! More...
#include <strtool.hpp>
Public Member Functions | |
entity_translator (const entity_map &map, bool reverse) | |
Sets the map and reverse options to be used from calls to operator(). | |
void | operator() (std::string &str) const |
Calls translate_entities( str, MAP, REVERSE ), where MAP and REVERSE are the flags set via the ctor. |
YAGNI!
A functor for translating entities in a set of strings. Designed for use with std::for_each().
Definition at line 284 of file strtool.hpp.
s11n::io::strtool::entity_translator::entity_translator | ( | const entity_map & | map, | |
bool | reverse | |||
) | [inline] |
Sets the map and reverse options to be used from calls to operator().
Definition at line 290 of file strtool.hpp.
void s11n::io::strtool::entity_translator::operator() | ( | std::string & | str | ) | const [inline] |
Calls translate_entities( str, MAP, REVERSE ), where MAP and REVERSE are the flags set via the ctor.
Definition at line 300 of file strtool.hpp.
References s11n::io::strtool::translate_entities().