[][src]Function deunicode::deunicode_char

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

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 "));