From 0ca22c7d6d650c80906bd1217fccf32066cc2502 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Sun, 28 Sep 2025 22:50:56 +0200 Subject: str: Add trim() --- src/str.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/str.hh') diff --git a/src/str.hh b/src/str.hh index 58d5d32..e1ee549 100644 --- a/src/str.hh +++ b/src/str.hh @@ -13,6 +13,9 @@ void split(std::string_view str, std::vector& out, char separator = ' ', bool keep_empty = false); +[[nodiscard]] +std::string_view trim(std::string_view str); + } // namespace str #endif // STR_HH -- cgit v1.3