Lines Matching full:ch
65 char ch[4]; member
115 int ch, len; in _citrus_ZW_mbrtowc_priv() local
132 ch = (unsigned char)*s0++; \ in _citrus_ZW_mbrtowc_priv()
133 if (len++ > MB_LEN_MAX || ch > 0x7F)\ in _citrus_ZW_mbrtowc_priv()
135 psenc->ch[psenc->chlen++] = ch; \ in _citrus_ZW_mbrtowc_priv()
144 switch (psenc->ch[0]) { in _citrus_ZW_mbrtowc_priv()
154 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
155 if (ch > 0x7F) in _citrus_ZW_mbrtowc_priv()
157 wc = (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
164 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
165 if (ch != 'z') { in _citrus_ZW_mbrtowc_priv()
166 if (ch != '\n' && ch != '\0') in _citrus_ZW_mbrtowc_priv()
168 wc = (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
179 if (psenc->ch[0] != 'W') { in _citrus_ZW_mbrtowc_priv()
191 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
192 if (ch == '\0') { in _citrus_ZW_mbrtowc_priv()
194 wc = (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
197 } else if (ch == '\n') { in _citrus_ZW_mbrtowc_priv()
205 if (psenc->ch[0] == ' ') { in _citrus_ZW_mbrtowc_priv()
206 ch = (unsigned char)psenc->ch[1]; in _citrus_ZW_mbrtowc_priv()
207 wc = (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
210 } else if (psenc->ch[0] == '#') { in _citrus_ZW_mbrtowc_priv()
211 ch = (unsigned char)psenc->ch[1]; in _citrus_ZW_mbrtowc_priv()
212 if (ch == '\n') { in _citrus_ZW_mbrtowc_priv()
214 wc = (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
217 } else if (ch == ' ') { in _citrus_ZW_mbrtowc_priv()
218 wc = (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
223 ch = (unsigned char)psenc->ch[0]; in _citrus_ZW_mbrtowc_priv()
224 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_mbrtowc_priv()
226 wc = (wchar_t)(ch << 8); in _citrus_ZW_mbrtowc_priv()
227 ch = (unsigned char)psenc->ch[1]; in _citrus_ZW_mbrtowc_priv()
228 if (ch < 0x21 || ch > 0x7E) { in _citrus_ZW_mbrtowc_priv()
233 wc |= (wchar_t)ch; in _citrus_ZW_mbrtowc_priv()
258 int ch; in _citrus_ZW_wcrtomb_priv() local
263 ch = (unsigned char)wc; in _citrus_ZW_wcrtomb_priv()
266 if (ch == '\0' || ch == '\n') in _citrus_ZW_wcrtomb_priv()
267 psenc->ch[psenc->chlen++] = ch; in _citrus_ZW_wcrtomb_priv()
272 psenc->ch[psenc->chlen++] = 'z'; in _citrus_ZW_wcrtomb_priv()
273 psenc->ch[psenc->chlen++] = 'W'; in _citrus_ZW_wcrtomb_priv()
274 psenc->ch[psenc->chlen++] = ' '; in _citrus_ZW_wcrtomb_priv()
275 psenc->ch[psenc->chlen++] = ch; in _citrus_ZW_wcrtomb_priv()
283 if (ch == '\0') { in _citrus_ZW_wcrtomb_priv()
284 psenc->ch[psenc->chlen++] = '\n'; in _citrus_ZW_wcrtomb_priv()
285 psenc->ch[psenc->chlen++] = '\0'; in _citrus_ZW_wcrtomb_priv()
287 } else if (ch == '\n') { in _citrus_ZW_wcrtomb_priv()
288 psenc->ch[psenc->chlen++] = '#'; in _citrus_ZW_wcrtomb_priv()
289 psenc->ch[psenc->chlen++] = '\n'; in _citrus_ZW_wcrtomb_priv()
292 psenc->ch[psenc->chlen++] = ' '; in _citrus_ZW_wcrtomb_priv()
293 psenc->ch[psenc->chlen++] = ch; in _citrus_ZW_wcrtomb_priv()
305 psenc->ch[psenc->chlen++] = 'z'; in _citrus_ZW_wcrtomb_priv()
306 psenc->ch[psenc->chlen++] = 'W'; in _citrus_ZW_wcrtomb_priv()
313 ch = (wc >> 8) & 0xFF; in _citrus_ZW_wcrtomb_priv()
314 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_wcrtomb_priv()
316 psenc->ch[psenc->chlen++] = ch; in _citrus_ZW_wcrtomb_priv()
317 ch = wc & 0xFF; in _citrus_ZW_wcrtomb_priv()
318 if (ch < 0x21 || ch > 0x7E) in _citrus_ZW_wcrtomb_priv()
320 psenc->ch[psenc->chlen++] = ch; in _citrus_ZW_wcrtomb_priv()
330 memcpy(s, psenc->ch, psenc->chlen); in _citrus_ZW_wcrtomb_priv()
350 psenc->ch[psenc->chlen++] = '\n'; in _citrus_ZW_put_state_reset()
356 memcpy(s, psenc->ch, psenc->chlen); in _citrus_ZW_put_state_reset()
391 *rstate = (psenc->ch[0] == '#') ? in _citrus_ZW_stdenc_get_state_desc_generic()