+//
+// MSCompatUnicodeTable.cs : Utility for MSCompatUnicodeTable class.
+//
+// Author:
+// Atsushi Enomoto <atsushi@ximian.com>
+//
+// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+//
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
using System;
using System.Globalization;
using System.Text;
namespace Mono.Globalization.Unicode
{
-/*
- // Represents a text element that consists of either contraction or
- // expansion.
- internal class TextElementSequence
- {
- public readonly char [] Sources;
- public readonly byte [] SortKey;
-
- public TextElementSequence (char [] sources, byte [] sortkey)
- {
- Sources = new char [sources.Length];
- Array.Copy (sources, Sources, sources.Length);
-
- SortKey = new byte [sortkey.Length];
- Array.Copy (sortkey, SortKey, sortkey.Length);
- }
- }
-*/
internal /*static*/ class MSCompatUnicodeTableUtil
{
+ public const byte ResourceVersion = 3;
+
public static readonly CodePointIndexer Ignorable;
public static readonly CodePointIndexer Category;
public static readonly CodePointIndexer Level1;
public static readonly CodePointIndexer Level2;
public static readonly CodePointIndexer Level3;
- public static readonly CodePointIndexer WidthCompat;
+// public static readonly CodePointIndexer WidthCompat;
public static readonly CodePointIndexer CjkCHS;
public static readonly CodePointIndexer Cjk;
int [] lv2Ends = new int [] {0xF00, 0x2800, 0x3400, 0x10000};
int [] lv3Starts = new int [] {0, 0x1E00, 0x3000, 0xFB00};
int [] lv3Ends = new int [] {0x1200, 0x2800, 0x3400, 0x10000};
- int [] widthStarts = new int [] {0, 0x2000, 0x3100, 0xFF00};
- int [] widthEnds = new int [] {0x300, 0x2200, 0x3200, 0x10000};
+// int [] widthStarts = new int [] {0, 0x2000, 0x3100, 0xFF00};
+// int [] widthEnds = new int [] {0x300, 0x2200, 0x3200, 0x10000};
int [] chsStarts = new int [] {
0x3100, 0x4E00, 0xE800}; // FIXME: really?
int [] chsEnds = new int [] {
Level1 = new CodePointIndexer (lv1Starts, lv1Ends, 0, 0);
Level2 = new CodePointIndexer (lv2Starts, lv2Ends, 0, 0);
Level3 = new CodePointIndexer (lv3Starts, lv3Ends, 0, 0);
- WidthCompat = new CodePointIndexer (widthStarts, widthEnds, 0, 0);
+// WidthCompat = new CodePointIndexer (widthStarts, widthEnds, 0, 0);
CjkCHS = new CodePointIndexer (chsStarts, chsEnds, -1, -1);
Cjk = new CodePointIndexer (cjkStarts, cjkEnds, -1, -1);
}