remove_whitespace.cc
Go to the documentation of this file.
2 
3 #include "boost/algorithm/string.hpp"
4 #include "boost/range/algorithm_ext.hpp"
5 
6 namespace {
7  std::string const whitespace_chars{" \t"};
8 }
9 
10 void
12 {
13  boost::remove_erase_if(str, boost::is_any_of(whitespace_chars));
14 }
15 
16 bool
18 {
19  return str.find_first_of(whitespace_chars) != std::string::npos;
20 }
std::string string
Definition: nybbler.cc:12
bool has_whitespace(std::string const &str)
void remove_whitespace(std::string &str)
static QCString str