LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
remove_whitespace.cc
Go to the documentation of this file.
1
#include "
art/Utilities/detail/remove_whitespace.h
"
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
11
art::detail::remove_whitespace
(std::string& str)
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
}
remove_whitespace.h
art::detail::has_whitespace
bool has_whitespace(std::string const &str)
Definition:
remove_whitespace.cc:17
art::detail::remove_whitespace
void remove_whitespace(std::string &str)
Definition:
remove_whitespace.cc:11
art
Utilities
detail
remove_whitespace.cc
Generated on Thu May 2 2024 20:59:30 for LArSoft by
1.8.11