package camomile

  1. Overview
  2. Docs
A Unicode library

Install

Dune Dependency

Authors

Maintainers

Sources

camomile-rel-1.0.0.tbz
sha256=718f8d0222d49cf2633462231f10e08c2f09aa824f1d11ac707cdc689a378ef0
md5=ade54c020169c5c7c5563751cd79f510

doc/camomile.library/CamomileLibrary/UCol/module-type-Type/index.html

Module type UCol.Type

type text
type index
val compare : ?locale:string -> ?prec:precision -> ?variable:variable_option -> text -> text -> int

For locale, see Locale. If locale is omitted, the standard UCA order is used. If prec is omitted, the maximum possible strength is used. If variable is omitted, the default of the locale (usually `Shifted) is used. The meaning of the returned value is similar to Pervasives.compare

val sort_key : ?locale:string -> ?prec:precision -> ?variable:variable_option -> text -> string

Binary comparison of sort_key gives the same result as compare. i.e. compare t1 t2 = Pervasives.compare (sort_key t1) (sort_key t2) If the same texts are repeatedly compared, pre-computation of sort_key gives better performance.

val compare_with_key : ?locale:string -> ?prec:precision -> ?variable:variable_option -> string -> text -> int

Comparison with the sort key.

val search_with_key : ?locale:string -> ?prec:precision -> ?variable:variable_option -> string -> text -> index -> index * index
OCaml

Innovation. Community. Security.