Home
last modified time | relevance | path

Searched refs:utf8_buf (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/file/src/
H A Dascmagic.c112 unsigned char *utf8_buf = NULL, *utf8_end; in file_ascmagic_with_encoding() local
149 if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) { in file_ascmagic_with_encoding()
153 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding()
158 buffer_init(&bb, b->fd, &b->st, utf8_buf, in file_ascmagic_with_encoding()
159 CAST(size_t, utf8_end - utf8_buf)); in file_ascmagic_with_encoding()
333 free(utf8_buf); in file_ascmagic_with_encoding()
/freebsd/contrib/less/
H A Dline.c1575 char utf8_buf[MAX_UTF_CHAR_LEN]; in col_vs_pos()
1620 utf8_buf[utf8_len++] = ch; in col_from_pos()
1621 if (is_utf8_well_formed(utf8_buf, utf8_len)) in col_from_pos()
1623 LWCHAR wch = get_wchar(utf8_buf); in col_from_pos()
1541 char utf8_buf[MAX_UTF_CHAR_LEN]; col_vs_pos() local