Index: include/cc++/string.h =================================================================== RCS file: /cvsroot/cplusplus/commoncpp2/include/cc++/string.h,v retrieving revision 1.2 diff -u -r1.2 string.h --- include/cc++/string.h 22 Dec 2003 23:28:36 -0000 1.2 +++ include/cc++/string.h 10 Feb 2004 04:11:50 -0000 @@ -731,18 +731,18 @@ friend __EXPORT int strprintf(String &str, unsigned size, const char *fmt, ...); #endif - bool operator<(const String &str); - bool operator<(const char *str); - bool operator>(const String &str); - bool operator>(const char *str); - bool operator<=(const String &str); - bool operator<=(const char *str); - bool operator>=(const String &str); - bool operator>=(const char *str); - bool operator==(const String &str); - bool operator==(const char *str); - bool operator!=(const String &str); - bool operator!=(const char *str); + bool operator<(const String &str) const; + bool operator<(const char *str) const; + bool operator>(const String &str) const; + bool operator>(const char *str) const; + bool operator<=(const String &str) const; + bool operator<=(const char *str) const; + bool operator>=(const String &str) const; + bool operator>=(const char *str) const; + bool operator==(const String &str) const; + bool operator==(const char *str) const; + bool operator!=(const String &str) const; + bool operator!=(const char *str) const; #ifdef HAVE_SNPRINTF Index: src/string.cpp =================================================================== RCS file: /cvsroot/cplusplus/commoncpp2/src/string.cpp,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 string.cpp --- src/string.cpp 15 Dec 2003 19:26:39 -0000 1.1.1.1 +++ src/string.cpp 10 Feb 2004 04:11:50 -0000 @@ -751,7 +751,7 @@ return result; } -bool String::operator<(const String &s1) +bool String::operator<(const String &s1) const { if(compare(s1.getText()) < 0) return true; @@ -759,7 +759,7 @@ return false; } -bool String::operator<(const char *s1) +bool String::operator<(const char *s1) const { if(compare(s1) < 0) return true; @@ -767,7 +767,7 @@ return false; } -bool String::operator>(const String &s1) +bool String::operator>(const String &s1) const { if(compare(s1.getText()) > 0) return true; @@ -775,7 +775,7 @@ return false; } -bool String::operator>(const char *s1) +bool String::operator>(const char *s1) const { if(compare(s1) > 0) return true; @@ -783,7 +783,7 @@ return false; } -bool String::operator<=(const String &s1) +bool String::operator<=(const String &s1) const { if(compare(s1.getText()) <= 0) return true; @@ -791,7 +791,7 @@ return false; } -bool String::operator<=(const char *s1) +bool String::operator<=(const char *s1) const { if(compare(s1) <= 0) return true; @@ -799,7 +799,7 @@ return false; } -bool String::operator>=(const String &s1) +bool String::operator>=(const String &s1) const { if(compare(s1.getText()) >= 0) return true; @@ -807,7 +807,7 @@ return false; } -bool String::operator>=(const char *s1) +bool String::operator>=(const char *s1) const { if(compare(s1) >= 0) return true; @@ -815,7 +815,7 @@ return false; } -bool String::operator==(const String &s1) +bool String::operator==(const String &s1) const { if(compare(s1.getText()) == 0) return true; @@ -823,7 +823,7 @@ return false; } -bool String::operator==(const char *s1) +bool String::operator==(const char *s1) const { if(compare(s1) == 0) return true; @@ -831,7 +831,7 @@ return false; } -bool String::operator!=(const String &s1) +bool String::operator!=(const String &s1) const { if(compare(s1.getText()) != 0) return true; @@ -839,7 +839,7 @@ return false; } -bool String::operator!=(const char *s1) +bool String::operator!=(const char *s1) const { if(compare(s1) != 0) return true;