(s1.Compare(s2.GetData()) != 0); } bool operator!=(const CString& s1, const char* s2) { return (s1.Compare(s2) != 0); } bool operator!=(const char* s1, const CString& s2) { return (s2.Compare(s1) != 0); } bool operator>(const CString& s1, const CString& s2) { return (s1.Compare(s2.GetData()) > 0); } bool operator>(const CString& s1, const char* s2) { return (s1.Compare(s2) > 0); } bool operator>(const char* s1, const CString& s2) { return (s2.Compare(s1) < 0); } bool operator<(const CString& s1, const CString& s2) { return (s1.Compare(s2.GetData()) < 0); } bool operator<(const CString& s1, const char* s2) { return (s1.Compare(s2) < 0); } bool operator<(const char* s1, const CString& s2) { return (s2.Compare(s1) > 0); } bool operator>=(const CString& s1, const CString& s2) { return (s1.Compare(s2.GetData()) >= 0); } bool operator>=(const CString& s1, const char* s2) { return (s1.Compare(s2) >= 0); } bool operator>=(const char* s1, const CString& s2) { return (s2.Compare(s1) <= 0); } bool operator<=(const CString& s1, const CString& s2) { return (s1.Compare(s2.GetData()) <= 0); } bool operator<=(const CString& s1, const char* s2) { return (s1.Compare(s2) <= 0); } bool operator<=(const char* s1, const CString& s2) { return (s2.Compare(s1) >= 0); }
|