diff options
Diffstat (limited to 'unrar/unrar/match.hpp')
| -rw-r--r-- | unrar/unrar/match.hpp | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/unrar/unrar/match.hpp b/unrar/unrar/match.hpp index 0e43514..1e65a3c 100644 --- a/unrar/unrar/match.hpp +++ b/unrar/unrar/match.hpp @@ -2,26 +2,37 @@ #define _RAR_MATCH_ enum { - MATCH_NAMES, // Compare names only. + MATCH_NAMES, // Paths are ignored. + // Compares names only using wildcards. - MATCH_PATH, // Compares names and paths. Both must match exactly. - // Unlike MATCH_EXACTPATH, also matches names if - // mask contains path only and this path is a part - // of name path. + MATCH_SUBPATHONLY, // Paths must match either exactly or path in wildcard + // must be present in the beginning of file path. + // For example, "c:\path1\*" or "c:\path1" will match + // "c:\path1\path2\file". + // Names are not compared. - MATCH_EXACTPATH, // Compares names and paths. Both must match exactly. + MATCH_EXACT, // Paths must match exactly. + // Names must match exactly. + + MATCH_ALLWILD, // Paths and names are compared using wildcards. + // Unlike MATCH_SUBPATH, paths do not match subdirs + // unless a wildcard tells so. + + MATCH_EXACTPATH, // Paths must match exactly. + // Names are compared using wildcards. MATCH_SUBPATH, // Names must be the same, but path in mask is allowed - // to be only a part of name path. + // to be only a part of name path. In other words, + // we match all files matching the file mask + // in current folder and subfolders. - MATCH_WILDSUBPATH // Works as MATCH_SUBPATH if mask contains wildcards - // and as MATCH_PATH otherwise. + MATCH_WILDSUBPATH // Works as MATCH_SUBPATH if file mask contains + // wildcards and as MATCH_EXACTPATH otherwise. }; #define MATCH_MODEMASK 0x0000ffff #define MATCH_FORCECASESENSITIVE 0x80000000 -bool CmpName(char *Wildcard,char *Name,int CmpPath); -bool CmpName(wchar *Wildcard,wchar *Name,int CmpPath); +bool CmpName(const wchar *Wildcard,const wchar *Name,int CmpMode); #endif |
