Skip to main content

nfc_text

Function nfc_text 

Source
pub fn nfc_text(text: &str) -> Cow<'_, str>
Expand description

Return text in Unicode NFC form, borrowing when it is already normalized.

ยงExamples

use mos_fonts::nfc_text;

assert_eq!(nfc_text("S\u{0326}"), "\u{0218}");