The upper bound of a range is lower than the lower bound
case rangeBoundsAreOutOfOrder
s4Glob19PatternParsingErrorO24rangeBoundsAreOutOfOrderyA2CmF
1TOQ6
import Glob
enum PatternParsingError
case rangeNotClosed
The range contained a lower bound button not an upper bound (ie “[a-]”)
case rangeIsEmpty
The range was ended without any content (ie “[]”)
case rangeMissingBounds
The range included a separator but no lower bound (ie “[-c]”)
case invalidEscapeCharacter
An escape was started without an actual escaped character because the escape was at the end of the pattern
case invalidNamedCharacterClass(String)
A character class (like [:alnum:]) was used with an unrecognized name
[:alnum:]
case patternListNotClosed
case emptyPatternList