Skip to content

Instantly share code, notes, and snippets.

@wjx0912
Last active March 24, 2018 07:08
Show Gist options
  • Save wjx0912/e7f7094f20c40d7af6b2d3787d6831c7 to your computer and use it in GitHub Desktop.
Save wjx0912/e7f7094f20c40d7af6b2d3787d6831c7 to your computer and use it in GitHub Desktop.
c++ boost split demo
std::vector<std::wstring> out_list;
boost::split(out_list, user_wstring1, boost::is_any_of(L" :;()[]<>,-+=/\\\r\n\t"), boost::token_compress_on);
if (2 != out_list.size())
return;
int testvalue = _ttoi(out_list[0].c_str());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment