In .Net, given a char, is there a way to tell if that character is part of a specific Unicode category? The categories I'm interested are defined here http://www.fileformat.info/info/unicode/category/index.htm
For example, is there a function that does anything like this?:
bool isCharInClass(Char c, String class)
that could be called like:
SomeClass.isCharInClass("a", "Lo");
You can use Char.GetUnicodeCategory or CharUnicodeInfo.GetUnicodeCategory to get the unicode category (as a UnicodeCategory).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With