aboutsummaryrefslogtreecommitdiff
path: root/common/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/str.h')
-rw-r--r--common/str.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/str.h b/common/str.h
index 5a96f7939e..4ca744193d 100644
--- a/common/str.h
+++ b/common/str.h
@@ -60,6 +60,9 @@ public:
bool operator >(const String &x) const;
bool operator >=(const String &x) const;
+ bool hasSuffix(const char *x) const;
+ bool hasPrefix(const char *x) const;
+
const char *c_str() const { return _str ? _str : ""; }
uint size() const { return _len; }
@@ -75,7 +78,7 @@ public:
assert(_str && idx >= 0 && idx < _len);
return _str[idx];
}
-
+
void deleteLastChar();
void deleteChar(int p);
void clear();