Pyrogenesis  trunk
Functions
regex.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int match_wildcard (const wchar_t *s, const wchar_t *w)
 see if string matches pattern. More...
 

Function Documentation

int match_wildcard ( const wchar_t s,
const wchar_t w 
)

see if string matches pattern.

Parameters
sinput string
wpseudo-regex to match against. case-insensitive; may contain '?' and/or '*' wildcards. if NULL, matches everything.
Returns
1 if they match, otherwise 0.

algorithm from http://www.codeproject.com/string/wildcmp.asp.