Lines Matching defs:c2
26 Conversion between SJIS codes (s1,s2) and JISX0208 codes (c1,c2):
27 Example. (s1,s2) = 0x8140, (c1,c2) = 0x2121.
30 0x21 <= c1 <= 0x74, 0x21 <= c2 <= 0x7E.
33 = 94*(c1-0x21)+(c2-0x21)
34 Conversion (s1,s2) -> (c1,c2):
38 c2 := (t2 < 0x5E ? t2 : t2-0x5E) + 0x21
39 Conversion (c1,c2) -> (s1,s2):
41 t2 := ((c1 - 0x21) & 1) * 0x5E + (c2 - 0x21)
103 unsigned char c1, c2;
108 c2 = buf[1];
109 if ((c1 >= 0x21 && c1 <= 0x74) && (c2 >= 0x21 && c2 <= 0x7e)) {
111 unsigned char t2 = (((c1 - 0x21) & 1) ? 0x5e : 0) + (c2 - 0x21);
121 unsigned char c1, c2;
125 c2 = (unsigned int) (wc - 0xe000) % 188;
127 r[1] = (c2 < 0x3f ? c2+0x40 : c2+0x41);