From bd49091afd55cf2663095a1882bab34496ef01f0 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sun, 30 Jul 2006 12:17:51 +0000 Subject: Added new equals(IgnoreCase) and compareTo(IgnoreCase) methods to class String svn-id: r23633 --- common/str.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'common/str.h') 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; -- cgit v1.2.3