git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38024
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
* Written By Douglas A. Lewis <dalewis@cs.Buffalo.EDU>
*
* The match procedure is public domain code (from ircII's reg.c)
* Written By Douglas A. Lewis <dalewis@cs.Buffalo.EDU>
*
* The match procedure is public domain code (from ircII's reg.c)
+* but modified to suit our tastes (RN: No "%" syntax I guess)
*/
bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
*/
bool wxMatchWild( const wxString& pat, const wxString& text, bool dot_special )
const wxChar *m = pat.c_str(),
*n = text.c_str(),
*ma = NULL,
const wxChar *m = pat.c_str(),
*n = text.c_str(),
*ma = NULL,
- *na = NULL,
- *mp = NULL,
- *np = NULL;
ma = ++m;
na = n;
just = 1;
ma = ++m;
na = n;
just = 1;
acount = count;
}
else if (*m == wxT('?'))
acount = count;
}
else if (*m == wxT('?'))
- if (*n == wxT(' '))
- mp = NULL;
*/
if (!*n)
return false;
*/
if (!*n)
return false;
- if (mp)
- {
- m = mp;
- if (*np == wxT(' '))
- {
- mp = NULL;
- goto check_percent;
- }
- n = ++np;
- count = pcount;
- }
- else
- check_percent: