From 17d180891f1e237ea5d25835999a8b23a6e7946d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 11 Jun 2016 20:17:35 +0300 Subject: rename dirs --- libkms++util/strhelpers.h | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 libkms++util/strhelpers.h (limited to 'libkms++util/strhelpers.h') diff --git a/libkms++util/strhelpers.h b/libkms++util/strhelpers.h deleted file mode 100644 index 2c540f3..0000000 --- a/libkms++util/strhelpers.h +++ /dev/null @@ -1,33 +0,0 @@ -#include -#include -#include -#include - -std::string to_lower(const std::string& str); - -template -std::string join(const T& values, const std::string& delim) -{ - std::ostringstream ss; - for (const auto& v : values) { - if (&v != &values[0]) - ss << delim; - ss << v; - } - return ss.str(); -} - -template -std::string join(const std::vector& values, const std::string& delim, std::function func) -{ - std::ostringstream ss; - for (const auto& v : values) { - if (&v != &values[0]) - ss << delim; - ss << func(v); - } - return ss.str(); -} - -std::string sformat(const char *fmt, ...) - __attribute__ ((format (printf, 1, 2))); -- cgit v1.2.3