Lines Matching refs:c
39 unsigned char c = bytes[*pos]; in decode_utf8() local
42 printf(" pos=%zd c=%02x rem=%d\n", *pos, c, data->bytes_remaining); in decode_utf8()
45 if(c < 0x20) // C0 in decode_utf8()
48 else if(c >= 0x20 && c < 0x7f) { in decode_utf8()
55 cp[(*cpi)++] = c; in decode_utf8()
57 printf(" UTF-8 char: U+%04x\n", c); in decode_utf8()
61 else if(c == 0x7f) // DEL in decode_utf8()
64 else if(c >= 0x80 && c < 0xc0) { in decode_utf8()
71 data->this_cp |= c & 0x3f; in decode_utf8()
108 else if(c >= 0xc0 && c < 0xe0) { in decode_utf8()
112 data->this_cp = c & 0x1f; in decode_utf8()
117 else if(c >= 0xe0 && c < 0xf0) { in decode_utf8()
121 data->this_cp = c & 0x0f; in decode_utf8()
126 else if(c >= 0xf0 && c < 0xf8) { in decode_utf8()
130 data->this_cp = c & 0x07; in decode_utf8()
135 else if(c >= 0xf8 && c < 0xfc) { in decode_utf8()
139 data->this_cp = c & 0x03; in decode_utf8()
144 else if(c >= 0xfc && c < 0xfe) { in decode_utf8()
148 data->this_cp = c & 0x01; in decode_utf8()
171 unsigned char c = bytes[*pos] ^ is_gr; in decode_usascii() local
173 if(c < 0x20 || c == 0x7f || c >= 0x80) in decode_usascii()
176 cp[(*cpi)++] = c; in decode_usascii()
198 unsigned char c = bytes[*pos] ^ is_gr; in decode_table() local
200 if(c < 0x20 || c == 0x7f || c >= 0x80) in decode_table()
203 if(table->chars[c]) in decode_table()
204 cp[(*cpi)++] = table->chars[c]; in decode_table()
206 cp[(*cpi)++] = c; in decode_table()