/external/python/cpython2/Modules/cjkcodecs/ |
D | alg_jisx0201.h | 1 #define JISX0201_R_ENCODE(c, assi) \ argument 3 (assi) = (c); \ 4 else if ((c) == 0x00a5) (assi) = 0x5c; \ 5 else if ((c) == 0x203e) (assi) = 0x7e; 6 #define JISX0201_K_ENCODE(c, assi) \ argument 8 (assi) = (c) - 0xfec0; 9 #define JISX0201_ENCODE(c, assi) \ argument 10 JISX0201_R_ENCODE(c, assi) \ 11 else JISX0201_K_ENCODE(c, assi) 13 #define JISX0201_R_DECODE(c, assi) \ argument [all …]
|
D | emu_jisx0213_2000.h | 8 #define EMULATE_JISX0213_2000_ENCODE_BMP(assi, c) \ argument 17 (assi) = 0x8000 | 0x7d3b; \ 19 #define EMULATE_JISX0213_2000_ENCODE_EMP(assi, c) \ argument 27 #define EMULATE_JISX0213_2000_DECODE_PLANE1(assi, c1, c2) \ argument 41 #define EMULATE_JISX0213_2000_DECODE_PLANE2(assi, c1, c2) \ argument 43 (assi) = 0x9B1D;
|
D | _codecs_cn.c | 26 #define GBK_DECODE(dc1, dc2, assi) \ argument 27 if ((dc1) == 0xa1 && (dc2) == 0xaa) (assi) = 0x2014; \ 28 else if ((dc1) == 0xa8 && (dc2) == 0x44) (assi) = 0x2015; \ 29 else if ((dc1) == 0xa1 && (dc2) == 0xa4) (assi) = 0x00b7; \ 30 else TRYMAP_DEC(gb2312, assi, dc1 ^ 0x80, dc2 ^ 0x80); \ 31 else TRYMAP_DEC(gbkext, assi, dc1, dc2); 33 #define GBK_ENCODE(code, assi) \ argument 34 if ((code) == 0x2014) (assi) = 0xa1aa; \ 35 else if ((code) == 0x2015) (assi) = 0xa844; \ 36 else if ((code) == 0x00b7) (assi) = 0xa1a4; \ [all …]
|
D | cjkcodecs.h | 161 #define _TRYMAP_ENC(m, assi, val) \ argument 163 (val)<= (m)->top && ((assi) = (m)->map[(val) - \ 165 #define TRYMAP_ENC_COND(charset, assi, uni) \ argument 166 _TRYMAP_ENC(&charset##_encmap[(uni) >> 8], assi, (uni) & 0xff) 167 #define TRYMAP_ENC(charset, assi, uni) \ argument 168 if TRYMAP_ENC_COND(charset, assi, uni) 170 #define _TRYMAP_DEC(m, assi, val) \ argument 172 (val)<= (m)->top && ((assi) = (m)->map[(val) - \ 174 #define TRYMAP_DEC(charset, assi, c1, c2) \ argument 175 if _TRYMAP_DEC(&charset##_decmap[c1], assi, c2) [all …]
|
D | _codecs_iso2022.c | 379 #define ISO8859_7_DECODE(c, assi) \ argument 380 if ((c) < 0xa0) (assi) = (c); \ 382 (assi) = (c); \ 385 (assi) = 0x02d0 + (c); \ 386 else if ((c) == 0xa1) (assi) = 0x2018; \ 387 else if ((c) == 0xa2) (assi) = 0x2019; \ 388 else if ((c) == 0xaf) (assi) = 0x2015;
|
/external/python/cpython3/Modules/cjkcodecs/ |
D | alg_jisx0201.h | 1 #define JISX0201_R_ENCODE(c, assi) \ argument 3 (assi) = (c); \ 6 (assi) = 0x5c; \ 9 (assi) = 0x7e; \ 12 #define JISX0201_K_ENCODE(c, assi) \ argument 14 (assi) = (c) - 0xfec0; \ 17 #define JISX0201_ENCODE(c, assi) \ argument 18 JISX0201_R_ENCODE(c, assi) \ 19 else JISX0201_K_ENCODE(c, assi) 21 #define JISX0201_R_DECODE_CHAR(c, assi) \ argument [all …]
|
D | emu_jisx0213_2000.h | 8 #define EMULATE_JISX0213_2000_ENCODE_BMP(assi, c) \ argument 18 (assi) = 0x8000 | 0x7d3b; \ 21 #define EMULATE_JISX0213_2000_ENCODE_EMP(assi, c) \ argument 30 #define EMULATE_JISX0213_2000_DECODE_PLANE1(assi, c1, c2) \ argument 50 #define EMULATE_JISX0213_2000_DECODE_PLANE2_CHAR(assi, c1, c2) \ argument 52 (assi) = 0x9B1D; \
|
D | cjkcodecs.h | 188 #define _TRYMAP_ENC(m, assi, val) \ argument 190 (val)<= (m)->top && ((assi) = (m)->map[(val) - \ 192 #define TRYMAP_ENC(charset, assi, uni) \ argument 193 _TRYMAP_ENC(&charset##_encmap[(uni) >> 8], assi, (uni) & 0xff) 195 #define _TRYMAP_DEC(m, assi, val) \ argument 199 ((assi) = (m)->map[(val) - (m)->bottom]) != UNIINV) 200 #define TRYMAP_DEC(charset, assi, c1, c2) \ argument 201 _TRYMAP_DEC(&charset##_decmap[c1], assi, c2)
|
D | _codecs_cn.c | 43 #define GBK_ENCODE(code, assi) \ argument 45 (assi) = 0xa1aa; \ 47 (assi) = 0xa844; \ 49 (assi) = 0xa1a4; \ 50 } else if ((code) != 0x30fb && TRYMAP_ENC(gbcommon, assi, code)) { \
|