#include "NXCType.h"
#define FIXSIGNEDCHAR(i) if ((i & 0xFFFFFF80) == 0xFFFFFF80) i &= 0x000000FF
unsigned char *
NXToAscii(c)
unsigned int c;
{
static unsigned char woops[] = " ";
FIXSIGNEDCHAR(c);
if (c < 128) {
woops[0] = c;
return (unsigned char *) woops;
}
switch (c) {
case 128:
return (unsigned char *) " ";
case 129:
case 130:
case 131:
case 132:
case 133:
case 134:
return (unsigned char *) "A";
case 135:
return (unsigned char *) "C";
case 136:
case 137:
case 138:
case 139:
return (unsigned char *) "E";
case 140:
case 141:
case 142:
case 143:
return (unsigned char *) "I";
case 145:
return (unsigned char *) "N";
case 146:
case 147:
case 148:
case 149:
case 150:
case 233:
return (unsigned char *) "O";
case 151:
case 152:
case 153:
case 154:
return (unsigned char *) "U";
case 155:
return (unsigned char *) "Y";
case 230:
case 144:
return (unsigned char *) "TH";
case 156:
case 252:
return (unsigned char *) "th";
case 174:
return (unsigned char *) "fi";
case 175:
return (unsigned char *) "fl";
case 213:
case 214:
case 215:
case 216:
case 217:
case 218:
return (unsigned char *) "a";
case 219:
return (unsigned char *) "c";
case 220:
case 221:
case 222:
case 223:
return (unsigned char *) "e";
case 225:
return (unsigned char *) "AE";
case 224:
case 226:
case 228:
case 229:
return (unsigned char *) "i";
case 231:
return (unsigned char *) "n";
case 232:
return (unsigned char *) "L";
case 234:
return (unsigned char *) "OE";
case 236:
case 237:
case 238:
case 239:
case 240:
case 249:
return (unsigned char *) "o";
case 241:
return (unsigned char *) "ae";
case 242:
case 243:
case 244:
case 246:
return (unsigned char *) "u";
case 245:
return (unsigned char *) "i";
case 247:
case 253:
return (unsigned char *) "y";
case 248:
return (unsigned char *) "l";
case 250:
return (unsigned char *) "oe";
case 251:
return (unsigned char *) "ss";
case 158:
return (unsigned char *) "x";
case 159:
return (unsigned char *) "/";
case 161:
return (unsigned char *) "!";
case 169:
return (unsigned char *) "'";
case 170:
case 186:
case 185:
return (unsigned char *) "\"";
case 171:
return (unsigned char *) "<<";
case 187:
return (unsigned char *) ">>";
case 184:
return (unsigned char *) "'";
case 172:
return (unsigned char *) "<";
case 173:
return (unsigned char *) ">";
case 180:
return (unsigned char *) ".";
case 181:
return (unsigned char *) "|";
case 183:
return (unsigned char *) "*";
case 188:
return (unsigned char *) "...";
case 191:
return (unsigned char *) "?";
case 192:
return (unsigned char *) "1";
case 201:
return (unsigned char *) "2";
case 204:
return (unsigned char *) "3";
case 208:
return (unsigned char *) "--";
case 209:
return (unsigned char *) "+-";
case 210:
return (unsigned char *) "1/4";
case 211:
return (unsigned char *) "1/2";
case 212:
return (unsigned char *) "3/4";
case 227:
return (unsigned char *) "a";
case 235:
return (unsigned char *) "o";
case 157:
return (unsigned char *) "u";
case 160:
return (unsigned char *) "(C)";
case 163:
return (unsigned char *) "L";
case 164:
return (unsigned char *) "/";
case 165:
return (unsigned char *) "Y";
case 166:
return (unsigned char *) "f";
case 176:
return (unsigned char *) "(R)";
case 190:
case 177:
return (unsigned char *) "-";
case 178:
return (unsigned char *) "+";
case 179:
return (unsigned char *) "++";
case 189:
return (unsigned char *) "0/00";
case 193:
return (unsigned char *) "`";
case 194:
return (unsigned char *) "'";
case 195:
return (unsigned char *) "^";
case 196:
return (unsigned char *) "~";
case 162:
case 167:
case 168:
case 182:
case 197:
case 198:
case 199:
case 200:
case 202:
case 203:
case 205:
case 206:
case 207:
default:
return (unsigned char *) "_";
}
}