Lines Matching refs:len
204 int len; in to_ascii() local
210 len = 0; in to_ascii()
214 if (code > 0xffff && len + 10 <= buf_size) { in to_ascii()
215 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24)); in to_ascii()
216 sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16)); in to_ascii()
217 sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8)); in to_ascii()
218 sprint_byte((char*)(&(buf[len+8])), (unsigned int)code); in to_ascii()
219 len += 10; in to_ascii()
221 else if (len + 6 <= buf_size) { in to_ascii()
222 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8)); in to_ascii()
223 sprint_byte((char*)(&(buf[len+4])), (unsigned int)code); in to_ascii()
224 len += 6; in to_ascii()
231 buf[len++] = (UChar )code; in to_ascii()
235 if (len >= buf_size) break; in to_ascii()
241 len = MIN((end - s), buf_size); in to_ascii()
242 xmemcpy(buf, s, (size_t )len); in to_ascii()
246 return len; in to_ascii()
265 int len, is_over; local
280 len = to_ascii(einfo->enc, einfo->par, einfo->par_end,
288 xmemcpy(p, parbuf, len);
289 p += len;
305 len = p - s;
310 len = onigenc_str_bytelen_null(ONIG_ENCODING_ASCII, q);
311 xmemcpy(s, q, len);
312 s[len] = '\0';
317 return len;
336 int n, need, len; local
354 len = enclen(enc, p);
356 while (len-- > 0) *s++ = *p++;
361 while (len-- > 0) {
371 len = enclen(enc, p);
372 while (len-- > 0) *s++ = *p++;
381 len = onigenc_str_bytelen_null(ONIG_ENCODING_ASCII, bs);
383 while (len-- > 0) *s++ = *bp++;