Lines Matching refs:this_cp
17 int this_cp; member
65 data->this_cp <<= 6; in decode_utf8()
66 data->this_cp |= c & 0x3f; in decode_utf8()
71 printf(" UTF-8 raw char U+%04x bytelen=%d ", data->this_cp, data->bytes_total); in decode_utf8()
76 if(data->this_cp < 0x0080) data->this_cp = UNICODE_INVALID; break; in decode_utf8()
78 if(data->this_cp < 0x0800) data->this_cp = UNICODE_INVALID; break; in decode_utf8()
80 if(data->this_cp < 0x10000) data->this_cp = UNICODE_INVALID; break; in decode_utf8()
82 if(data->this_cp < 0x200000) data->this_cp = UNICODE_INVALID; break; in decode_utf8()
84 if(data->this_cp < 0x4000000) data->this_cp = UNICODE_INVALID; break; in decode_utf8()
87 if((data->this_cp >= 0xD800 && data->this_cp <= 0xDFFF) || in decode_utf8()
88 data->this_cp == 0xFFFE || in decode_utf8()
89 data->this_cp == 0xFFFF) in decode_utf8()
90 data->this_cp = UNICODE_INVALID; in decode_utf8()
92 printf(" char: U+%04x\n", data->this_cp); in decode_utf8()
94 cp[(*cpi)++] = data->this_cp; in decode_utf8()
102 data->this_cp = c & 0x1f; in decode_utf8()
111 data->this_cp = c & 0x0f; in decode_utf8()
120 data->this_cp = c & 0x07; in decode_utf8()
129 data->this_cp = c & 0x03; in decode_utf8()
138 data->this_cp = c & 0x01; in decode_utf8()