Back to index

lightning-sunbird  0.9+nobinonly
casetable.h
Go to the documentation of this file.
00001 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00004  *
00005  * The contents of this file are subject to the Mozilla Public License Version
00006  * 1.1 (the "License"); you may not use this file except in compliance with
00007  * the License. You may obtain a copy of the License at
00008  * http://www.mozilla.org/MPL/
00009  *
00010  * Software distributed under the License is distributed on an "AS IS" basis,
00011  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012  * for the specific language governing rights and limitations under the
00013  * License.
00014  *
00015  * The Original Code is mozilla.org code.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1999
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 /* 
00038     DO NOT EDIT THIS DOCUMENT !!! THIS DOCUMENT IS GENERATED BY
00039     mozilla/intl/unicharutil/tools/gencasetable.pl
00040  */
00041 #include "nscore.h" 
00042 
00043 static const PRUnichar gUpperToTitle[] = { 
00044    0x01F1,    0x01F2, 
00045    0x01C7,    0x01C8, 
00046    0x01CA,    0x01CB, 
00047    0x01C4,    0x01C5, 
00048 };
00049 
00050 static const PRUint32 gUpperToTitleItems = 4;
00051 
00052 static const PRUint16 gToUpper[] = 
00053 { /*   From    To             Every   Diff   */ 
00054        0x0061, ((0x19 << 8) | 0x01), 0xffe0  ,
00055        0x00b5, ((0x00 << 8) | 0x00), 0x02e7  ,
00056        0x00e0, ((0x16 << 8) | 0x01), 0xffe0  ,
00057        0x00f8, ((0x06 << 8) | 0x01), 0xffe0  ,
00058        0x00ff, ((0x00 << 8) | 0x00), 0x0079  ,
00059        0x0101, ((0x2e << 8) | 0x02), 0xffff  ,
00060        0x0131, ((0x00 << 8) | 0x00), 0xff18  ,
00061        0x0133, ((0x04 << 8) | 0x02), 0xffff  ,
00062        0x013a, ((0x0e << 8) | 0x02), 0xffff  ,
00063        0x014b, ((0x2c << 8) | 0x02), 0xffff  ,
00064        0x017a, ((0x04 << 8) | 0x02), 0xffff  ,
00065        0x017f, ((0x00 << 8) | 0x00), 0xfed4  ,
00066        0x0180, ((0x00 << 8) | 0x00), 0x00c3  ,
00067        0x0183, ((0x02 << 8) | 0x02), 0xffff  ,
00068        0x0188, ((0x04 << 8) | 0x04), 0xffff  ,
00069        0x0192, ((0x00 << 8) | 0x00), 0xffff  ,
00070        0x0195, ((0x00 << 8) | 0x00), 0x0061  ,
00071        0x0199, ((0x00 << 8) | 0x00), 0xffff  ,
00072        0x019a, ((0x00 << 8) | 0x00), 0x00a3  ,
00073        0x019e, ((0x00 << 8) | 0x00), 0x0082  ,
00074        0x01a1, ((0x04 << 8) | 0x02), 0xffff  ,
00075        0x01a8, ((0x05 << 8) | 0x05), 0xffff  ,
00076        0x01b0, ((0x04 << 8) | 0x04), 0xffff  ,
00077        0x01b6, ((0x03 << 8) | 0x03), 0xffff  ,
00078        0x01bd, ((0x00 << 8) | 0x00), 0xffff  ,
00079        0x01bf, ((0x00 << 8) | 0x00), 0x0038  ,
00080        0x01c5, ((0x00 << 8) | 0x00), 0xffff  ,
00081        0x01c6, ((0x00 << 8) | 0x00), 0xfffe  ,
00082        0x01c8, ((0x00 << 8) | 0x00), 0xffff  ,
00083        0x01c9, ((0x00 << 8) | 0x00), 0xfffe  ,
00084        0x01cb, ((0x00 << 8) | 0x00), 0xffff  ,
00085        0x01cc, ((0x00 << 8) | 0x00), 0xfffe  ,
00086        0x01ce, ((0x0e << 8) | 0x02), 0xffff  ,
00087        0x01dd, ((0x00 << 8) | 0x00), 0xffb1  ,
00088        0x01df, ((0x10 << 8) | 0x02), 0xffff  ,
00089        0x01f2, ((0x00 << 8) | 0x00), 0xffff  ,
00090        0x01f3, ((0x00 << 8) | 0x00), 0xfffe  ,
00091        0x01f5, ((0x04 << 8) | 0x04), 0xffff  ,
00092        0x01fb, ((0x24 << 8) | 0x02), 0xffff  ,
00093        0x0223, ((0x10 << 8) | 0x02), 0xffff  ,
00094        0x023c, ((0x06 << 8) | 0x06), 0xffff  ,
00095        0x0247, ((0x08 << 8) | 0x02), 0xffff  ,
00096        0x0253, ((0x00 << 8) | 0x00), 0xff2e  ,
00097        0x0254, ((0x00 << 8) | 0x00), 0xff32  ,
00098        0x0256, ((0x01 << 8) | 0x01), 0xff33  ,
00099        0x0259, ((0x00 << 8) | 0x00), 0xff36  ,
00100        0x025b, ((0x00 << 8) | 0x00), 0xff35  ,
00101        0x0260, ((0x00 << 8) | 0x00), 0xff33  ,
00102        0x0263, ((0x00 << 8) | 0x00), 0xff31  ,
00103        0x0268, ((0x00 << 8) | 0x00), 0xff2f  ,
00104        0x0269, ((0x00 << 8) | 0x00), 0xff2d  ,
00105        0x026b, ((0x00 << 8) | 0x00), 0x29f7  ,
00106        0x026f, ((0x00 << 8) | 0x00), 0xff2d  ,
00107        0x0272, ((0x00 << 8) | 0x00), 0xff2b  ,
00108        0x0275, ((0x00 << 8) | 0x00), 0xff2a  ,
00109        0x027d, ((0x00 << 8) | 0x00), 0x29e7  ,
00110        0x0280, ((0x03 << 8) | 0x03), 0xff26  ,
00111        0x0288, ((0x00 << 8) | 0x00), 0xff26  ,
00112        0x0289, ((0x00 << 8) | 0x00), 0xffbb  ,
00113        0x028a, ((0x01 << 8) | 0x01), 0xff27  ,
00114        0x028c, ((0x00 << 8) | 0x00), 0xffb9  ,
00115        0x0292, ((0x00 << 8) | 0x00), 0xff25  ,
00116        0x0345, ((0x00 << 8) | 0x00), 0x0054  ,
00117        0x037b, ((0x02 << 8) | 0x01), 0x0082  ,
00118        0x03ac, ((0x00 << 8) | 0x00), 0xffda  ,
00119        0x03ad, ((0x02 << 8) | 0x01), 0xffdb  ,
00120        0x03b1, ((0x10 << 8) | 0x01), 0xffe0  ,
00121        0x03c2, ((0x00 << 8) | 0x00), 0xffe1  ,
00122        0x03c3, ((0x08 << 8) | 0x01), 0xffe0  ,
00123        0x03cc, ((0x00 << 8) | 0x00), 0xffc0  ,
00124        0x03cd, ((0x01 << 8) | 0x01), 0xffc1  ,
00125        0x03d0, ((0x00 << 8) | 0x00), 0xffc2  ,
00126        0x03d1, ((0x00 << 8) | 0x00), 0xffc7  ,
00127        0x03d5, ((0x00 << 8) | 0x00), 0xffd1  ,
00128        0x03d6, ((0x00 << 8) | 0x00), 0xffca  ,
00129        0x03d9, ((0x16 << 8) | 0x02), 0xffff  ,
00130        0x03f0, ((0x00 << 8) | 0x00), 0xffaa  ,
00131        0x03f1, ((0x00 << 8) | 0x00), 0xffb0  ,
00132        0x03f2, ((0x00 << 8) | 0x00), 0x0007  ,
00133        0x03f5, ((0x00 << 8) | 0x00), 0xffa0  ,
00134        0x03f8, ((0x03 << 8) | 0x03), 0xffff  ,
00135        0x0430, ((0x1f << 8) | 0x01), 0xffe0  ,
00136        0x0450, ((0x0f << 8) | 0x01), 0xffb0  ,
00137        0x0461, ((0x20 << 8) | 0x02), 0xffff  ,
00138        0x048b, ((0x34 << 8) | 0x02), 0xffff  ,
00139        0x04c2, ((0x0c << 8) | 0x02), 0xffff  ,
00140        0x04cf, ((0x00 << 8) | 0x00), 0xfff1  ,
00141        0x04d1, ((0x42 << 8) | 0x02), 0xffff  ,
00142        0x0561, ((0x25 << 8) | 0x01), 0xffd0  ,
00143        0x1d7d, ((0x00 << 8) | 0x00), 0x0ee6  ,
00144        0x1e01, ((0x94 << 8) | 0x02), 0xffff  ,
00145        0x1e9b, ((0x00 << 8) | 0x00), 0xffc5  ,
00146        0x1ea1, ((0x58 << 8) | 0x02), 0xffff  ,
00147        0x1f00, ((0x07 << 8) | 0x01), 0x0008  ,
00148        0x1f10, ((0x05 << 8) | 0x01), 0x0008  ,
00149        0x1f20, ((0x07 << 8) | 0x01), 0x0008  ,
00150        0x1f30, ((0x07 << 8) | 0x01), 0x0008  ,
00151        0x1f40, ((0x05 << 8) | 0x01), 0x0008  ,
00152        0x1f51, ((0x06 << 8) | 0x02), 0x0008  ,
00153        0x1f60, ((0x07 << 8) | 0x01), 0x0008  ,
00154        0x1f70, ((0x01 << 8) | 0x01), 0x004a  ,
00155        0x1f72, ((0x03 << 8) | 0x01), 0x0056  ,
00156        0x1f76, ((0x01 << 8) | 0x01), 0x0064  ,
00157        0x1f78, ((0x01 << 8) | 0x01), 0x0080  ,
00158        0x1f7a, ((0x01 << 8) | 0x01), 0x0070  ,
00159        0x1f7c, ((0x01 << 8) | 0x01), 0x007e  ,
00160        0x1f80, ((0x07 << 8) | 0x01), 0x0008  ,
00161        0x1f90, ((0x07 << 8) | 0x01), 0x0008  ,
00162        0x1fa0, ((0x07 << 8) | 0x01), 0x0008  ,
00163        0x1fb0, ((0x01 << 8) | 0x01), 0x0008  ,
00164        0x1fb3, ((0x00 << 8) | 0x00), 0x0009  ,
00165        0x1fbe, ((0x00 << 8) | 0x00), 0xe3db  ,
00166        0x1fc3, ((0x00 << 8) | 0x00), 0x0009  ,
00167        0x1fd0, ((0x01 << 8) | 0x01), 0x0008  ,
00168        0x1fe0, ((0x01 << 8) | 0x01), 0x0008  ,
00169        0x1fe5, ((0x00 << 8) | 0x00), 0x0007  ,
00170        0x1ff3, ((0x00 << 8) | 0x00), 0x0009  ,
00171        0x214e, ((0x00 << 8) | 0x00), 0xffe4  ,
00172        0x2170, ((0x0f << 8) | 0x01), 0xfff0  ,
00173        0x2184, ((0x00 << 8) | 0x00), 0xffff  ,
00174        0x24d0, ((0x19 << 8) | 0x01), 0xffe6  ,
00175        0x2c30, ((0x2e << 8) | 0x01), 0xffd0  ,
00176        0x2c61, ((0x00 << 8) | 0x00), 0xffff  ,
00177        0x2c65, ((0x00 << 8) | 0x00), 0xd5d5  ,
00178        0x2c66, ((0x00 << 8) | 0x00), 0xd5d8  ,
00179        0x2c68, ((0x04 << 8) | 0x02), 0xffff  ,
00180        0x2c76, ((0x0b << 8) | 0x0b), 0xffff  ,
00181        0x2c83, ((0x60 << 8) | 0x02), 0xffff  ,
00182        0x2d00, ((0x25 << 8) | 0x01), 0xe3a0  ,
00183        0xff41, ((0x19 << 8) | 0x01), 0xffe0   
00184 };
00185 
00186 static const PRUint32 gToUpperItems = 130;
00187 
00188 static const PRUint16 gToLower[] = 
00189 { /*   From    To             Every   Diff   */ 
00190        0x0041, ((0x19 << 8) | 0x01), 0x0020  ,
00191        0x00c0, ((0x16 << 8) | 0x01), 0x0020  ,
00192        0x00d8, ((0x06 << 8) | 0x01), 0x0020  ,
00193        0x0100, ((0x2e << 8) | 0x02), 0x0001  ,
00194        0x0130, ((0x00 << 8) | 0x00), 0xff39  ,
00195        0x0132, ((0x04 << 8) | 0x02), 0x0001  ,
00196        0x0139, ((0x0e << 8) | 0x02), 0x0001  ,
00197        0x014a, ((0x2c << 8) | 0x02), 0x0001  ,
00198        0x0178, ((0x00 << 8) | 0x00), 0xff87  ,
00199        0x0179, ((0x04 << 8) | 0x02), 0x0001  ,
00200        0x0181, ((0x00 << 8) | 0x00), 0x00d2  ,
00201        0x0182, ((0x02 << 8) | 0x02), 0x0001  ,
00202        0x0186, ((0x00 << 8) | 0x00), 0x00ce  ,
00203        0x0187, ((0x00 << 8) | 0x00), 0x0001  ,
00204        0x0189, ((0x01 << 8) | 0x01), 0x00cd  ,
00205        0x018b, ((0x00 << 8) | 0x00), 0x0001  ,
00206        0x018e, ((0x00 << 8) | 0x00), 0x004f  ,
00207        0x018f, ((0x00 << 8) | 0x00), 0x00ca  ,
00208        0x0190, ((0x00 << 8) | 0x00), 0x00cb  ,
00209        0x0191, ((0x00 << 8) | 0x00), 0x0001  ,
00210        0x0193, ((0x00 << 8) | 0x00), 0x00cd  ,
00211        0x0194, ((0x00 << 8) | 0x00), 0x00cf  ,
00212        0x0196, ((0x00 << 8) | 0x00), 0x00d3  ,
00213        0x0197, ((0x00 << 8) | 0x00), 0x00d1  ,
00214        0x0198, ((0x00 << 8) | 0x00), 0x0001  ,
00215        0x019c, ((0x00 << 8) | 0x00), 0x00d3  ,
00216        0x019d, ((0x00 << 8) | 0x00), 0x00d5  ,
00217        0x019f, ((0x00 << 8) | 0x00), 0x00d6  ,
00218        0x01a0, ((0x04 << 8) | 0x02), 0x0001  ,
00219        0x01a6, ((0x00 << 8) | 0x00), 0x00da  ,
00220        0x01a7, ((0x00 << 8) | 0x00), 0x0001  ,
00221        0x01a9, ((0x00 << 8) | 0x00), 0x00da  ,
00222        0x01ac, ((0x00 << 8) | 0x00), 0x0001  ,
00223        0x01ae, ((0x00 << 8) | 0x00), 0x00da  ,
00224        0x01af, ((0x00 << 8) | 0x00), 0x0001  ,
00225        0x01b1, ((0x01 << 8) | 0x01), 0x00d9  ,
00226        0x01b3, ((0x02 << 8) | 0x02), 0x0001  ,
00227        0x01b7, ((0x00 << 8) | 0x00), 0x00db  ,
00228        0x01b8, ((0x04 << 8) | 0x04), 0x0001  ,
00229        0x01c4, ((0x00 << 8) | 0x00), 0x0002  ,
00230        0x01c5, ((0x00 << 8) | 0x00), 0x0001  ,
00231        0x01c7, ((0x00 << 8) | 0x00), 0x0002  ,
00232        0x01c8, ((0x00 << 8) | 0x00), 0x0001  ,
00233        0x01ca, ((0x00 << 8) | 0x00), 0x0002  ,
00234        0x01cb, ((0x10 << 8) | 0x02), 0x0001  ,
00235        0x01de, ((0x10 << 8) | 0x02), 0x0001  ,
00236        0x01f1, ((0x00 << 8) | 0x00), 0x0002  ,
00237        0x01f2, ((0x02 << 8) | 0x02), 0x0001  ,
00238        0x01f6, ((0x00 << 8) | 0x00), 0xff9f  ,
00239        0x01f7, ((0x00 << 8) | 0x00), 0xffc8  ,
00240        0x01f8, ((0x26 << 8) | 0x02), 0x0001  ,
00241        0x0220, ((0x00 << 8) | 0x00), 0xff7e  ,
00242        0x0222, ((0x10 << 8) | 0x02), 0x0001  ,
00243        0x023a, ((0x00 << 8) | 0x00), 0x2a2b  ,
00244        0x023b, ((0x00 << 8) | 0x00), 0x0001  ,
00245        0x023d, ((0x00 << 8) | 0x00), 0xff5d  ,
00246        0x023e, ((0x00 << 8) | 0x00), 0x2a28  ,
00247        0x0241, ((0x00 << 8) | 0x00), 0x0001  ,
00248        0x0243, ((0x00 << 8) | 0x00), 0xff3d  ,
00249        0x0244, ((0x00 << 8) | 0x00), 0x0045  ,
00250        0x0245, ((0x00 << 8) | 0x00), 0x0047  ,
00251        0x0246, ((0x08 << 8) | 0x02), 0x0001  ,
00252        0x0386, ((0x00 << 8) | 0x00), 0x0026  ,
00253        0x0388, ((0x02 << 8) | 0x01), 0x0025  ,
00254        0x038c, ((0x00 << 8) | 0x00), 0x0040  ,
00255        0x038e, ((0x01 << 8) | 0x01), 0x003f  ,
00256        0x0391, ((0x10 << 8) | 0x01), 0x0020  ,
00257        0x03a3, ((0x08 << 8) | 0x01), 0x0020  ,
00258        0x03d8, ((0x16 << 8) | 0x02), 0x0001  ,
00259        0x03f4, ((0x00 << 8) | 0x00), 0xffc4  ,
00260        0x03f7, ((0x00 << 8) | 0x00), 0x0001  ,
00261        0x03f9, ((0x00 << 8) | 0x00), 0xfff9  ,
00262        0x03fa, ((0x00 << 8) | 0x00), 0x0001  ,
00263        0x03fd, ((0x02 << 8) | 0x01), 0xff7e  ,
00264        0x0400, ((0x0f << 8) | 0x01), 0x0050  ,
00265        0x0410, ((0x1f << 8) | 0x01), 0x0020  ,
00266        0x0460, ((0x20 << 8) | 0x02), 0x0001  ,
00267        0x048a, ((0x34 << 8) | 0x02), 0x0001  ,
00268        0x04c0, ((0x00 << 8) | 0x00), 0x000f  ,
00269        0x04c1, ((0x0c << 8) | 0x02), 0x0001  ,
00270        0x04d0, ((0x42 << 8) | 0x02), 0x0001  ,
00271        0x0531, ((0x25 << 8) | 0x01), 0x0030  ,
00272        0x10a0, ((0x25 << 8) | 0x01), 0x1c60  ,
00273        0x1e00, ((0x94 << 8) | 0x02), 0x0001  ,
00274        0x1ea0, ((0x58 << 8) | 0x02), 0x0001  ,
00275        0x1f08, ((0x07 << 8) | 0x01), 0xfff8  ,
00276        0x1f18, ((0x05 << 8) | 0x01), 0xfff8  ,
00277        0x1f28, ((0x07 << 8) | 0x01), 0xfff8  ,
00278        0x1f38, ((0x07 << 8) | 0x01), 0xfff8  ,
00279        0x1f48, ((0x05 << 8) | 0x01), 0xfff8  ,
00280        0x1f59, ((0x06 << 8) | 0x02), 0xfff8  ,
00281        0x1f68, ((0x07 << 8) | 0x01), 0xfff8  ,
00282        0x1f88, ((0x07 << 8) | 0x01), 0xfff8  ,
00283        0x1f98, ((0x07 << 8) | 0x01), 0xfff8  ,
00284        0x1fa8, ((0x07 << 8) | 0x01), 0xfff8  ,
00285        0x1fb8, ((0x01 << 8) | 0x01), 0xfff8  ,
00286        0x1fba, ((0x01 << 8) | 0x01), 0xffb6  ,
00287        0x1fbc, ((0x00 << 8) | 0x00), 0xfff7  ,
00288        0x1fc8, ((0x03 << 8) | 0x01), 0xffaa  ,
00289        0x1fcc, ((0x00 << 8) | 0x00), 0xfff7  ,
00290        0x1fd8, ((0x01 << 8) | 0x01), 0xfff8  ,
00291        0x1fda, ((0x01 << 8) | 0x01), 0xff9c  ,
00292        0x1fe8, ((0x01 << 8) | 0x01), 0xfff8  ,
00293        0x1fea, ((0x01 << 8) | 0x01), 0xff90  ,
00294        0x1fec, ((0x00 << 8) | 0x00), 0xfff9  ,
00295        0x1ff8, ((0x01 << 8) | 0x01), 0xff80  ,
00296        0x1ffa, ((0x01 << 8) | 0x01), 0xff82  ,
00297        0x1ffc, ((0x00 << 8) | 0x00), 0xfff7  ,
00298        0x2126, ((0x00 << 8) | 0x00), 0xe2a3  ,
00299        0x212a, ((0x00 << 8) | 0x00), 0xdf41  ,
00300        0x212b, ((0x00 << 8) | 0x00), 0xdfba  ,
00301        0x2132, ((0x00 << 8) | 0x00), 0x001c  ,
00302        0x2160, ((0x0f << 8) | 0x01), 0x0010  ,
00303        0x2183, ((0x00 << 8) | 0x00), 0x0001  ,
00304        0x24b6, ((0x19 << 8) | 0x01), 0x001a  ,
00305        0x2c00, ((0x2e << 8) | 0x01), 0x0030  ,
00306        0x2c60, ((0x00 << 8) | 0x00), 0x0001  ,
00307        0x2c62, ((0x00 << 8) | 0x00), 0xd609  ,
00308        0x2c63, ((0x00 << 8) | 0x00), 0xf11a  ,
00309        0x2c64, ((0x00 << 8) | 0x00), 0xd619  ,
00310        0x2c67, ((0x04 << 8) | 0x02), 0x0001  ,
00311        0x2c75, ((0x0b << 8) | 0x0b), 0x0001  ,
00312        0x2c82, ((0x60 << 8) | 0x02), 0x0001  ,
00313        0xff21, ((0x19 << 8) | 0x01), 0x0020   
00314 };
00315 
00316 static const PRUint32 gToLowerItems = 124;
00317 
00318 static const PRUint32 gCaseBlocks [8] = {
00319 0xE001003F,
00320 0x00003012,
00321 0x00000000,
00322 0x00000000,
00323 0x00000000,
00324 0x00000000,
00325 0x00000000,
00326 0x80000000
00327 };