|
From: Eli Z. <el...@gn...> - 2015-03-16 03:34:40
|
> Date: Sun, 15 Mar 2015 15:10:06 -0700 > From: Greg Jung <gv...@gm...> > > #ifdef _WIN32 > MultiByteToWideChar(CP_UTF8, 0, > (LPCSTR)entryStr.c_str(), -1, > tchrentry, MAX_PATH+1); > int match = 1 - PathMatchSpecW(tchrentry, tchrpat); > #else > int match = fnmatch( pat.c_str(), entryStr.c_str(), 0); > #endif This only supports Windows-style wildcards, Unix-style wildcards like "*.[ch]" won't be supported. Not sure if that matters for the application in question. |