Enumerationtuist.filesystem 0.7.9Glob
Section
Pattern.swift:9enum Section
enum Section
import Glob
struct Pattern
A glob pattern that can be matched against string content.
case componentWildcard
A wildcard that matches any 0 or more characters except for the path separator (”/” by default)
case pathWildcard
A wildcard that matches any 0 or more characters
case constant(String)
Matches an exact string
case singleCharacter
Matches any single character
case oneOf([CharacterClass], isNegated: Bool)
Matches a single character in any of the given ranges
case patternList(_: PatternListStyle, _: [[Section]])
init(_ pattern: some StringProtocol, options: Options = .default) throws
Parses a pattern string into a reusable pattern
var options: Options
Options used for parsing and matching
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
struct Options
Options to control how patterns are parsed and matched
protocol Equatable
A type that can be compared for value equality.
protocol Sendable
var matchesEmptyContent: Bool { get }
If the section can match a variable length of characters
enum PatternListStyle
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.