Lines Matching full:cu
35 const unsigned char *cu; in preconv_encode() local
39 cu = (const unsigned char *)ib->buf + *ii; in preconv_encode()
40 assert(*cu & 0x80); in preconv_encode()
46 while (nby < 5 && *cu & (1 << (7 - nby))) in preconv_encode()
51 accum = *cu & 0x1f; in preconv_encode()
56 accum = *cu & 0x0f; in preconv_encode()
59 accum = *cu & 0x07; in preconv_encode()
67 cu++; in preconv_encode()
70 if ((accum == 0x00 && ! (*cu & 0x20)) || /* Use 2-byte. */ in preconv_encode()
71 (accum == 0x0d && *cu & 0x20)) /* Surrogates. */ in preconv_encode()
75 if ((accum == 0x00 && ! (*cu & 0x30)) || /* Use 3-byte. */ in preconv_encode()
76 (accum == 0x04 && *cu & 0x30)) /* Beyond Unicode. */ in preconv_encode()
84 if ((*cu & 0xc0) != 0x80) /* Invalid continuation. */ in preconv_encode()
87 accum += *cu & 0x3f; in preconv_encode()
88 cu++; in preconv_encode()
96 *ii = (const char *)cu - ib->buf; in preconv_encode()