Struct rust_icu_ucol::UCollator [−][src]
pub struct UCollator { /* fields omitted */ }
Implementations
Compares strings first
and second
according to the collation rules in this collator.
Returns Ordering::Less if first
compares as less than second
, and for other return
codes respectively.
Implements ucol_strcoll
Get a sort key for a string from this collator.
Returns a sort key.
Implements ucol_getSortKey
Compares strings first
and second
according to the collation rules in this collator.
Returns Ordering::Less if first
compares as less than second
, and for other return
codes respectively.
In contrast to UCollator::strcoll, this function requires no string conversions to compare two rust strings.
Implements ucol_strcoll
Implements ucol_strcollUTF8
Implements ucol_getStrength
.
Implements ucol_setStrength
pub fn set_attribute(
&self,
attr: UColAttribute,
value: UColAttributeValue
) -> Result<(), Error>
pub fn set_attribute(
&self,
attr: UColAttribute,
value: UColAttributeValue
) -> Result<(), Error>
Implements $impl_name
.
Implements $impl_name
.