A glob pattern matcher
<mrdocs/Support/Glob.hpp>
class GlobPattern;
| Name | Description |
|---|---|
GlobPattern [constructor] | Constructors |
~GlobPattern [destructor] | Destructor |
operator= | Assignment operators |
isLiteral | Checks if the glob pattern is a literal string. |
match | Matches the given string against the glob pattern. |
matchPatternPrefix | Matches the start of a given string against the glob pattern. |
pattern | Returns the glob pattern. |
| Name | Description |
|---|---|
create | Constructs a GlobPattern with the given pattern. |
"*" matches all characters except delimiters.
"**" matches all characters
"?" matches any single character.
"[<chars>]" matches one character in the bracket.
"[<char>-<char>]" matches one character in the bracket range.
"[^<chars>]" or "[!<chars>]" matches one character not in the bracket.
"{<glob>,...}" matches one of the globs in the list.
"\" escapes the next character so it is treated as a literal.
Nested brace expansions "{<glob>,"{<glob>,...}",...}" are not supported.