std::string line = " hello world ";
boost::algorithm::trim(line);
Showing posts with label boost. Show all posts
Showing posts with label boost. Show all posts
Tuesday, December 21, 2010
Removing leading and trailing whitespace in C++
If you have the boost library installed, its simply a one liner
Labels:
boost,
c++,
remove whitespace,
tips,
whitespace
Thursday, May 6, 2010
Subscribe to:
Posts (Atom)