Lines Matching refs:c1

85 #define sjistoidx(c1, c2) \  argument
86 (((c1) > 0x9f) \
87 ? (((c1) - 0xc1) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)) \
88 : (((c1) - 0x81) * 188 + (c2) - (((c2) > 0x7e) ? 0x41 : 0x40)))
92 #define SJIS_ENCODE(c1,c2,s1,s2) \ argument
94 s1 = c1; \
97 if ((c1) < 0x5f) { \
103 if ((c1) & 1) { \
113 #define SJIS_DECODE(c1,c2,s1,s2) \ argument
115 s1 = c1; \
135 #define CODE2JIS(c1,c2,s1,s2) \ argument
136 c1 = (s1)/94+0x21; \
137 c2 = (s1)-94*((c1)-0x21)+0x21; \
138 s1 = ((c1) << 8) | (c2); \
147 int c1, s, w, snd = 0; in mbfl_filt_conv_2022jp_mobile_wchar() local
178 c1 = filter->cache; in mbfl_filt_conv_2022jp_mobile_wchar()
180 s = (c1 - 0x21)*94 + c - 0x21; in mbfl_filt_conv_2022jp_mobile_wchar()
221 w = (c1 << 8) | c; in mbfl_filt_conv_2022jp_mobile_wchar()
231 w = (c1 << 8) | c; in mbfl_filt_conv_2022jp_mobile_wchar()
324 int c1, c2, s1, s2; in mbfl_filt_conv_wchar_2022jp_mobile() local
338 c1 = s1/94 + 0x7f; in mbfl_filt_conv_wchar_2022jp_mobile()
340 s1 = (c1 << 8) | c2; in mbfl_filt_conv_wchar_2022jp_mobile()
343 c1 = c & ~MBFL_WCSPLANE_MASK; in mbfl_filt_conv_wchar_2022jp_mobile()
344 if (c1 == MBFL_WCSPLANE_WINCP932) { in mbfl_filt_conv_wchar_2022jp_mobile()
347 } else if (c1 == MBFL_WCSPLANE_JIS0208) { in mbfl_filt_conv_wchar_2022jp_mobile()
349 } else if (c1 == MBFL_WCSPLANE_JIS0212) { in mbfl_filt_conv_wchar_2022jp_mobile()
375 c1 = 0; in mbfl_filt_conv_wchar_2022jp_mobile()
377 while (c1 < c2) { /* CP932 vendor ext1 (13ku) */ in mbfl_filt_conv_wchar_2022jp_mobile()
378 if (c == cp932ext1_ucs_table[c1]) { in mbfl_filt_conv_wchar_2022jp_mobile()
379 s1 = ((c1/94 + 0x2d) << 8) + (c1%94 + 0x21); in mbfl_filt_conv_wchar_2022jp_mobile()
382 c1++; in mbfl_filt_conv_wchar_2022jp_mobile()
393 CODE2JIS(c1,c2,s1,s2); in mbfl_filt_conv_wchar_2022jp_mobile()