record SetOf : Type -> Type A set of unicode points (actually, a set of 32-bit characters)
represented internally as an ordered list of disjoint character
ranges.
Totality: total
Visibility: export
Constructor: S : List (RangeOf t) -> SetOf t
Projection: .ranges_ : SetOf t -> List (RangeOf t) A list of ordered, non-overlapping, non-adjacent, and non-empty ranges
Hints:
Eq t => Eq (SetOf t) Ord t => Ord (SetOf t) Show t => Show (SetOf t)
0 Set8 : Type- Totality: total
Visibility: public export 0 Set32 : Type- Totality: total
Visibility: public export ranges : SetOf t -> List (RangeOf t) Returns the inner list of ranges of a character set.
The returned list is sorted and the ranges it contains are disjoint
and non-adjacent.
Totality: total
Visibility: exportempty : SetOf t The empty set of codepoints.
Totality: total
Visibility: exportsingleton : t -> SetOf t The set holding only the given codepoint.
Totality: total
Visibility: exportrange : RangeOf t -> SetOf t The set holding all characters in the given range.
Totality: total
Visibility: exportisEmpty : SetOf t -> Bool `True` if the character set is empty.
Totality: total
Visibility: exporthas : Ord t => SetOf t -> t -> Bool True if the value is within the set.
Totality: total
Visibility: exportrangeSet : WithBounds t => Neg t => List (RangeOf t) -> SetOf t Creates a character set from the given list of ranges.
The ranges are first sorted and overlapping or adjacent ranges
are unified before wrapping them up.
Totality: total
Visibility: exportunion : WithBounds t => Neg t => SetOf t -> SetOf t -> SetOf t Set union.
Totality: total
Visibility: exportintersection : WithBounds t => Neg t => SetOf t -> SetOf t -> SetOf t Set intersection.
Totality: total
Visibility: exportnegation : WithBounds t => Neg t => SetOf t -> SetOf t Set negation.
Totality: total
Visibility: exportdifference : WithBounds t => Neg t => SetOf t -> SetOf t -> SetOf t Set difference.
Totality: total
Visibility: exportchars : String -> Set32 The set holding the codepoints (characters) in the given
string.
Totality: total
Visibility: exportfullSet : WithBounds t => SetOf t The set holding all 32-bit values.
Totality: total
Visibility: exportisFull : WithBounds t => SetOf t -> Bool `True` if this set holds all 32-bit values.
Totality: total
Visibility: exportcharRange : Char -> Char -> Set32 A range of unicode code points.
Totality: total
Visibility: exportlower : Set32 The set of lower-case letters.
Totality: total
Visibility: exportupper : Set32 The set of upper-case letters.
Totality: total
Visibility: exportalpha : Set32 The set of letters.
Totality: total
Visibility: exportdigit : Set32 The set of digits.
Totality: total
Visibility: exportposdigit : Set32 The set of positive digits.
Totality: total
Visibility: exportalphaNum : Set32 The set of digits and letters.
Totality: total
Visibility: exportcontrol : Set32 The set of control characters.
Totality: total
Visibility: exportprintable : Set32 The set of printable characters.
This is the negation of `control`.
Totality: total
Visibility: exportascii : Set32 The set of ASCII characters.
Totality: total
Visibility: exportprintableAscii : Set32 The set of non-control ASCII characters.
Totality: total
Visibility: exportnl : Set32 The newline character ('\n')
Totality: total
Visibility: exportunicode : Set32 The set of unicode code points (minus surrogate pairs).
Totality: total
Visibility: export