Skip to main content

cap_grapheme

Function cap_grapheme 

Source
pub(crate) fn cap_grapheme(grapheme: &str) -> String
Expand description

Returns grapheme truncated to at most 8 codepoints (combining-mark bomb defence). If the input is already within the limit it is returned as-is.

Only present when the egc feature is enabled.