Lines Matching refs:CAST
83 bb.flen = trim_nuls(CAST(const unsigned char *, b->fbuf), b->flen); in file_ascmagic()
110 const unsigned char *buf = CAST(const unsigned char *, b->fbuf); in file_ascmagic_with_encoding()
130 size_t last_line_end = CAST(size_t, -1); in file_ascmagic_with_encoding()
146 if ((utf8_buf = CAST(unsigned char *, emalloc(mlen))) == NULL) { in file_ascmagic_with_encoding()
156 CAST(size_t, utf8_end - utf8_buf)); in file_ascmagic_with_encoding()
355 *buf++ = CAST(unsigned char, ubuf[i]); in encode_utf8()
361 *buf++ = CAST(unsigned char, (ubuf[i] >> 6) + 0xc0); in encode_utf8()
367 *buf++ = CAST(unsigned char, (ubuf[i] >> 12) + 0xe0); in encode_utf8()
373 *buf++ = CAST(unsigned char, (ubuf[i] >> 18) + 0xf0); in encode_utf8()
379 *buf++ = CAST(unsigned char, (ubuf[i] >> 24) + 0xf8); in encode_utf8()
385 *buf++ = CAST(unsigned char, (ubuf[i] >> 30) + 0xfc); in encode_utf8()
390 out5: *buf++ = CAST(unsigned char, ((ubuf[i] >> 24) & 0x3f) + 0x80); in encode_utf8()
391 out4: *buf++ = CAST(unsigned char, ((ubuf[i] >> 18) & 0x3f) + 0x80); in encode_utf8()
392 out3: *buf++ = CAST(unsigned char, ((ubuf[i] >> 12) & 0x3f) + 0x80); in encode_utf8()
393 out2: *buf++ = CAST(unsigned char, ((ubuf[i] >> 6) & 0x3f) + 0x80); in encode_utf8()
394 out1: *buf++ = CAST(unsigned char, ((ubuf[i] >> 0) & 0x3f) + 0x80); in encode_utf8()