Function grapheme_indices
pub fn grapheme_indices(text: &str) -> impl Iterator<Item = (usize, &str)>Expand description
Extended grapheme clusters (UAX #29) paired with their starting byte offset, so combining marks, emoji modifiers, flags and ZWJ sequences stay whole. Offsets address the original UTF-8 string and each slice is a complete UAX #29 cluster, using the same ICU rules as toolkit selection.