From 5c330068e75946286e8e0d3dc0bd381e419074a9 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 4 Jan 2023 15:16:36 +0100 Subject: Namespaces for API --- stringutil.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'stringutil.h') diff --git a/stringutil.h b/stringutil.h index 6cd74aa..510d2fd 100644 --- a/stringutil.h +++ b/stringutil.h @@ -5,7 +5,13 @@ #define EXPORT __attribute__((visibility("default"))) +namespace Reichwein::Stringutil { + +[[deprecated("Better use libfmt or std::format[C++20]")]] EXPORT std::string strfmt(const char* fmt, ...); + EXPORT std::vector split(std::string value, const std::string separators = "\r\n "); EXPORT std::string join(std::vector vs, std::string separator = "\n"); EXPORT bool startsWithAnyOfLower(const std::string &s, const std::vector &list); + +} // namespace -- cgit v1.2.3