Back to index

lightning-sunbird  0.9+nobinonly
morkCh.cpp
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-  */
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 of the GNU General Public License Version 2 or later (the "GPL"),
00026  * or 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 #ifndef _MDB_
00039 #include "mdb.h"
00040 #endif
00041 
00042 #ifndef _MORK_
00043 #include "mork.h"
00044 #endif
00045 
00046 #ifndef _MORKCH_
00047 #include "morkCh.h"
00048 #endif
00049 
00050 #ifndef _MORKENV_
00051 #include "morkEnv.h"
00052 #endif
00053 
00054 //3456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789
00055 
00056 /* this byte char predicate source file derives from public domain Mithril */
00057 /* (that means much of this has a copyright dedicated to the public domain) */
00058 
00059 /*============================================================================*/
00060 /* morkCh_Type */
00061 
00062 const mork_flags morkCh_Type[] = /* derives from public domain Mithril table */
00063 {
00064   0,                /* 0x0 */
00065   0,                /* 0x1 */
00066   0,                /* 0x2 */
00067   0,                /* 0x3 */
00068   0,                /* 0x4 */
00069   0,                /* 0x5 */
00070   0,                /* 0x6 */
00071   0,                /* 0x7 */
00072   morkCh_kW,        /* 0x8 backspace */
00073   morkCh_kW,        /* 0x9 tab */
00074   morkCh_kW,        /* 0xA linefeed */
00075   0,                /* 0xB */
00076   morkCh_kW,        /* 0xC page */
00077   morkCh_kW,        /* 0xD return */
00078   0,                /* 0xE */
00079   0,                /* 0xF */
00080   0,                /* 0x10 */
00081   0,                /* 0x11 */
00082   0,                /* 0x12 */
00083   0,                /* 0x13 */
00084   0,                /* 0x14 */
00085   0,                /* 0x15 */
00086   0,                /* 0x16 */
00087   0,                /* 0x17 */
00088   0,                /* 0x18 */
00089   0,                /* 0x19 */
00090   0,                /* 0x1A */
00091   0,                /* 0x1B */
00092   0,                /* 0x1C */
00093   0,                /* 0x1D */
00094   0,                /* 0x1E */
00095   0,                /* 0x1F */
00096   
00097   morkCh_kV|morkCh_kW,     /* 0x20 space */
00098   morkCh_kV|morkCh_kM,     /* 0x21 ! */
00099   morkCh_kV,               /* 0x22 " */
00100   morkCh_kV,               /* 0x23 # */
00101   0,                       /* 0x24 $ cannot be kV because needs escape */
00102   morkCh_kV,               /* 0x25 % */
00103   morkCh_kV,               /* 0x26 & */
00104   morkCh_kV,               /* 0x27 ' */
00105   morkCh_kV,               /* 0x28 ( */
00106   0,                       /* 0x29 ) cannot be kV because needs escape */
00107   morkCh_kV,               /* 0x2A * */
00108   morkCh_kV|morkCh_kM,     /* 0x2B + */
00109   morkCh_kV,               /* 0x2C , */
00110   morkCh_kV|morkCh_kM,     /* 0x2D - */
00111   morkCh_kV,               /* 0x2E . */
00112   morkCh_kV,               /* 0x2F / */
00113   
00114   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x30 0 */
00115   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x31 1 */
00116   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x32 2 */
00117   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x33 3 */
00118   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x34 4 */
00119   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x35 5 */
00120   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x36 6 */
00121   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x37 7 */
00122   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x38 8 */
00123   morkCh_kV|morkCh_kD|morkCh_kX,  /* 0x39 9 */
00124   morkCh_kV|morkCh_kN|morkCh_kM,        /* 0x3A : */
00125   morkCh_kV,                /* 0x3B ; */
00126   morkCh_kV,                /* 0x3C < */
00127   morkCh_kV,                /* 0x3D = */
00128   morkCh_kV,                /* 0x3E > */
00129   morkCh_kV|morkCh_kM,      /* 0x3F ? */
00130   
00131   morkCh_kV,                /* 0x40 @  */  
00132   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU|morkCh_kX,  /* 0x41 A */
00133   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU|morkCh_kX,  /* 0x42 B */
00134   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU|morkCh_kX,  /* 0x43 C */
00135   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU|morkCh_kX,  /* 0x44 D */
00136   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU|morkCh_kX,  /* 0x45 E */
00137   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU|morkCh_kX,  /* 0x46 F */
00138   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x47 G */
00139   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x48 H */
00140   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x49 I */
00141   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x4A J */
00142   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x4B K */
00143   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x4C L */
00144   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x4D M */
00145   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x4E N */
00146   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x4F O */
00147   
00148   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x50 P */
00149   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x51 Q */
00150   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x52 R */
00151   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x53 S */
00152   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x54 T */
00153   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x55 U */
00154   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x56 V */
00155   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x57 W */
00156   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x58 X */
00157   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x59 Y */
00158   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kU,          /* 0x5A Z */
00159   morkCh_kV,                /* 0x5B [ */
00160   0,                /* 0x5C \ cannot be kV because needs escape */
00161   morkCh_kV,                /* 0x5D ] */
00162   morkCh_kV,          /* 0x5E ^ */
00163   morkCh_kV|morkCh_kN|morkCh_kM,          /* 0x5F _ */
00164   
00165   morkCh_kV,                /* 0x60 ` */
00166   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL|morkCh_kX,  /* 0x61 a */
00167   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL|morkCh_kX,  /* 0x62 b */
00168   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL|morkCh_kX,  /* 0x63 c */
00169   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL|morkCh_kX,  /* 0x64 d */
00170   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL|morkCh_kX,  /* 0x65 e */
00171   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL|morkCh_kX,  /* 0x66 f */
00172   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x67 g */
00173   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x68 h */
00174   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x69 i */
00175   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x6A j */
00176   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x6B k */
00177   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x6C l */
00178   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x6D m */
00179   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x6E n */
00180   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x6F o */
00181   
00182   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x70 p */
00183   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x71 q */
00184   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x72 r */
00185   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x73 s */
00186   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x74 t */
00187   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x75 u */
00188   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x76 v */
00189   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x77 w */
00190   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x78 x */
00191   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x79 y */
00192   morkCh_kV|morkCh_kN|morkCh_kM|morkCh_kL,          /* 0x7A z */
00193   morkCh_kV,                /* 0x7B { */
00194   morkCh_kV,                /* 0x7C | */
00195   morkCh_kV,                /* 0x7D } */
00196   morkCh_kV,          /* 0x7E ~ */
00197   morkCh_kW,          /* 0x7F rubout */
00198 
00199 /* $"80 81 82 83 84 85 86 87 88 89 8A 8B 8C 8D 8E 8F"   */
00200   0,    0,    0,    0,    0,    0,    0,    0,  
00201   0,    0,    0,    0,    0,    0,    0,    0,  
00202 
00203 /* $"90 91 92 93 94 95 96 97 98 99 9A 9B 9C 9D 9E 9F"   */
00204   0,    0,    0,    0,    0,    0,    0,    0,  
00205   0,    0,    0,    0,    0,    0,    0,    0,  
00206 
00207 /* $"A0 A1 A2 A3 A4 A5 A6 A7 A8 A9 AA AB AC AD AE AF"   */
00208   0,    0,    0,    0,    0,    0,    0,    0,  
00209   0,    0,    0,    0,    0,    0,    0,    0,  
00210 
00211 /* $"B0 B1 B2 B3 B4 B5 B6 B7 B8 B9 BA BB BC BD BE BF"   */
00212   0,    0,    0,    0,    0,    0,    0,    0,  
00213   0,    0,    0,    0,    0,    0,    0,    0,  
00214 
00215 /* $"C0 C1 C2 C3 C4 C5 C6 C7 C8 C9 CA CB CC CD CE CF"   */
00216   0,    0,    0,    0,    0,    0,    0,    0,  
00217   0,    0,    0,    0,    0,    0,    0,    0,  
00218 
00219 /* $"D0 D1 D2 D3 D4 D5 D6 D7 D8 D9 DA DB DC DD DE DF"   */
00220   0,    0,    0,    0,    0,    0,    0,    0,  
00221   0,    0,    0,    0,    0,    0,    0,    0,  
00222 
00223 /* $"E0 E1 E2 E3 E4 E5 E6 E7 E8 E9 EA EB EC ED EE EF"   */
00224   0,    0,    0,    0,    0,    0,    0,    0,  
00225   0,    0,    0,    0,    0,    0,    0,    0,  
00226 
00227 /* $"F0 F1 F2 F3 F4 F5 F6 F7 F8 F9 FA FB FC FD FE FF"   */
00228   0,    0,    0,    0,    0,    0,    0,    0,  
00229   0,    0,    0,    0,    0,    0,    0,    0,  
00230 };
00231 
00232 
00233 //3456789_123456789_123456789_123456789_123456789_123456789_123456789_123456789