/ Published in: C++
remove all control characters in string
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#include <boost/range/algorithm/remove_if.hpp> std::string str; tmp.erase (boost:: remove_if(str , :: iscntrl), str.end ());