LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
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
17 art::detail::has_whitespace(std::string const& str)
18 {
19  return str.find_first_of(whitespace_chars) != std::string::npos;
20 }
bool has_whitespace(std::string const &str)
void remove_whitespace(std::string &str)