Lines Matching refs:code
24 DBCHAR code; in ENCODER() local
52 if (TRYMAP_ENC(cp932ext, code, c)) { in ENCODER()
53 OUTBYTE1(code >> 8); in ENCODER()
54 OUTBYTE2(code & 0xff); in ENCODER()
56 else if (TRYMAP_ENC(jisxcommon, code, c)) { in ENCODER()
57 if (code & 0x8000) /* MSB set: JIS X 0212 */ in ENCODER()
61 c1 = code >> 8; in ENCODER()
62 c2 = code & 0xff; in ENCODER()
155 DBCHAR code; in ENCODER() local
167 EMULATE_JISX0213_2000_ENCODE_BMP(code, c) in ENCODER()
168 else if (TRYMAP_ENC(jisx0213_bmp, code, c)) { in ENCODER()
169 if (code == MULTIC) { in ENCODER()
172 code = find_pairencmap( in ENCODER()
176 if (code == DBCINV) in ENCODER()
184 code = find_pairencmap( in ENCODER()
188 if (code == DBCINV) { in ENCODER()
189 code = find_pairencmap( in ENCODER()
193 if (code == DBCINV) in ENCODER()
200 else if (TRYMAP_ENC(jisxcommon, code, c)) in ENCODER()
210 code = 0x2140; in ENCODER()
213 code = 0x2232; in ENCODER()
218 EMULATE_JISX0213_2000_ENCODE_EMP(code, c) in ENCODER()
219 else if (TRYMAP_ENC(jisx0213_emp, code, c & 0xffff)) in ENCODER()
227 if (code & 0x8000) { in ENCODER()
229 WRITEBYTE3(0x8f, code >> 8, (code & 0xFF) | 0x80); in ENCODER()
233 WRITEBYTE2((code >> 8) | 0x80, (code & 0xFF) | 0x80); in ENCODER()
245 Py_UCS4 code, decoded; in DECODER() local
277 else if (TRYMAP_DEC(jisx0213_2_emp, code, c2, c3)) { in DECODER()
278 OUTCHAR(EMPBASE | code); in DECODER()
305 else if (TRYMAP_DEC(jisx0213_1_emp, code, c, c2)) { in DECODER()
306 OUTCHAR(EMPBASE | code); in DECODER()
310 else if (TRYMAP_DEC(jisx0213_pair, code, c, c2)) { in DECODER()
311 OUTCHAR2(code >> 16, code & 0xffff); in DECODER()
333 DBCHAR code; in ENCODER() local
344 if (TRYMAP_ENC(jisxcommon, code, c)) in ENCODER()
354 code = 0x2140; in ENCODER()
368 if (code & 0x8000) { in ENCODER()
370 WRITEBYTE3(0x8f, code >> 8, (code & 0xFF) | 0x80); in ENCODER()
374 WRITEBYTE2((code >> 8) | 0x80, (code & 0xFF) | 0x80); in ENCODER()
453 DBCHAR code; in ENCODER() local
457 JISX0201_R_ENCODE(c, code) in ENCODER()
460 code = c; in ENCODER()
462 code = 0x5c; /* YEN SIGN */ in ENCODER()
464 code = 0x7e; /* OVERLINE */ in ENCODER()
466 else JISX0201_K_ENCODE(c, code) in ENCODER()
470 code = NOCHAR; in ENCODER()
472 if (code < 0x80 || (code >= 0xa1 && code <= 0xdf)) { in ENCODER()
475 OUTBYTE1((unsigned char)code); in ENCODER()
482 if (code == NOCHAR) { in ENCODER()
483 if (TRYMAP_ENC(jisxcommon, code, c)) in ENCODER()
487 code = 0x2140; /* FULL-WIDTH REVERSE SOLIDUS */ in ENCODER()
492 if (code & 0x8000) /* MSB set: JIS X 0212 */ in ENCODER()
496 c1 = code >> 8; in ENCODER()
497 c2 = code & 0xff; in ENCODER()
568 DBCHAR code = NOCHAR; in ENCODER() local
572 JISX0201_ENCODE(c, code) in ENCODER()
574 if (code < 0x80 || (code >= 0xa1 && code <= 0xdf)) { in ENCODER()
575 WRITEBYTE1((unsigned char)code); in ENCODER()
583 if (code == NOCHAR) { in ENCODER()
585 EMULATE_JISX0213_2000_ENCODE_BMP(code, c) in ENCODER()
586 else if (TRYMAP_ENC(jisx0213_bmp, code, c)) { in ENCODER()
587 if (code == MULTIC) { in ENCODER()
590 code = find_pairencmap in ENCODER()
594 if (code == DBCINV) in ENCODER()
602 code = find_pairencmap( in ENCODER()
606 if (code == DBCINV) { in ENCODER()
607 code = find_pairencmap( in ENCODER()
611 if (code == DBCINV) in ENCODER()
619 else if (TRYMAP_ENC(jisxcommon, code, c)) { in ENCODER()
621 if (code & 0x8000) in ENCODER()
628 EMULATE_JISX0213_2000_ENCODE_EMP(code, c) in ENCODER()
629 else if (TRYMAP_ENC(jisx0213_emp, code, c&0xffff)) in ENCODER()
638 c1 = code >> 8; in ENCODER()
639 c2 = (code & 0xff) - 0x21; in ENCODER()
675 Py_UCS4 code, decoded; in DECODER() local
695 else if (TRYMAP_DEC(jisx0213_1_emp, code, c1, c2)) in DECODER()
696 OUTCHAR(EMPBASE | code); in DECODER()
697 else if (TRYMAP_DEC(jisx0213_pair, code, c1, c2)) in DECODER()
698 OUTCHAR2(code >> 16, code & 0xffff); in DECODER()
715 else if (TRYMAP_DEC(jisx0213_2_emp, code, c1, c2)) { in DECODER()
716 OUTCHAR(EMPBASE | code); in DECODER()