Enable wxMatchWild() for Unicode (under GTK) /

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2002-09-30 16:57:17 +00:00
parent 5d0c8a9857
commit 4a32c38f67

View File

@@ -1679,11 +1679,21 @@ bool wxIsWild( const wxString& pattern )
}
}
return FALSE;
};
}
#if wxUSE_UNICODE && defined(__WXGTK20__)
#include <glib.h>
#endif
bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
#ifdef HAVE_FNMATCH
#if wxUSE_UNICODE && defined(__WXGTK20__)
{
// treat dot_special somehow
return g_pattern_match_simple( wxConvUTF8.cWX2MB( pat ), wxConvUTF8.cWX2MB( text ) );
}
#elif defined(HAVE_FNMATCH)
{
// this probably won't work well for multibyte chars in Unicode mode?
if(dot_special)