InternalGetCategoryValue() static private method

static private InternalGetCategoryValue ( int ch, int offset ) : byte
ch int
offset int
return byte
コード例 #1
0
 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));
 }
コード例 #2
0
 internal static UnicodeCategory InternalGetUnicodeCategory(int ch)
 {
     return((UnicodeCategory)CharUnicodeInfo.InternalGetCategoryValue(ch, 0));
 }