Module Uucp.Case

Case properties, mappings and foldings.

These properties can implement Unicode's default case detection, case conversion and caseless equality over Unicode text, see the examples.

References

Case properties

val is_lower : Stdlib.Uchar.t -> bool

is_lower u is true iff u has the Lowercase derived property.

val is_upper : Stdlib.Uchar.t -> bool

is_upper u is true iff u has the Uppercase derived property.

val is_cased : Stdlib.Uchar.t -> bool

is_cased u is true iff u has the Cased derived property.

val is_case_ignorable : Stdlib.Uchar.t -> bool

is_case_ignorable is true iff u has the Case_Ignorable derived property.

Case mappings and foldings

module Map : sig ... end

Case mappings.

module Fold : sig ... end

Case folding.

module Nfkc_fold : sig ... end

NFKC case folding.

Examples

Default case conversion on UTF-8 strings

Default caseless matching (equality) on UTF-8 strings