Lines Matching refs:len
54 raw2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
61 BINC_RETW(NULL, *tostr, *blen, len);
63 *tolen = len;
64 for (i = 0; i < len; ++i)
75 * len contains the number of bytes put in the buffer
78 #define CONVERT(str, left, src, len) \
87 if ((len = CONV_BUFFER_SIZE - outleft) == 0) { \
100 #define CONVERT(str, left, src, len)
105 default_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw,
113 ssize_t nlen = len;
118 size_t left = len;
126 CONVERT(str, left, src, len);
129 for (i = 0, j = 0; j < len; ) {
130 n = mbrtowc((*tostr)+i, src+j, len-j, &mbs);
133 error = -(len-j);
143 if (id != (iconv_t)-1 && j == len && left) {
144 CONVERT(str, left, src, len);
159 fe_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
162 return default_char2int(sp, str, len, cw, tolen, dst,
167 ie_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
170 return default_char2int(sp, str, len, cw, tolen, dst,
175 cs_char2int(SCR *sp, const char * str, ssize_t len, CONVWIN *cw, size_t *tolen,
178 return default_char2int(sp, str, len, cw, tolen, dst, (iconv_t)-1);
182 int2raw(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw, size_t *tolen,
189 BINC_RETC(NULL, *tostr, *blen, len);
191 *tolen = len;
192 for (i = 0; i < len; ++i)
201 default_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw,
209 ssize_t nlen = len + MB_CUR_MAX;
217 /* convert first len bytes of buffer and append it to cw->bp
218 * len is adjusted => 0
258 for (i = 0, j = 0; i < len; ++i) {
296 fe_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw,
299 return default_int2char(sp, str, len, cw, tolen, dst,
304 cs_int2char(SCR *sp, const CHAR_T * str, ssize_t len, CONVWIN *cw,
307 return default_int2char(sp, str, len, cw, tolen, dst, (iconv_t)-1);