Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Utilities
detail
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
}
string
std::string string
Definition:
nybbler.cc:12
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
str
static QCString str
Definition:
fortrancode.cpp:27098
Generated by
1.8.11