From 1aedff5c60cce4b4dda0ca52d0d235361232752f Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 8 Jun 2020 20:53:05 +0200 Subject: Add documentation for the support globbing features. --- src/glob_matching.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/glob_matching.h') 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 -- cgit v1.3.1