On Aug 26, 3:27*pm, miztaken <justjunkt...@gmail.comwrote:
Hi there,
char c;
I want to know Character.UnicodeBlock.of(c) in C#.
Its available in Java but how can this be done in C#?
I dont see UnicodeBlock Structure in C#.
Some of its functionality is covered by UnicodeCategory type, and
GetUnicodeCategory() method. However, it does not cover named Unicode
blocks (such as Greek or Cyrillic). The closest you can get to that,
as far as I know, is to use regexes such as @"\p{IsGreek}". If you
need to determine the category, rather than checking whether a
character belongs to some specific category, then it could be done
with a regex which chooses between all possible named groups inside
subexpressions, and then get the number of subexpression that matched.