#include <boost/algorithm/string.hpp>
using namespace boost;
// 全部替换 字符串
#include <boost/algorithm/string/replace.hpp>
wstring str = L"1 2 3";
boost::replace_all(str, L" ", L"");
#include <boost/locale.hpp>
// wstring string 相互转换及指定字符集
std::string strGbk = "你好";
std::wstring wstr = boost::locale::conv::to_utf<wchar_t>(strGbk, "GBK");
std::string str = boost::locale::conv::from_utf<wchar_t>(wstr, "GBK");