package camomile
A Unicode library
Install
Dune Dependency
github.com
Readme
Changelog
LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception License
Edit opam file
Versions (6)
Authors
Maintainers
Sources
camomile-1.0.2.tbz
sha256=f0a419b0affc36500f83b086ffaa36c545560cee5d57e84b729e8f851b3d1632
sha512=7586422e68779476206027c6ebbe19b677fbe459153221f7c952c7fae374c5c8232249cb76fdb1f482069707aa1580be827cd39693906142988268b7f0e7f6d0
doc/camomile.library/CamomileLibrary/UCol/module-type-Type/index.html
Module type UCol.Type
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>