New test.
[mono.git] / mcs / class / corlib / Mono.Globalization.Unicode / MSCompatUnicodeTableUtil.cs
index e691a1c7eb68d802ec6814d40a77e530613e63f9..605e6f876985261f18e8ad9afc30cb18d54d5da7 100644 (file)
@@ -1,3 +1,30 @@
+//
+// 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;
@@ -6,14 +33,14 @@ namespace Mono.Globalization.Unicode
 {
        internal /*static*/ class MSCompatUnicodeTableUtil
        {
-               public const byte ResourceVersion = 1;
+               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;
 
@@ -37,8 +64,8 @@ namespace Mono.Globalization.Unicode
                        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 [] {
@@ -51,7 +78,7 @@ namespace Mono.Globalization.Unicode
                        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);
                }