YTBN-Graphing-Software/src/unicode_helper.rs
Simon Gardling 252312b1f7 clippy
2022-06-01 02:29:48 -04:00

10 lines
185 B
Rust

#[allow(dead_code)]
pub fn to_unicode_hash(c: char) -> String {
c.escape_unicode()
.to_string()
.replace(r#"\\u{"#, "")
.replace('{', "")
.replace('}', "")
.to_uppercase()
}