diff options
author | Max Horn | 2006-07-30 12:17:51 +0000 |
---|---|---|
committer | Max Horn | 2006-07-30 12:17:51 +0000 |
commit | bd49091afd55cf2663095a1882bab34496ef01f0 (patch) | |
tree | 5021859989d486cc62987b0998dd1323793833e7 /common/str.h | |
parent | 1f8066c333e24d0abc3c552b8ef517109058dff6 (diff) | |
download | scummvm-rg350-bd49091afd55cf2663095a1882bab34496ef01f0.tar.gz scummvm-rg350-bd49091afd55cf2663095a1882bab34496ef01f0.tar.bz2 scummvm-rg350-bd49091afd55cf2663095a1882bab34496ef01f0.zip |
Added new equals(IgnoreCase) and compareTo(IgnoreCase) methods to class String
svn-id: r23633
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; |