ICompareRules
trait · ferroui-base · v0.5.0
trait ICompareRules: 'static
The culture-sensitive comparison rules of a culture, supplied by a
culture data provider. options never has an ordinal flag: the ordinal
comparisons do not reach the rules of a culture.
Members
compare
fn compare(self: &Self, a: &str, b: &str, options: CompareOptions) -> Ordering
Compares two strings.
is_prefix
fn is_prefix(self: &Self, source: &str, prefix: &str, options: CompareOptions) -> bool
Whether source starts with prefix.
index_of
fn index_of(self: &Self, source: &str, value: &str, options: CompareOptions) -> i32
The position of the first occurrence of value in source in
UTF-16 code units, or -1.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.