2005-07-27 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / corlib / Mono.Globalization.Unicode / CollationElementTableUtil.cs
1 using System;
2 using System.Globalization;
3 using System.Text;
4
5 namespace Mono.Globalization.Unicode
6 {
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;
13
14                 public SortKeyValue (bool alt, ushort v1, byte v2, byte v3, int v4)
15                 {
16                         Alt = alt;
17                         Primary = v1;
18                         Secondary = v2;
19                         Thirtiary = v3;
20                         Quarternary = v4;
21                 }
22         }
23
24         internal /*static*/ class CollationElementTableUtil
25         {
26                 public static readonly CodePointIndexer Indexer;
27
28                 static CollationElementTableUtil ()
29                 {
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);
37                 }
38         }
39 }