1 #define BOOST_TEST_MODULE (trim test) 3 #include "boost/test/unit_test.hpp" 16 BOOST_AUTO_TEST_SUITE(trim_test)
32 BOOST_TEST(
trim(s2) == s1);
49 BOOST_AUTO_TEST_SUITE_END()
static std::string trim(const std::string &str, const std::string &whitespace=" \t")
std::string & trim(std::string &source, std::string const &t=" ")
std::string & trim_right(std::string &source, std::string const &t=" ")
std::string trim_copy(std::string source, std::string const &t=" ")
std::string trim_right_copy(std::string source, std::string const &t=" ")
BOOST_AUTO_TEST_CASE(trimmed_test)
std::string & trim_left(std::string &source, std::string const &t=" ")
std::string trim_left_copy(std::string source, std::string const &t=" ")