unicode-categories icon indicating copy to clipboard operation
unicode-categories copied to clipboard

Get unicode category

Open windelbouwman opened this issue 5 years ago • 2 comments

Hi,

I would like to use this crate, but I need a function that returns the category from the crate.

For example:

let c = 'A';
assert_eq!(c.category(), "Lu");

Would this be something that could be implemented in this crate?

windelbouwman avatar Jun 26 '19 08:06 windelbouwman

For the moment, I will look into this crate; https://github.com/open-i18n/rust-unic

windelbouwman avatar Jun 26 '19 09:06 windelbouwman

I’ve implemented this in finl_unicode, which I just released on crates.io. It supports the latest Unicode standard and is 10–20 times faster than unicode-categories.

dahosek avatar Aug 30 '22 04:08 dahosek