package camomile
A Unicode library
Install
Dune Dependency
github.com
Readme
Changelog
LGPL-2.0-or-later WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (6)
Authors
Maintainers
Sources
v2.0.0.tar.gz
md5=41e02d124c3fa29ea511110d2c6532de
sha512=b0ae3d921f65390e8ec88a04901dd097b568db9f9ae70fb328e9d3ddb2dd8922b9a8e8da9ace91ad9cb5f6a1310ae5b6ba502e287d6c828f4d60622289316ac8
doc/camomile.lib/CamomileLib/UCol/Make/index.html
Module UCol.Make
Parameters
module _ : Config.Type
module Text : UnicodeString.Type
Signature
type text = Text.t
type index = Text.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 Stdlib.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 = Stdlib.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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page