mrdocs::GlobPattern::create

create overloads

Synopses

Create a glob pattern without limiting subpattern count.

static
Expected<GlobPattern>
create(std::string_view pattern);

Constructs a GlobPattern with the given pattern.

static
Expected<GlobPattern>
create(
    std::string_view pattern,
    Optional<std::size_t> maxSubGlobs);

Return Value

  • Compiled pattern or an error.

  • The constructed GlobPattern, or an error if the pattern is invalid.

Parameters

Name

Description

pattern

Glob expression to compile.

maxSubGlobs

The maximum number of subpatterns allowed. If the pattern contains more subpatterns than this value, an error is returned. If not specified, there is no limit.

Created with MrDocs