Pyrogenesis  trunk
Functions
regex.cpp File Reference
#include "precompiled.h"
#include <cwctype>
Include dependency graph for regex.cpp:

Functions

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

Function Documentation

◆ match_wildcard()

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.