From d00dc2c69164d8a8850d317f2868c6f131b7f679 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Mon, 2 Jan 2023 16:32:01 +0100 Subject: First lib version --- stringutil.h | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 stringutil.h (limited to 'stringutil.h') diff --git a/stringutil.h b/stringutil.h new file mode 100644 index 0000000..5110e2e --- /dev/null +++ b/stringutil.h @@ -0,0 +1,10 @@ +#pragma once + +#include +#include + +std::string strfmt(const char* fmt, ...); + +std::vector split(std::string value, const std::string separators = "\r\n "); +std::string join(std::vector vs, std::string separator = "\n"); +bool startsWithAnyOfLower(const std::string &s, const std::vector &list); -- cgit v1.2.3