}
std::string
-strip_whitespace(const std::string& string)
+strip_whitespace(string_view string)
{
auto is_space = [](int ch) { return std::isspace(ch); };
auto start = std::find_if_not(string.begin(), string.end(), is_space);
[[nodiscard]] std::string strip_ansi_csi_seqs(nonstd::string_view string);
// Strip whitespace from left and right side of a string.
-[[nodiscard]] std::string strip_whitespace(const std::string& string);
+[[nodiscard]] std::string strip_whitespace(nonstd::string_view string);
// Convert a string to lowercase.
[[nodiscard]] std::string to_lowercase(nonstd::string_view string);