aboutsummaryrefslogtreecommitdiff
path: root/include/StringUtils.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/StringUtils.hpp')
-rw-r--r--include/StringUtils.hpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/StringUtils.hpp b/include/StringUtils.hpp
deleted file mode 100644
index 6b237dd..0000000
--- a/include/StringUtils.hpp
+++ /dev/null
@@ -1,18 +0,0 @@
-#pragma once
-
-#include <string>
-
-namespace dchat
-{
- static std::string stringReplaceChar(const std::string &str, const std::string &from, const std::string &to)
- {
- std::string result = str;
- size_t pos = 0;
- while((pos = result.find(from, pos)) != std::string::npos)
- {
- result.replace(pos, from.size(), to);
- pos += to.size();
- }
- return result;
- }
-}