Function deunicode::deunicode_char

source ·
pub fn deunicode_char(ch: char) -> Option<&'static str>
Expand description

This function takes a single Unicode character and returns an ASCII transliteration.

The warnings and guarantees of deunicode() apply to this function as well.

Examples

assert_eq!(deunicode_char('Æ'), Some("AE"));
assert_eq!(deunicode_char('北'), Some("Bei "));