2009-11-10 16:48:42 +01:00
|
|
|
#ifndef _RAR_MATCH_
|
|
|
|
#define _RAR_MATCH_
|
|
|
|
|
|
|
|
enum {
|
2020-07-15 00:40:26 +02:00
|
|
|
MATCH_NAMES, // Paths are ignored.
|
|
|
|
// Compares names only using wildcards.
|
2009-11-10 16:48:42 +01:00
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
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.
|
2009-11-10 16:48:42 +01:00
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
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.
|
2009-11-10 16:48:42 +01:00
|
|
|
|
|
|
|
MATCH_SUBPATH, // Names must be the same, but path in mask is allowed
|
2020-07-15 00:40:26 +02:00
|
|
|
// to be only a part of name path. In other words,
|
|
|
|
// we match all files matching the file mask
|
|
|
|
// in current folder and subfolders.
|
2009-11-10 16:48:42 +01:00
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
MATCH_WILDSUBPATH // Works as MATCH_SUBPATH if file mask contains
|
|
|
|
// wildcards and as MATCH_EXACTPATH otherwise.
|
2009-11-10 16:48:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#define MATCH_MODEMASK 0x0000ffff
|
|
|
|
#define MATCH_FORCECASESENSITIVE 0x80000000
|
|
|
|
|
2020-07-15 00:40:26 +02:00
|
|
|
bool CmpName(const wchar *Wildcard,const wchar *Name,int CmpMode);
|
2009-11-10 16:48:42 +01:00
|
|
|
|
|
|
|
#endif
|