Is there any way I can find a Unicode character’s bidirectional character type in C#?
I want to look through the characters in a string and decide if they are all strong LTR, strong RTL, a mixture of strong LTR and neutral, etc.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
System.Globalization.CharUnicodeInfo.GetBidiCategory(ch)is your friend.The problem is that the function is internal. This MichKap (RIP) blog post shows you how to call it using reflection.