diff options
Diffstat (limited to 'common/str.h')
-rw-r--r-- | common/str.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/common/str.h b/common/str.h index 3d0053618b..5110fdf6d6 100644 --- a/common/str.h +++ b/common/str.h @@ -60,11 +60,24 @@ public: bool operator ==(const char *x) const; bool operator !=(const String &x) const; bool operator !=(const char *x) const; + bool operator <(const String &x) const; bool operator <=(const String &x) const; bool operator >(const String &x) const; bool operator >=(const String &x) const; + bool equals(const String &x) const; + bool equalsIgnoreCase(const String &x) const; + int compareTo(const String &x) const; // strcmp clone + int compareToIgnoreCase(const String &x) const; // stricmp clone + + bool equals(const char *x) const; + bool equalsIgnoreCase(const char *x) const; + int compareTo(const char *x) const; // strcmp clone + int compareToIgnoreCase(const char *x) const; // stricmp clone + + + bool hasSuffix(const char *x) const; bool hasPrefix(const char *x) const; @@ -92,6 +105,8 @@ public: void toLowercase(); void toUppercase(); + uint hash() const; + public: typedef char * iterator; typedef const char * const_iterator; |