unidecode

Function unidecode_char

Source
pub fn unidecode_char(ch: char) -> &'static str
Expand description

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

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

§Examples

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