Lines Matching refs:c2
25 unsigned char c1, c2; in ENCODER() local
62 c2 = code & 0xff; in ENCODER()
63 c2 = (((c1 - 0x21) & 1) ? 0x5e : 0) + (c2 - 0x21); in ENCODER()
66 OUTBYTE2(c2 < 0x3f ? c2 + 0x40 : c2 + 0x41); in ENCODER()
71 c2 = (Py_UCS4)(c - 0xe000) % 188; in ENCODER()
73 OUTBYTE2(c2 < 0x3f ? c2 + 0x40 : c2 + 0x41); in ENCODER()
87 unsigned char c = INBYTE1, c2; in DECODER() local
111 c2 = INBYTE2; in DECODER()
113 if (TRYMAP_DEC(cp932ext, decoded, c, c2)) in DECODER()
116 if (c2 < 0x40 || (c2 > 0x7e && c2 < 0x80) || c2 > 0xfc) in DECODER()
120 c2 = (c2 < 0x80 ? c2 - 0x40 : c2 - 0x41); in DECODER()
121 c = (2 * c + (c2 < 0x5e ? 0 : 1) + 0x21); in DECODER()
122 c2 = (c2 < 0x5e ? c2 : c2 - 0x5e) + 0x21; in DECODER()
124 if (TRYMAP_DEC(jisx0208, decoded, c, c2)) in DECODER()
130 if ((c2 >= 0x40 && c2 <= 0x7e) || in DECODER()
131 (c2 >= 0x80 && c2 <= 0xfc)) in DECODER()
133 (c2 < 0x80 ? c2 - 0x40 : c2 - 0x41)); in DECODER()
183 Py_UCS4 c2 = INCHAR2; in ENCODER() local
185 (ucs2_t)c, c2, in ENCODER()
255 unsigned char c2; in DECODER() local
258 c2 = INBYTE2; in DECODER()
259 if (c2 >= 0xa1 && c2 <= 0xdf) { in DECODER()
260 OUTCHAR(0xfec0 + c2); in DECODER()
267 unsigned char c2, c3; in DECODER() local
270 c2 = INBYTE2 ^ 0x80; in DECODER()
274 EMULATE_JISX0213_2000_DECODE_PLANE2(writer, c2, c3) in DECODER()
275 else if (TRYMAP_DEC(jisx0213_2_bmp, decoded, c2, c3)) in DECODER()
277 else if (TRYMAP_DEC(jisx0213_2_emp, code, c2, c3)) { in DECODER()
282 else if (TRYMAP_DEC(jisx0212, decoded, c2, c3)) in DECODER()
289 unsigned char c2; in DECODER() local
293 c2 = INBYTE2 ^ 0x80; in DECODER()
296 EMULATE_JISX0213_2000_DECODE_PLANE1(writer, c, c2) in DECODER()
297 else if (c == 0x21 && c2 == 0x40) in DECODER()
299 else if (c == 0x22 && c2 == 0x32) in DECODER()
301 else if (TRYMAP_DEC(jisx0208, decoded, c, c2)) in DECODER()
303 else if (TRYMAP_DEC(jisx0213_1_bmp, decoded, c, c2)) in DECODER()
305 else if (TRYMAP_DEC(jisx0213_1_emp, code, c, c2)) { in DECODER()
310 else if (TRYMAP_DEC(jisx0213_pair, code, c, c2)) { in DECODER()
396 unsigned char c2; in DECODER() local
399 c2 = INBYTE2; in DECODER()
400 if (c2 >= 0xa1 && c2 <= 0xdf) { in DECODER()
401 OUTCHAR(0xfec0 + c2); in DECODER()
408 unsigned char c2, c3; in DECODER() local
411 c2 = INBYTE2; in DECODER()
414 if (TRYMAP_DEC(jisx0212, decoded, c2 ^ 0x80, c3 ^ 0x80)) { in DECODER()
422 unsigned char c2; in DECODER() local
425 c2 = INBYTE2; in DECODER()
428 if (c == 0xa1 && c2 == 0xc0) in DECODER()
433 if (TRYMAP_DEC(jisx0208, decoded, c ^ 0x80, c2 ^ 0x80)) in DECODER()
454 unsigned char c1, c2; in ENCODER() local
497 c2 = code & 0xff; in ENCODER()
498 c2 = (((c1 - 0x21) & 1) ? 0x5e : 0) + (c2 - 0x21); in ENCODER()
501 OUTBYTE2(c2 < 0x3f ? c2 + 0x40 : c2 + 0x41); in ENCODER()
522 unsigned char c1, c2; in DECODER() local
525 c2 = INBYTE2; in DECODER()
526 if (c2 < 0x40 || (c2 > 0x7e && c2 < 0x80) || c2 > 0xfc) in DECODER()
530 c2 = (c2 < 0x80 ? c2 - 0x40 : c2 - 0x41); in DECODER()
531 c1 = (2 * c1 + (c2 < 0x5e ? 0 : 1) + 0x21); in DECODER()
532 c2 = (c2 < 0x5e ? c2 : c2 - 0x5e) + 0x21; in DECODER()
535 if (c1 == 0x21 && c2 == 0x40) { in DECODER()
542 if (TRYMAP_DEC(jisx0208, decoded, c1, c2)) { in DECODER()
569 int c1, c2; in ENCODER() local
639 c2 = (code & 0xff) - 0x21; in ENCODER()
656 c2 += 0x5e; in ENCODER()
659 OUTBYTE2(c2 + (c2 < 0x3f ? 0x40 : 0x41)); in ENCODER()
674 unsigned char c1, c2; in DECODER() local
678 c2 = INBYTE2; in DECODER()
679 if (c2 < 0x40 || (c2 > 0x7e && c2 < 0x80) || c2 > 0xfc) in DECODER()
683 c2 = (c2 < 0x80 ? c2 - 0x40 : c2 - 0x41); in DECODER()
684 c1 = (2 * c1 + (c2 < 0x5e ? 0 : 1)); in DECODER()
685 c2 = (c2 < 0x5e ? c2 : c2 - 0x5e) + 0x21; in DECODER()
690 c1, c2) in DECODER()
691 else if (TRYMAP_DEC(jisx0208, decoded, c1, c2)) in DECODER()
693 else if (TRYMAP_DEC(jisx0213_1_bmp, decoded, c1, c2)) in DECODER()
695 else if (TRYMAP_DEC(jisx0213_1_emp, code, c1, c2)) in DECODER()
697 else if (TRYMAP_DEC(jisx0213_pair, code, c1, c2)) in DECODER()
712 c1, c2) in DECODER()
713 else if (TRYMAP_DEC(jisx0213_2_bmp, decoded, c1, c2)) in DECODER()
715 else if (TRYMAP_DEC(jisx0213_2_emp, code, c1, c2)) { in DECODER()