29 #include <boost/algorithm/string.hpp>
31 #include "WStringUtils.h"
37 std::string str = source;
38 str.erase( str.find_last_not_of( t ) + 1 );
44 std::string str = source;
45 str.erase( 0 , source.find_first_not_of( t ) );
51 std::string str = source;
57 std::string str = source;
58 std::transform( source.begin(), source.end(), str.begin(), ::toupper );
64 std::string str = source;
65 std::transform( source.begin(), source.end(), str.begin(), ::tolower );
70 const std::string& delim,
73 std::vector< std::string > result;
74 namespace ba = boost::algorithm;
75 ba::token_compress_mode_type compression = ba::token_compress_on;
78 compression = ba::token_compress_off;
80 ba::split( result, source, ba::is_any_of( delim ), compression );
86 if( result.back() ==
"" )