Horizon
str_util.hpp
1 #pragma once
2 #include <string>
3 
4 namespace horizon {
5 void ltrim(std::string &s);
6 void rtrim(std::string &s);
7 void trim(std::string &s);
8 std::string ltrim_copy(std::string s);
9 std::string rtrim_copy(std::string s);
10 } // namespace horizon
std::string trim(std::string const &str)
Returns a new string without whitespace at the start/end.
Definition: catch_amalgamated.cpp:5674