summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-01 22:58:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-01 23:00:32 +0300
commitedab962f4183b599c4c7c5beb75947589443ccca (patch)
treeb57644fb6da0a03ade25247624538e6b0b59d327 /src/utils/stringutils.h
parent1a21baa93fd555e25b95732590282ba9a63dea86 (diff)
downloadplus-edab962f4183b599c4c7c5beb75947589443ccca.tar.gz
plus-edab962f4183b599c4c7c5beb75947589443ccca.tar.bz2
plus-edab962f4183b599c4c7c5beb75947589443ccca.tar.xz
plus-edab962f4183b599c4c7c5beb75947589443ccca.zip
Add string cut functions.
Diffstat (limited to 'src/utils/stringutils.h')
-rw-r--r--src/utils/stringutils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h
index 73e4b7697..31f562587 100644
--- a/src/utils/stringutils.h
+++ b/src/utils/stringutils.h
@@ -222,9 +222,15 @@ bool findFirst(const std::string &restrict str1,
bool findCutLast(std::string &restrict str1,
const std::string &restrict str2) A_WARN_UNUSED;
+void cutLast(std::string &restrict str1,
+ const std::string &restrict str2);
+
bool findCutFirst(std::string &restrict str1,
const std::string &restrict str2);
+void cutFirst(std::string &restrict str1,
+ const std::string &restrict str2);
+
std::string &removeProtocol(std::string &url);
bool strStartWith(const std::string &restrict str,