110 lines
3.6 KiB
C#
110 lines
3.6 KiB
C#
using System;
|
|
|
|
namespace Mono.Globalization.Unicode
|
|
{
|
|
// Token: 0x02000089 RID: 137
|
|
internal class NormalizationTableUtil
|
|
{
|
|
// Token: 0x060007CE RID: 1998 RVA: 0x00019C14 File Offset: 0x00017E14
|
|
static NormalizationTableUtil()
|
|
{
|
|
int[] array = new int[] { 0, 2320, 6912, 9312, 10624, 11376, 11616, 11920, 42864, 63744 };
|
|
int[] array2 = new int[] { 1760, 4608, 9008, 9728, 10976, 11392, 11632, 13312, 42880, 65536 };
|
|
int[] array3 = new int[] { 144, 2336, 7456, 9312, 9376, 10752, 11616, 11920, 63744 };
|
|
int[] array4 = new int[] { 1760, 4352, 9008, 9376, 9456, 10976, 11632, 13312, 65536 };
|
|
int[] array5 = new int[]
|
|
{
|
|
752, 1152, 1424, 2352, 2480, 2608, 2736, 2864, 3008, 3136,
|
|
3248, 3392, 3520, 3632, 3760, 3840, 4144, 4944, 5904, 6096,
|
|
6304, 6448, 6672, 7616, 8400, 12320, 12432, 43008, 64272, 65056
|
|
};
|
|
int[] array6 = new int[]
|
|
{
|
|
864, 1168, 1872, 2400, 2512, 2640, 2768, 2896, 3024, 3168,
|
|
3280, 3408, 3536, 3664, 3792, 4048, 4160, 4960, 5952, 6112,
|
|
6320, 6464, 6688, 7632, 8432, 12336, 12448, 43024, 64288, 65072
|
|
};
|
|
int[] array7 = new int[] { 1152, 5136, 5744 };
|
|
int[] array8 = new int[] { 4224, 5504, 8624 };
|
|
int[] array9 = new int[] { 0, 2304, 7424, 9472, 12288, 15248, 16400, 19968, 64320 };
|
|
int[] array10 = new int[] { 1792, 4608, 8960, 9728, 12640, 15264, 16432, 40960, 64336 };
|
|
NormalizationTableUtil.Prop = new CodePointIndexer(array, array2, 0, 0);
|
|
NormalizationTableUtil.Map = new CodePointIndexer(array3, array4, 0, 0);
|
|
NormalizationTableUtil.Combining = new CodePointIndexer(array5, array6, 0, 0);
|
|
NormalizationTableUtil.Composite = new CodePointIndexer(array7, array8, 0, 0);
|
|
NormalizationTableUtil.Helper = new CodePointIndexer(array9, array10, 0, 0);
|
|
}
|
|
|
|
// Token: 0x060007CF RID: 1999 RVA: 0x00019D4C File Offset: 0x00017F4C
|
|
public static int PropIdx(int cp)
|
|
{
|
|
return NormalizationTableUtil.Prop.ToIndex(cp);
|
|
}
|
|
|
|
// Token: 0x060007D0 RID: 2000 RVA: 0x00019D5C File Offset: 0x00017F5C
|
|
public static int PropCP(int index)
|
|
{
|
|
return NormalizationTableUtil.Prop.ToCodePoint(index);
|
|
}
|
|
|
|
// Token: 0x170000DE RID: 222
|
|
// (get) Token: 0x060007D1 RID: 2001 RVA: 0x00019D6C File Offset: 0x00017F6C
|
|
public static int PropCount
|
|
{
|
|
get
|
|
{
|
|
return NormalizationTableUtil.Prop.TotalCount;
|
|
}
|
|
}
|
|
|
|
// Token: 0x060007D2 RID: 2002 RVA: 0x00019D78 File Offset: 0x00017F78
|
|
public static int MapIdx(int cp)
|
|
{
|
|
return NormalizationTableUtil.Map.ToIndex(cp);
|
|
}
|
|
|
|
// Token: 0x060007D3 RID: 2003 RVA: 0x00019D88 File Offset: 0x00017F88
|
|
public static int MapCP(int index)
|
|
{
|
|
return NormalizationTableUtil.Map.ToCodePoint(index);
|
|
}
|
|
|
|
// Token: 0x060007D4 RID: 2004 RVA: 0x00019D98 File Offset: 0x00017F98
|
|
public static int CbIdx(int cp)
|
|
{
|
|
return NormalizationTableUtil.Combining.ToIndex(cp);
|
|
}
|
|
|
|
// Token: 0x060007D5 RID: 2005 RVA: 0x00019DA8 File Offset: 0x00017FA8
|
|
public static int CbCP(int index)
|
|
{
|
|
return NormalizationTableUtil.Combining.ToCodePoint(index);
|
|
}
|
|
|
|
// Token: 0x170000DF RID: 223
|
|
// (get) Token: 0x060007D6 RID: 2006 RVA: 0x00019DB8 File Offset: 0x00017FB8
|
|
public static int MapCount
|
|
{
|
|
get
|
|
{
|
|
return NormalizationTableUtil.Map.TotalCount;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04000166 RID: 358
|
|
public static readonly CodePointIndexer Prop;
|
|
|
|
// Token: 0x04000167 RID: 359
|
|
public static readonly CodePointIndexer Map;
|
|
|
|
// Token: 0x04000168 RID: 360
|
|
public static readonly CodePointIndexer Combining;
|
|
|
|
// Token: 0x04000169 RID: 361
|
|
public static readonly CodePointIndexer Composite;
|
|
|
|
// Token: 0x0400016A RID: 362
|
|
public static readonly CodePointIndexer Helper;
|
|
}
|
|
}
|