StringUtils
struct · ferroui-controls · v0.5.0
struct StringUtils
Word and line navigation over UTF-16 text.
Every index is a UTF-16 code unit index, and every character test looks at a single code unit, as the reference does.
Members
is_eol
fn is_eol(c: u16) -> bool
is_start_of_word
fn is_start_of_word(text: &[u16], index: i32) -> bool
is_end_of_word
fn is_end_of_word(text: &[u16], index: i32) -> bool
previous_word
fn previous_word(text: &[u16], cursor: i32) -> i32
next_word
fn next_word(text: &[u16], cursor: i32) -> i32
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.