Last active
March 24, 2018 07:08
-
-
Save wjx0912/e7f7094f20c40d7af6b2d3787d6831c7 to your computer and use it in GitHub Desktop.
c++ boost split demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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