added operators for comparing wxString to wxCStrData
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46046 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
98cf46c8d2
commit
5d0fac27c4
@ -2834,6 +2834,15 @@ inline bool operator<=(const wxString& s1, const wxString& s2)
|
||||
inline bool operator>=(const wxString& s1, const wxString& s2)
|
||||
{ return s1.Cmp(s2) >= 0; }
|
||||
|
||||
inline bool operator==(const wxString& s1, const wxCStrData& s2)
|
||||
{ return s1 == s2.AsString(); }
|
||||
inline bool operator==(const wxCStrData& s1, const wxString& s2)
|
||||
{ return s1.AsString() == s2; }
|
||||
inline bool operator!=(const wxString& s1, const wxCStrData& s2)
|
||||
{ return s1 != s2.AsString(); }
|
||||
inline bool operator!=(const wxCStrData& s1, const wxString& s2)
|
||||
{ return s1.AsString() != s2; }
|
||||
|
||||
#if wxUSE_UNICODE
|
||||
inline bool operator==(const wxString& s1, const wxWCharBuffer& s2)
|
||||
{ return (s1.Cmp((const wchar_t *)s2) == 0); }
|
||||
|
Loading…
Reference in New Issue
Block a user