20static const char char16table[128] = {
21 -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
22 -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
23 -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
24 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,-1,-1, -1,-1,-1,-1,
25 -1,10,11,12, 13,14,15,-1, -1,-1,-1,-1, -1,-1,-1,-1,
26 -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
27 -1,10,11,12, 13,14,15,-1, -1,-1,-1,-1, -1,-1,-1,-1,
28 -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1
31#define char16enc(c) (((c) & 0x80) ? -1 : char16table[(int)(c)])
37 const char *
cp,*cpnext;
47 if (ch ==
'_') ch =
' ';
54 if (
cp >= cpnext)
break;
56 if (ch1 >= 0 && ch2 >= 0) {
57 ch = (ch1 << 4 | ch2) & 0xff;
Error messages. If you translate these, I would urge you to keep the English version as well....
void decode_qp(const char *cpfrom, unsigned int n, stralloc *outdata)
const char * logmsg(const char *dir, unsigned long num, unsigned long listno, unsigned long subs, int done)