2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / corlib / Mono.Globalization.Unicode / CollationElementTableUtil.cs
blob781c76c331bd2c519ac88c7acc4505afefc9f4b2
1 using System;
2 using System.Globalization;
3 using System.Text;
5 namespace Mono.Globalization.Unicode
7 internal struct SortKeyValue {
8 public readonly bool Alt;
9 public readonly ushort Primary;
10 public readonly byte Secondary;
11 public readonly byte Thirtiary;
12 public readonly int Quarternary;
14 public SortKeyValue (bool alt, ushort v1, byte v2, byte v3, int v4)
16 Alt = alt;
17 Primary = v1;
18 Secondary = v2;
19 Thirtiary = v3;
20 Quarternary = v4;
24 internal /*static*/ class CollationElementTableUtil
26 public static readonly CodePointIndexer Indexer;
28 static CollationElementTableUtil ()
30 int [] starts = new int [] {
31 0, 0x4dc0, 0xa000, 0xf900, 0xfb00,
32 0x1d000, 0x2f800, 0xe0000, 0x110000};
33 int [] ends = new int [] {
34 0x3410, 0x4e10, 0xa4d0, 0xfa70, 0x10840,
35 0x1d800, 0x2fa20, 0xe0200, 0x110000};
36 Indexer = new CodePointIndexer (starts, ends, 0, 0);