mrdocs::GlobPattern

A glob pattern matcher

Synopsis

Declared in <mrdocs/Support/Glob.hpp>

class GlobPattern;

Description

  • "*" 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.

  • "[]" 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.

Member Functions

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.

Static Member Functions

Name

Description

create

Constructs a GlobPattern with the given pattern.

Created with MrDocs