2010-09-28から1日間の記事一覧

対応表による文字列置換

C++

best tool in Boost for (massive) string replacement? Boost.Xpressiveを使用し、std::mapで文字列置換の対応表を作るという方法がすごく気に入りました。 #include <map> #include <string> #include <iostream> #include <boost/xpressive/xpressive_static.hpp> #include <boost/xpressive/regex_actions.hpp> using namespace boost::xpressive; int main…</boost/xpressive/regex_actions.hpp></boost/xpressive/xpressive_static.hpp></iostream></string></map>