FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    is_eol

    fn is_eol(c: u16) -> bool
    

    Source

    is_start_of_word

    fn is_start_of_word(text: &[u16], index: i32) -> bool
    

    Source

    is_end_of_word

    fn is_end_of_word(text: &[u16], index: i32) -> bool
    

    Source

    previous_word

    fn previous_word(text: &[u16], cursor: i32) -> i32
    

    Source

    next_word

    fn next_word(text: &[u16], cursor: i32) -> i32
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.