Constructs a PathGlobPattern with the given pattern.

Synopsis

Declared in <mrdocs/Support/Filesystem/Glob.hpp>

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

Return Value

The mrdocs result type: polyfill::expected defaulting the error to Error.

Parameters

Name

Description

pattern

The glob pattern to use for matching.

maxSubGlobs

The maximum number of subpatterns allowed.

Created with MrDocs