summaryrefslogtreecommitdiff
path: root/kms++util/src/strhelpers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kms++util/src/strhelpers.cpp')
-rw-r--r--kms++util/src/strhelpers.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/kms++util/src/strhelpers.cpp b/kms++util/src/strhelpers.cpp
new file mode 100644
index 0000000..5eba2a9
--- /dev/null
+++ b/kms++util/src/strhelpers.cpp
@@ -0,0 +1,13 @@
+#include <kms++util/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;
+}