summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2020-06-08 20:53:05 +0200
committerMikaël Capelle <capelle.mikael@gmail.com>2020-06-08 20:53:05 +0200
commit1aedff5c60cce4b4dda0ca52d0d235361232752f (patch)
tree192e67244374b56e169003a71ad0ff9463567ac4 /src
parent0d873719eb6324226eb3b20540797afb6ae20f26 (diff)
Add documentation for the support globbing features.
Diffstat (limited to 'src')
-rw-r--r--src/glob_matching.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/glob_matching.h b/src/glob_matching.h
index 2cec583c..69e2d2a4 100644
--- a/src/glob_matching.h
+++ b/src/glob_matching.h
@@ -47,6 +47,15 @@ namespace MOShared {
*
* From https://gitlab.com/G_ka/playground/-/commits/master/include/wildcards.hpp
*
+ * Currently, this supports the following globbing character:
+ * - '*' matches zero or more characters.
+ * - '?' matches exactly one character.
+ * - '[abc]' matches one of 'a', 'b' or 'c'.
+ *
+ * Standard globbing feature not supported:
+ * - You cannot escape globbing characters with \.
+ * - You cannot use `[a-z]` to match any character from 'a' to 'z'.
+ *
* Custom class because the following alternatives have some issues:
* - QRegExp is a tad slow, and we need to convert everything to QString.
* - QDir::match is VERY slow. I think it converts the glob pattern to a QRegularExpression and