summaryrefslogtreecommitdiff
path: root/unrar/unrar/match.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'unrar/unrar/match.hpp')
-rw-r--r--unrar/unrar/match.hpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/unrar/unrar/match.hpp b/unrar/unrar/match.hpp
index 5ea6115..0e43514 100644
--- a/unrar/unrar/match.hpp
+++ b/unrar/unrar/match.hpp
@@ -1,7 +1,22 @@
#ifndef _RAR_MATCH_
#define _RAR_MATCH_
-enum {MATCH_NAMES,MATCH_PATH,MATCH_EXACTPATH,MATCH_SUBPATH,MATCH_WILDSUBPATH};
+enum {
+ MATCH_NAMES, // Compare names only.
+
+ 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_EXACTPATH, // Compares names and paths. Both must match exactly.
+
+ MATCH_SUBPATH, // Names must be the same, but path in mask is allowed
+ // to be only a part of name path.
+
+ MATCH_WILDSUBPATH // Works as MATCH_SUBPATH if mask contains wildcards
+ // and as MATCH_PATH otherwise.
+};
#define MATCH_MODEMASK 0x0000ffff
#define MATCH_FORCECASESENSITIVE 0x80000000