1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
//! 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.
#![warn(clippy::pedantic, clippy::cargo)]
#![allow(clippy::module_name_repetitions)]
#![deny(missing_docs)]
mod ascii;
mod cea;
mod cea_utils;
mod collator;
pub use collator::Collator;
mod consts;
mod first_weight;
mod normalize;
mod prefix;
mod sort_key;
mod tailor;
mod types;
pub use types::{Locale, Tailoring};