git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15485
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
-#if defined(HAVE_FNMATCH_H)
{
// this probably won't work well for multibyte chars in Unicode mode?
if(dot_special)
{
// this probably won't work well for multibyte chars in Unicode mode?
if(dot_special)
else
return fnmatch(pat.fn_str(), text.fn_str(), 0) == 0;
}
else
return fnmatch(pat.fn_str(), text.fn_str(), 0) == 0;
}
// #pragma error Broken implementation of wxMatchWild() -- needs fixing!
// #pragma error Broken implementation of wxMatchWild() -- needs fixing!
return ((*str == wxT('\0')) && (*pattern == wxT('\0')));
};
return ((*str == wxT('\0')) && (*pattern == wxT('\0')));
};
+#endif // HAVE_FNMATCH/!HAVE_FNMATCH
#ifdef __VISUALC__
#pragma warning(default:4706) // assignment within conditional expression
#ifdef __VISUALC__
#pragma warning(default:4706) // assignment within conditional expression