Module Cduce_types__CharSet
Sets of characters (Unicode code points) represented as disjoint intervals. The range of valid code points is [0-0x10ffff]. Surrogate pairs, that is code points in the range [0xd7ff-0xdfff] are allowed but their use is not recommended.
include Cduce_types.Tset.S with type elem = V.t
include Cduce_types.Tset.Tset_base
val empty : tThe empty set
val any : tThe full set, containing all possible values for this kind.
Set operations :
module Infix : sig ... endType specific operations:
val char_class : V.t -> V.t -> tchar_class i jreturns the set of codepoints betweeniandjinclusive. Returnsemptyifi > j.
val mk_classes : (V.t * V.t) list -> tmk_classes lreturns the set of disjoint unions of ranges of code points inl. Overlaping ranges are supported (and simplified).
Membership:
val is_empty : t -> boolis_empty tchecks whetertis the empty set.
Formatting functions :
val print : t -> (Stdlib.Format.formatter -> unit) listprint treturns, for each interval in the sett, a function that prints the interval. Singleton intervals are juste printed asc(usingV.print). The intervals are always disjoints and printed in increasing order of their lower-bound, separated by"|". As a special case,any, that is the interval0-0x1f0000is printed asChar.