1 /* 2 * Copyright (c) 1988 Regents of the University of California. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that the above copyright notice and this paragraph are 7 * duplicated in all such forms and that any documentation, 8 * advertising materials, and other materials related to such 9 * distribution and use acknowledge that the software was developed 10 * by the University of California, Berkeley. The name of the 11 * University may not be used to endorse or promote products derived 12 * from this software without specific prior written permission. 13 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 15 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 16 */ 17 18 #ifndef lint 19 static char sccsid[] = "@(#)dctype.c 3.3 (Berkeley) 06/29/88"; 20 #endif /* not lint */ 21 22 #include "dctype.h" 23 24 unsigned char dctype[192] = { 25 /*00*/ 26 D_SPACE, 27 0, 28 0, 29 0, 30 0, 31 0, 32 0, 33 0, 34 D_PUNCT|D_PRINT, 35 D_PUNCT|D_PRINT, 36 D_PUNCT|D_PRINT, 37 D_PUNCT|D_PRINT, 38 D_PUNCT|D_PRINT, 39 D_PUNCT|D_PRINT, 40 D_PUNCT|D_PRINT, 41 D_PUNCT|D_PRINT, 42 /*10*/ 43 D_SPACE, 44 D_PUNCT|D_PRINT, 45 D_PUNCT|D_PRINT, 46 D_PUNCT|D_PRINT, 47 D_PUNCT|D_PRINT, 48 D_PUNCT|D_PRINT, 49 D_PUNCT|D_PRINT, 50 D_PUNCT|D_PRINT, 51 D_PUNCT|D_PRINT, 52 D_PUNCT|D_PRINT, 53 D_PUNCT|D_PRINT, 54 D_PUNCT|D_PRINT, 55 0, 56 0, 57 0, 58 0, 59 /*20*/ 60 D_DIGIT|D_PRINT, 61 D_DIGIT|D_PRINT, 62 D_DIGIT|D_PRINT, 63 D_DIGIT|D_PRINT, 64 D_DIGIT|D_PRINT, 65 D_DIGIT|D_PRINT, 66 D_DIGIT|D_PRINT, 67 D_DIGIT|D_PRINT, 68 D_DIGIT|D_PRINT, 69 D_DIGIT|D_PRINT, 70 0, 71 0, 72 D_PUNCT|D_PRINT, 73 D_PUNCT|D_PRINT, 74 D_PUNCT|D_PRINT, 75 D_PUNCT|D_PRINT, 76 /*30*/ 77 D_PUNCT|D_PRINT, 78 D_PUNCT|D_PRINT, 79 D_PUNCT|D_PRINT, 80 D_PUNCT|D_PRINT, 81 D_PUNCT|D_PRINT, 82 D_PUNCT|D_PRINT, 83 D_PUNCT|D_PRINT, 84 0, 85 0, 86 0, 87 0, 88 D_PUNCT|D_PRINT, 89 0, 90 D_PUNCT|D_PRINT, 91 0, 92 0, 93 /*40*/ 94 0, 95 0, 96 0, 97 0, 98 0, 99 0, 100 0, 101 0, 102 0, 103 0, 104 0, 105 0, 106 0, 107 0, 108 0, 109 0, 110 /*50*/ 111 0, 112 0, 113 0, 114 0, 115 0, 116 0, 117 0, 118 0, 119 0, 120 0, 121 0, 122 0, 123 0, 124 0, 125 0, 126 0, 127 /*60*/ 128 0, 129 0, 130 0, 131 0, 132 0, 133 0, 134 0, 135 0, 136 0, 137 0, 138 0, 139 0, 140 0, 141 0, 142 0, 143 0, 144 /*70*/ 145 0, 146 0, 147 0, 148 0, 149 0, 150 0, 151 0, 152 0, 153 0, 154 0, 155 0, 156 0, 157 0, 158 0, 159 0, 160 0, 161 /*80*/ 162 D_LOWER|D_PRINT, 163 D_LOWER|D_PRINT, 164 D_LOWER|D_PRINT, 165 D_LOWER|D_PRINT, 166 D_LOWER|D_PRINT, 167 D_LOWER|D_PRINT, 168 D_LOWER|D_PRINT, 169 D_LOWER|D_PRINT, 170 D_LOWER|D_PRINT, 171 D_LOWER|D_PRINT, 172 D_LOWER|D_PRINT, 173 D_LOWER|D_PRINT, 174 D_LOWER|D_PRINT, 175 D_LOWER|D_PRINT, 176 D_LOWER|D_PRINT, 177 D_LOWER|D_PRINT, 178 /*90*/ 179 D_LOWER|D_PRINT, 180 D_LOWER|D_PRINT, 181 D_LOWER|D_PRINT, 182 D_LOWER|D_PRINT, 183 D_LOWER|D_PRINT, 184 D_LOWER|D_PRINT, 185 D_LOWER|D_PRINT, 186 D_LOWER|D_PRINT, 187 D_LOWER|D_PRINT, 188 D_LOWER|D_PRINT, 189 0, 190 0, 191 0, 192 0, 193 0, 194 0, 195 /*A0*/ 196 D_UPPER|D_PRINT, 197 D_UPPER|D_PRINT, 198 D_UPPER|D_PRINT, 199 D_UPPER|D_PRINT, 200 D_UPPER|D_PRINT, 201 D_UPPER|D_PRINT, 202 D_UPPER|D_PRINT, 203 D_UPPER|D_PRINT, 204 D_UPPER|D_PRINT, 205 D_UPPER|D_PRINT, 206 D_UPPER|D_PRINT, 207 D_UPPER|D_PRINT, 208 D_UPPER|D_PRINT, 209 D_UPPER|D_PRINT, 210 D_UPPER|D_PRINT, 211 D_UPPER|D_PRINT, 212 /*B0*/ 213 D_UPPER|D_PRINT, 214 D_UPPER|D_PRINT, 215 D_UPPER|D_PRINT, 216 D_UPPER|D_PRINT, 217 D_UPPER|D_PRINT, 218 D_UPPER|D_PRINT, 219 D_UPPER|D_PRINT, 220 D_UPPER|D_PRINT, 221 D_UPPER|D_PRINT, 222 D_UPPER|D_PRINT, 223 0, 224 0, 225 0, 226 0, 227 D_PUNCT|D_PRINT, 228 D_PUNCT|D_PRINT, 229 }; 230