Trait char_fns::CharFns [] [src]

pub trait CharFns {
    fn char_len(&self) -> usize;
    fn char_split(&self, index: usize) -> (&str, &str);
    fn char_replace(&self, index: usize, len: usize, text: &str) -> String;
}

Provides methods for unicode character-indexed string manipulation.

Required Methods

Returns the number of unicode characters in the string.

Splits the string at the unicode character index.

Replaces a range of unicode characters with a new substring.

Implementors