Template Function wt::format::trim

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)