Function uniaxe::uniaxe [−][src]
pub fn uniaxe(text: &str, table: &HashMap<char, char>) -> String
This will actually carry out the replacement of unicode characters (this is the function you probably want to use if you just want to use this crate)
Example
use uniaxe::uniaxe; use uniaxe::lookup::generate_table; let table = generate_table(); let text = uniaxe("𝙡𝙤𝙤𝙠 𝙖𝙩 𝙢𝙚 𝙞'𝙢 𝙨𝙤 𝙦𝙪𝙞𝙧𝙠𝙮", &table); println!("{}", text); // This will display "look at me i'm so quirky"
This function will always return a string, so no need to handle any errors