strip ubuntu light font
This commit is contained in:
9
src/unicode_helper.rs
Normal file
9
src/unicode_helper.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
#[allow(dead_code)]
|
||||
pub fn to_unicode_hash(c: char) -> String {
|
||||
c.escape_unicode()
|
||||
.to_string()
|
||||
.replace(r#"\\u{"#, "")
|
||||
.replace("{", "")
|
||||
.replace("}", "")
|
||||
.to_uppercase()
|
||||
}
|
||||
Reference in New Issue
Block a user