pub fn split(text: &str, limit: usize) -> Result<Split, Error>Expand description
Counts the entire text and returns up to limit groups ending on grapheme boundaries.
A zero limit returns an empty preview and the full count.
ยงErrors
Returns the errors described by encode, or Error::Internal for inconsistent token offsets.