summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/stringutils.h')
-rw-r--r--src/utils/stringutils.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index f9d7494aa..4db1041ef 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -163,9 +163,14 @@ std::string getFileName(const std::string &path) A_WARN_UNUSED;
std::string getFileDir(const std::string &path) A_WARN_UNUSED;
-std::string& replaceAll(std::string& context, const std::string &restrict from,
+std::string& replaceAll(std::string& context,
+ const std::string &restrict from,
const std::string &restrict to);
+void replaceRecursiveAll(std::string& context,
+ const std::string &restrict from,
+ const char to);
+
/**
* Returns a bool value depending on the given string value.
*
@@ -268,4 +273,6 @@ void replaceItemLinks(std::string &msg);
std::string escapeString(std::string str);
+void sanitizePath(std::string &path);
+
#endif // UTILS_STRINGUTILS_H