Enumerationtuist.filesystem 0.7.9Glob
CharacterClass
Pattern.swift:77enum CharacterClass
enum CharacterClass
import Glob
struct Pattern
A glob pattern that can be matched against string content.
case range(ClosedRange<Character>)
case named(Name)
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
struct Options
Options to control how patterns are parsed and matched
enum Section
protocol Equatable
A type that can be compared for value equality.
protocol Sendable
func contains(_ character: Character) -> Bool
enum Name
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.