Options used for parsing and matching
var options: Options
s4Glob7PatternV7optionsAC7OptionsVvp
29DSP
import Glob
struct Pattern
A glob pattern that can be matched against string content.
struct Options
Options to control how patterns are parsed and matched
init(_ pattern: some StringProtocol, options: Options = .default) throws
Parses a pattern string into a reusable pattern
var sections: [Section]
The individual parts of the pattern to match against
func match(_ name: some StringProtocol) -> Bool
Test if a given string matches the pattern
enum CharacterClass
enum Section