internal static BidiCategory GetBidiCategory(string s, int index) { if (s == null) { throw new ArgumentNullException("s"); } if ((uint)index >= (uint)s.Length) { throw new ArgumentOutOfRangeException("index"); } return((BidiCategory)CharUnicodeInfo.InternalGetCategoryValue(CharUnicodeInfo.InternalConvertToUtf32(s, index), 1)); }
internal static UnicodeCategory InternalGetUnicodeCategory(int ch) { return((UnicodeCategory)CharUnicodeInfo.InternalGetCategoryValue(ch, 0)); }