summaryrefslogtreecommitdiff
path: root/src/str.hh
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-09-27 20:11:32 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-09-28 22:48:24 +0200
commitc1ae5d53fb0fa7ceb9d6fc7a60c87df958ce37fe (patch)
treef028a04619aa1b69f8b0aa72a5154f6ba1c09775 /src/str.hh
parent2f13baa843bd1fb5db6630a2823681ffaff9fb11 (diff)
WIPWIP
Diffstat (limited to 'src/str.hh')
-rw-r--r--src/str.hh3
1 files changed, 3 insertions, 0 deletions
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<std::string_view>& out,
char separator = ' ',
bool keep_empty = false);
+[[nodiscard]]
+std::string_view trim(std::string_view str);
+
} // namespace str
#endif // STR_HH