remove control characters

/ Published in: C++
Save to your folder(s)

remove all control characters in string

Copy this code and paste it in your HTML
  1. #include <boost/range/algorithm/remove_if.hpp>
  3. std::string str;
  4. tmp.erase (boost:: remove_if(str , :: iscntrl), str.end ());

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.