Lines Matching refs:c1
68 Conversion between SJIS codes (s1,s2) and JISX0208 codes (c1,c2):
69 Example. (s1,s2) = 0x8140, (c1,c2) = 0x2121.
72 0x21 <= c1 <= 0x74, 0x21 <= c2 <= 0x7E.
75 = 94*(c1-0x21)+(c2-0x21)
76 Conversion (s1,s2) -> (c1,c2):
79 c1 := 2*t1 + (t2 < 0x5E ? 0 : 1) + 0x21
81 Conversion (c1,c2) -> (s1,s2):
82 t1 := (c1 - 0x21) >> 1
83 t2 := ((c1 - 0x21) & 1) * 0x5E + (c2 - 0x21)
163 unsigned char c1, c2;
167 c1 = buf[0];
169 if ((c1 >= 0x21 && c1 <= 0x74) && (c2 >= 0x21 && c2 <= 0x7e)) {
170 unsigned char t1 = (c1 - 0x21) >> 1;
171 unsigned char t2 = (((c1 - 0x21) & 1) ? 0x5e : 0) + (c2 - 0x21);
192 unsigned char c1, c2;
195 c1 = (unsigned int) (wc - 0xe000) / 188;
197 r[0] = c1+0xf0;