Idris2Doc : Text.ILex.Char.Range

Text.ILex.Char.Range

(source)

Definitions

interfaceWithBounds : Type->Type
Parameters: a
Constraints: Ord a
Methods:
minBound : a
maxBound : a

Implementations:
WithBoundsBits8
WithBoundsBits16
WithBoundsBits32
WithBoundsBits64
minBound : WithBoundsa=>a
Totality: total
Visibility: public export
maxBound : WithBoundsa=>a
Totality: total
Visibility: public export
dataRangeOf : Type->Type
  A range of unicode code points.

Actually, it's a range of 32-bit numbers, but we use it for describing
ranges of codepoints in this library.

Totality: total
Visibility: export
Constructors:
Empty : RangeOft
Rng : t->t->RangeOft

Hints:
Eqt=>Eq (RangeOft)
Ordt=>Ord (RangeOft)
Showt=>Show (RangeOft)
0Range8 : Type
Totality: total
Visibility: public export
0Range32 : Type
Totality: total
Visibility: public export
empty : RangeOft
  The empty range of codepoints.

Totality: total
Visibility: export
singleton : t->RangeOft
  A range containing a single value

Totality: total
Visibility: export
isEmpty : RangeOft->Bool
Totality: total
Visibility: export
range : Ordt=>t->t->RangeOft
  Generates a new range from `x` to `y` if `x` is strictly
smaller than `y`. Otherwise, the empty range is returned.

Totality: total
Visibility: export
has : Ordt=>RangeOft->t->Bool
  True if the value is within the range.

Totality: total
Visibility: export
overlap : Ordt=>RangeOft->RangeOft->Bool
  True if the two ranges overlap

Totality: total
Visibility: export
span : Ordt=>RangeOft->RangeOft->RangeOft
  Spans the range from the lowest to the largest bound of the two ranges.

Totality: total
Visibility: export
intersection : Ordt=>RangeOft->RangeOft->RangeOft
  Intersection of two ranges, if any.

Totality: total
Visibility: export
adjacent : Ordt=>Negt=>RangeOft->RangeOft->Bool
  True if the two ranges are adjacent, that is, the upper bound
of one range is one less than the lower bound of the other.

Totality: total
Visibility: export
union : Ordt=>Negt=>RangeOft->RangeOft->Either (RangeOft) (RangeOft, RangeOft)
  Union of the ranges.

If there are two results then they are guaranteed to be non-empty,
have a non-empty gap in between, and are in ascending order

Totality: total
Visibility: export
difference : Ordt=>Negt=>RangeOft->RangeOft->Either (RangeOft) (RangeOft, RangeOft)
  Returns the result of subtracting the second range from the first.

If there are two results then they are guaranteed to be non-empty,
have a non-empty gap in between, and are in ascending order

Totality: total
Visibility: export
codepoint : Range32
  The range of all unicode code points.

Totality: total
Visibility: export
surrogate : Range32
  The range of surrogate pairs.

Totality: total
Visibility: export
charRange : Char->Char->Range32
  A range corresponding to a pair of characters.

Totality: total
Visibility: export
fullRange : WithBoundst=>RangeOft
  The full range.  All 32 bit values are within it.

Totality: total
Visibility: export
isFull : WithBoundst=>RangeOft->Bool
  A range is full if it contains every possible value.

Totality: total
Visibility: export
lowerBound : WithBoundst=>RangeOft->t
Totality: total
Visibility: export
upperBound : WithBoundst=>RangeOft->t
Totality: total
Visibility: export