Lines Matching refs:this_cp
17 int this_cp; member
68 data->this_cp <<= 6; in decode_utf8()
69 data->this_cp |= c & 0x3f; in decode_utf8()
74 printf(" UTF-8 raw char U+%04x bytelen=%d ", data->this_cp, data->bytes_total); in decode_utf8()
79 if(data->this_cp < 0x0080) data->this_cp = UNICODE_INVALID; in decode_utf8()
82 if(data->this_cp < 0x0800) data->this_cp = UNICODE_INVALID; in decode_utf8()
85 if(data->this_cp < 0x10000) data->this_cp = UNICODE_INVALID; in decode_utf8()
88 if(data->this_cp < 0x200000) data->this_cp = UNICODE_INVALID; in decode_utf8()
91 if(data->this_cp < 0x4000000) data->this_cp = UNICODE_INVALID; in decode_utf8()
95 if((data->this_cp >= 0xD800 && data->this_cp <= 0xDFFF) || in decode_utf8()
96 data->this_cp == 0xFFFE || in decode_utf8()
97 data->this_cp == 0xFFFF) in decode_utf8()
98 data->this_cp = UNICODE_INVALID; in decode_utf8()
100 printf(" char: U+%04x\n", data->this_cp); in decode_utf8()
102 cp[(*cpi)++] = data->this_cp; in decode_utf8()
110 data->this_cp = c & 0x1f; in decode_utf8()
119 data->this_cp = c & 0x0f; in decode_utf8()
128 data->this_cp = c & 0x07; in decode_utf8()
137 data->this_cp = c & 0x03; in decode_utf8()
146 data->this_cp = c & 0x01; in decode_utf8()