From 3c6ea25bcfafc513560c9e8a4baaf211bec2750c Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 11 Jun 2016 22:39:24 +0300 Subject: kms++util: split to subdirs --- kms++util/strhelpers.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 kms++util/strhelpers.cpp (limited to 'kms++util/strhelpers.cpp') diff --git a/kms++util/strhelpers.cpp b/kms++util/strhelpers.cpp deleted file mode 100644 index f18c749..0000000 --- a/kms++util/strhelpers.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "strhelpers.h" - -#include -#include - -using namespace std; - -string to_lower(const string& str) -{ - string data = str; - transform(data.begin(), data.end(), data.begin(), ::tolower); - return data; -} - -string sformat(const char *fmt, ...) -{ - static char s_format_buf[1024]; - - va_list args; - va_start(args, fmt); - - vsnprintf(s_format_buf, sizeof(s_format_buf), fmt, args); - - va_end(args); - - return string(s_format_buf); -} -- cgit v1.2.3