Template Function wt::format::trim¶
Defined in File utils.hpp
Function Documentation¶
-
template<bool trim_prefix = true, bool trim_suffix = true>
inline constexpr std::string wt::format::trim(std::string_view sv, const char *trimchars = " \t\v\r\n") noexcept¶ Trims prefix and suffix from the string.
- Parameters:
trimchars – characters to trim (defaults to whitespace and new line characters)