Posted By

dongwonkwak on 02/02/15


Tagged

control boost c++ charater


Versions (?)

remove control characters


 / Published in: C++
 

remove all control characters in string

  1. #include <boost/range/algorithm/remove_if.hpp>
  2.  
  3. std::string str;
  4. tmp.erase (boost:: remove_if(str , :: iscntrl), str.end ());

Report this snippet  

You need to login to post a comment.