Lines Matching refs:conv
54 iso2022_cn_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
56 state_t state = conv->istate;
98 int ret = cns11643_2_mbtowc(conv,pwc,s+2,2);
103 conv->istate = state;
133 int ret = ascii_mbtowc(conv,pwc,s,1);
141 conv->istate = state;
154 ret = gb2312_mbtowc(conv,pwc,s,2); break;
156 ret = cns11643_1_mbtowc(conv,pwc,s,2); break;
163 conv->istate = state;
172 conv->istate = state;
177 iso2022_cn_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
179 state_t state = conv->ostate;
188 ret = ascii_wctomb(conv,buf,wc,1);
205 conv->ostate = state;
211 ret = gb2312_wctomb(conv,buf,wc,2);
234 conv->ostate = state;
239 ret = cns11643_wctomb(conv,buf,wc,3);
264 conv->ostate = state;
286 conv->ostate = state;
295 iso2022_cn_reset (conv_t conv, unsigned char *r, int n)
297 state_t state = conv->ostate;
305 /* conv->ostate = 0; will be done by the caller */