【C++】template 統合スレ -- STL/Boost/Loki, etc.
■ このスレッドは過去ログ倉庫に格納されています
"<" と ">" に挟まれた文字列を検索して格納したいのですが。
これで良いでしょうか?
{
std::string text;
std::string __text;
std::string::iterator i_first;
std::string::iterator i_last;
i_first = __text.begin() + __text.find( "<", 0 ) + 1;
i_last = __text.begin() + __text.find( ">", 0 );
text.assign( i_first, i_last );
}
■ このスレッドは過去ログ倉庫に格納されています