summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-27 23:42:54 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-27 23:42:54 +0300
commiteb5128aa6ce4a33aa9021b51231d0934294c7caa (patch)
tree26db4336d595812e0fdcedf18e97ccc3c091b4ab /src/utils/stringutils.h
parent555be6547d24f09e5c2a901673237276fa4ae0bd (diff)
downloadmv-eb5128aa6ce4a33aa9021b51231d0934294c7caa.tar.gz
mv-eb5128aa6ce4a33aa9021b51231d0934294c7caa.tar.bz2
mv-eb5128aa6ce4a33aa9021b51231d0934294c7caa.tar.xz
mv-eb5128aa6ce4a33aa9021b51231d0934294c7caa.zip
Add string function for sanitization strings.
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