git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@762
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
- // dot_special: what is it supposed to do?
- return fnmatch(pat.c_str(), text.c_str(), FNM_PERIOD) == 0;
+ if(dot_special)
+ return fnmatch(pat.c_str(), text.c_str(), FNM_PERIOD) == 0;
+ else
+ return fnmatch(pat.c_str(), text.c_str(), 0) == 0;
/*
* WARNING: this code is broken!
*/
/*
* WARNING: this code is broken!
*/
-bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
{
wxString tmp1 = pat;
char *pattern = WXSTRINGCAST(tmp1);
{
wxString tmp1 = pat;
char *pattern = WXSTRINGCAST(tmp1);