2012-05-16から1日間の記事一覧

Boost.Xpressive で HTML タグの中身とタグ名を取得する

こんな感じで簡単に取得出来るみたい。 [ソース] #define _SCL_SECURE_NO_WARNINGS #include <iostream> #include <boost/xpressive/xpressive.hpp> #include <boost/xpressive/xpressive_static.hpp> int main(){ namespace x = boost::xpressive; using x::s1; using x::_w; using x::_; // タグで囲まれた文字列を取得 x::mark_tag in_tag(</boost/xpressive/xpressive_static.hpp></boost/xpressive/xpressive.hpp></iostream>…