Use wxStricmp instead of Stricmp in CmpNoCase.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2747 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ove Kaaven
1999-06-10 18:10:10 +00:00
parent 4b900067d3
commit 093ac02981

View File

@@ -575,7 +575,7 @@ public:
// case-sensitive comparison (returns a value < 0, = 0 or > 0) // case-sensitive comparison (returns a value < 0, = 0 or > 0)
int Cmp(const wxChar *psz) const { return wxStrcmp(c_str(), psz); } int Cmp(const wxChar *psz) const { return wxStrcmp(c_str(), psz); }
// same as Cmp() but not case-sensitive // same as Cmp() but not case-sensitive
int CmpNoCase(const wxChar *psz) const { return Stricmp(c_str(), psz); } int CmpNoCase(const wxChar *psz) const { return wxStricmp(c_str(), psz); }
// test for the string equality, either considering case or not // test for the string equality, either considering case or not
// (if compareWithCase then the case matters) // (if compareWithCase then the case matters)
bool IsSameAs(const wxChar *psz, bool compareWithCase = TRUE) const bool IsSameAs(const wxChar *psz, bool compareWithCase = TRUE) const