56 unsigned char *cur, *start;
59 static int table[256] = {
60 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
61 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
62 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,
63 52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,
64 -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,
65 15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,
66 -1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,
67 41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1,
68 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
69 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
70 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
71 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
72 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
73 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
74 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,
75 -1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1
78 d = dlast = phase = 0;
80 for (cur = str; *cur !=
'\0'; ++cur ) {
90 c = ((dlast << 2) | ((d & 0x30) >> 4));
95 c = (((dlast & 0xf) << 4) | ((d & 0x3c) >> 2));
100 c = (((dlast & 0x03 ) << 6) | d);