emptyRangeBehavior
How are empty ranges handled.
var emptyRangeBehavior: EmptyRangeBehavior
How are empty ranges handled.
var emptyRangeBehavior: EmptyRangeBehavior
s4Glob7PatternV7OptionsV18emptyRangeBehaviorAE05EmptyeF0Ovp
What are these?O7LD
import Glob
struct Options
Options to control how patterns are parsed and matched
struct Pattern
A glob pattern that can be matched against string content.
enum EmptyRangeBehavior
How empty ranges ([]
) are treated
static let `default`: Self
Default options for parsing and matching patterns.
static let go: Self
Attempts to match the behavior of filepath.Match
in go.
static func posix() -> Pattern.Options
Attempts to match the behavior of POSIX glob.
var matchLeadingDirectories: Bool
If a pattern should match if it matches a parent directory, as defined by pathSeparator
.
var pathSeparator: Character?
The path separator to use in matching
var rangeNegationCharacter: RangeNegationCharacter
The character used to specify when a range matches characters that aren’t in the range.
var requiresExplicitLeadingPeriods: Bool
If a period in the name is at the beginning of a component, don’t match using wildcards.
var supportsEscapedCharacters: Bool
If the pattern supports escaping control characters with ’'
var supportsPathLevelWildcards: Bool
If a double star/asterisk causes the pattern to match path separators.
var supportsPatternLists: Bool
Recognize beside the normal patterns also the extended patterns introduced in ksh
. Equivalent to FNM_EXTMATCH
.
var supportsRangeSeparatorAtBeginningAndEnd: Bool
Allows the -
character to be included in a character class if it is the first or last character (ie [-abc]
or [abc-]
)
enum RangeNegationCharacter
The character used to invert a character class.