Lines Matching refs:w

106 	int c1, c2, w = -1;  in mbfl_filt_conv_cp936_wchar()  local
129 w = 94*(c1 >= 0xf8 ? c1 - 0xf2 : c1 - 0xaa) + (c - 0xa1) + 0xe000; in mbfl_filt_conv_cp936_wchar()
130 CK((*filter->output_function)(w, filter->data)); in mbfl_filt_conv_cp936_wchar()
133 w = 96*(c1 - 0xa1) + c - (c >= 0x80 ? 0x41 : 0x40) + 0xe4c6; in mbfl_filt_conv_cp936_wchar()
134 CK((*filter->output_function)(w, filter->data)); in mbfl_filt_conv_cp936_wchar()
139 if (w <= 0 && in mbfl_filt_conv_cp936_wchar()
147 w = c2 - mbfl_cp936_pua_tbl[k][2] + mbfl_cp936_pua_tbl[k][0]; in mbfl_filt_conv_cp936_wchar()
148 CK((*filter->output_function)(w, filter->data)); in mbfl_filt_conv_cp936_wchar()
154 if (w <= 0) { in mbfl_filt_conv_cp936_wchar()
156 w = (c1 - 0x81)*192 + (c - 0x40); in mbfl_filt_conv_cp936_wchar()
157 if (w >= 0 && w < cp936_ucs_table_size) { in mbfl_filt_conv_cp936_wchar()
158 w = cp936_ucs_table[w]; in mbfl_filt_conv_cp936_wchar()
160 w = 0; in mbfl_filt_conv_cp936_wchar()
162 if (w <= 0) { in mbfl_filt_conv_cp936_wchar()
163 w = (c1 << 8) | c; in mbfl_filt_conv_cp936_wchar()
164 w &= MBFL_WCSPLANE_MASK; in mbfl_filt_conv_cp936_wchar()
165 w |= MBFL_WCSPLANE_WINCP936; in mbfl_filt_conv_cp936_wchar()
167 CK((*filter->output_function)(w, filter->data)); in mbfl_filt_conv_cp936_wchar()
171 w = (c1 << 8) | c; in mbfl_filt_conv_cp936_wchar()
172 w &= MBFL_WCSGROUP_MASK; in mbfl_filt_conv_cp936_wchar()
173 w |= MBFL_WCSGROUP_THROUGH; in mbfl_filt_conv_cp936_wchar()
174 CK((*filter->output_function)(w, filter->data)); in mbfl_filt_conv_cp936_wchar()