This crate provides a basic implementation of the Unicode Collation Algorithm. There is really
just one method,
collate, belonging to a struct,
Collator, which sets a few options. (The
collate_no_tiebreak method is a variation whose behavior is a bit more strict.) Despite the
bare-bones API, this implementation conforms to the standard and allows for the use of the CLDR
root collation order; so it may indeed be useful, even in this early stage of development.
Collatorstruct is the entry point for this library’s API. It defines the options to be used in collation. The method
collate_no_tiebreakwill then compare two string references (or byte slices) according to the selected options, and return an
Root, represents the CLDR root collation order. At the moment, there is only one other choice:
ArabicScript. But the list should grow over time.
Rootlocale represents the table in its unmodified form.)