Struct rust_icu_ucol::UCollator [−][src]
pub struct UCollator { /* fields omitted */ }
Implementations
impl UCollator
[src]
impl UCollator
[src]pub fn strcoll(&self, first: &UChar, second: &UChar) -> Ordering
[src]
pub fn strcoll(&self, first: &UChar, second: &UChar) -> Ordering
[src]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
pub fn strcoll_utf8(
&self,
first: impl AsRef<str>,
second: impl AsRef<str>
) -> Result<Ordering, Error>
[src]
pub fn strcoll_utf8(
&self,
first: impl AsRef<str>,
second: impl AsRef<str>
) -> Result<Ordering, Error>
[src]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
pub fn get_strength(&self) -> UCollationStrength
[src]
pub fn get_strength(&self) -> UCollationStrength
[src]Implements ucol_getStrength
.
pub fn set_strength(&mut self, strength: UCollationStrength)
[src]
pub fn set_strength(&mut self, strength: UCollationStrength)
[src]Implements ucol_setStrength
pub fn set_attribute(
&self,
attr: UColAttribute,
value: UColAttributeValue
) -> Result<(), Error>
[src]
pub fn set_attribute(
&self,
attr: UColAttribute,
value: UColAttributeValue
) -> Result<(), Error>
[src]Implements $impl_name
.
pub fn get_attribute(
&self,
attr: UColAttribute
) -> Result<UColAttributeValue, Error>
[src]
pub fn get_attribute(
&self,
attr: UColAttribute
) -> Result<UColAttributeValue, Error>
[src]Implements $impl_name
.