MBZ
MBZ

Reputation: 27632

get category of a Unicode letter

As described here:

Char.IsLetter() determines whether a Char is a member of any category of Unicode letter.

is it possible the get the category of Unicode letter itself, when Char.IsLetter() is true?

Upvotes: 2

Views: 606

Answers (1)

Jon Skeet
Jon Skeet

Reputation: 1503529

Sure - I think you want CharUnicodeInfo.GetUnicodeCategory(char) or Char.GetUnicodeCategory(char).

See the documentation for the differences - the suggestion is that you use CharUnicodeInfo, in order to get the value in the current Unicode standard.

Upvotes: 3

Related Questions