Lines Matching refs:conv
52 big5hkscs2001_mbtowc (conv_t conv, ucs4_t *pwc, const unsigned char *s, int n)
54 ucs4_t last_wc = conv->istate;
57 conv->istate = 0;
64 return ascii_mbtowc(conv,pwc,s,n);
73 int ret = big5_mbtowc(conv,pwc,s,2);
81 int ret = hkscs1999_mbtowc(conv,pwc,s,n);
86 int ret = hkscs2001_mbtowc(conv,pwc,s,n);
102 conv->istate = wc2;
114 big5hkscs2001_wctomb (conv_t conv, unsigned char *r, ucs4_t wc, int n)
117 unsigned char last = conv->ostate;
126 conv->ostate = 0;
146 conv->ostate = 0;
155 ret = big5_wctomb(conv,buf,wc,2);
162 conv->ostate = 0;
168 ret = hkscs1999_wctomb(conv,buf,wc,2);
175 conv->ostate = buf[1]; /* = 0x66 or = 0xa7 */
181 conv->ostate = 0;
186 ret = hkscs2001_wctomb(conv,buf,wc,2);
192 conv->ostate = 0;
202 big5hkscs2001_reset (conv_t conv, unsigned char *r, int n)
204 unsigned char last = conv->ostate;
211 /* conv->ostate = 0; will be done by the caller */