aboutsummaryrefslogtreecommitdiff
path: root/common/str.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/str.cpp')
-rw-r--r--common/str.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/str.cpp b/common/str.cpp
index 9d40fe8902..9e94d240d7 100644
--- a/common/str.cpp
+++ b/common/str.cpp
@@ -226,6 +226,10 @@ bool String::contains(const char *x) const {
return strstr(c_str(), x) != NULL;
}
+bool String::contains(char x) const {
+ return strchr(c_str(), x) != NULL;
+}
+
void String::deleteLastChar() {
deleteChar(_len - 1);
}