diff options
Diffstat (limited to 'stringutil.h')
-rw-r--r-- | stringutil.h | 6 |
1 files changed, 6 insertions, 0 deletions
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<std::string> split(std::string value, const std::string separators = "\r\n "); EXPORT std::string join(std::vector<std::string> vs, std::string separator = "\n"); EXPORT bool startsWithAnyOfLower(const std::string &s, const std::vector<std::string> &list); + +} // namespace |