Friday, 6 September 2013

Represent ASCII EOH character as string?

Represent ASCII EOH character as string?

I'd like to use the code below to split a line based on the ASCII "Start
Of Heading" (SOH) character:
#include <boost/algorithm/string.hpp>
std::vector<std::string> strs;
boost::split(strs, "string to split", boost::is_any_of("\t "));
As you can see, the delimiter is represented by the string "\t ". How do I
represent the SOH character as a string to split on?
http://www.asciitable.com/index/asciifull.gif

No comments:

Post a Comment