Lines Matching refs:ulen

76     file_unichar_t **ubuf, size_t *ulen, const char **code,  in file_encoding()  argument
88 if (ulen == NULL) in file_encoding()
89 ulen = &udeflen; in file_encoding()
92 *ulen = 0; in file_encoding()
105 if (looks_ascii(buf, nbytes, *ubuf, ulen)) { in file_encoding()
106 if (looks_utf7(buf, nbytes, *ubuf, ulen) > 0) { in file_encoding()
107 DPRINTF(("utf-7 %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
111 DPRINTF(("ascii %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
115 } else if (looks_utf8_with_BOM(buf, nbytes, *ubuf, ulen) > 0) { in file_encoding()
116 DPRINTF(("utf8/bom %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
119 } else if (file_looks_utf8(buf, nbytes, *ubuf, ulen) > 1) { in file_encoding()
120 DPRINTF(("utf8 %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
123 } else if ((ucs_type = looks_ucs32(buf, nbytes, *ubuf, ulen)) != 0) { in file_encoding()
131 DPRINTF(("ucs32 %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
132 } else if ((ucs_type = looks_ucs16(buf, nbytes, *ubuf, ulen)) != 0) { in file_encoding()
140 DPRINTF(("ucs16 %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
141 } else if (looks_latin1(buf, nbytes, *ubuf, ulen)) { in file_encoding()
142 DPRINTF(("latin1 %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
145 } else if (looks_extended(buf, nbytes, *ubuf, ulen)) { in file_encoding()
146 DPRINTF(("extended %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
159 if (looks_ascii(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
160 DPRINTF(("ebcdic %" SIZE_T_FORMAT "u\n", *ulen)); in file_encoding()
163 } else if (looks_latin1(nbuf, nbytes, *ubuf, ulen)) { in file_encoding()
165 *ulen)); in file_encoding()
265 size_t *ulen) \
269 *ulen = 0; \
277 ubuf[(*ulen)++] = buf[i]; \
351 size_t *ulen) in file_looks_utf8() argument
359 *ulen = 0; in file_looks_utf8()
372 ubuf[(*ulen)++] = buf[i]; in file_looks_utf8()
417 ubuf[(*ulen)++] = c; in file_looks_utf8()
432 file_unichar_t *ubuf, size_t *ulen) in looks_utf8_with_BOM() argument
435 return file_looks_utf8(buf + 3, nbytes - 3, ubuf, ulen); in looks_utf8_with_BOM()
442 size_t *ulen) in looks_utf7() argument
451 *ulen = 0; in looks_utf7()
466 size_t *ulen) in looks_ucs16() argument
482 *ulen = 0; in looks_ucs16()
514 ubf[(*ulen)++] = uc; in looks_ucs16()
526 size_t *ulen) in looks_ucs32() argument
541 *ulen = 0; in looks_ucs32()
547 ubf[(*ulen)++] = CAST(file_unichar_t, bf[i + 3]) in looks_ucs32()
552 ubf[(*ulen)++] = CAST(file_unichar_t, bf[i + 0]) in looks_ucs32()
557 if (ubf[*ulen - 1] == 0xfffe) in looks_ucs32()
559 if (ubf[*ulen - 1] < 128 && in looks_ucs32()
560 text_chars[CAST(size_t, ubf[*ulen - 1])] != T) in looks_ucs32()