summaryrefslogtreecommitdiff
path: root/libkms++util/strhelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libkms++util/strhelpers.cpp')
-rw-r--r--libkms++util/strhelpers.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/libkms++util/strhelpers.cpp b/libkms++util/strhelpers.cpp
deleted file mode 100644
index f18c749..0000000
--- a/libkms++util/strhelpers.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#include "strhelpers.h"
-
-#include <algorithm>
-#include <stdarg.h>
-
-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);
-}