+
+#if !WXWIN_COMPATIBILITY_2
+// if substring is TRUE, search for str1 in str2
+bool StringMatch(const wxChar *str1, const wxChar *str2, bool subString,
+ bool exact)
+{
+ if (subString)
+ {
+ wxString Sstr1(str1);
+ wxString Sstr2(str2);
+ if (!exact)
+ {
+ Sstr1.MakeUpper();
+ Sstr2.MakeUpper();
+ }
+ return Sstr2.Index(Sstr1) != wxNOT_FOUND;
+ }
+ else
+ return exact ? wxString(str2).Cmp(str1) == 0 :
+ wxString(str2).CmpNoCase(str1) == 0;
+}
+#endif