Searched refs:utf8_buf (Results 1 – 2 of 2) sorted by relevance
| /freebsd/contrib/file/src/ |
| H A D | ascmagic.c | 112 unsigned char *utf8_buf = NULL, *utf8_end; in file_ascmagic_with_encoding() local 146 if ((utf8_buf = CAST(unsigned char *, malloc(mlen))) == NULL) { in file_ascmagic_with_encoding() 150 if ((utf8_end = encode_utf8(utf8_buf, mlen, ubuf, ulen)) in file_ascmagic_with_encoding() 155 buffer_init(&bb, b->fd, &b->st, utf8_buf, in file_ascmagic_with_encoding() 156 CAST(size_t, utf8_end - utf8_buf)); in file_ascmagic_with_encoding() 327 free(utf8_buf); in file_ascmagic_with_encoding()
|
| /freebsd/contrib/less/ |
| H A D | line.c | 1535 char utf8_buf[MAX_UTF_CHAR_LEN]; in col_vs_pos() local 1580 utf8_buf[utf8_len++] = ch; in col_vs_pos() 1581 if (is_utf8_well_formed(utf8_buf, utf8_len)) in col_vs_pos() 1583 LWCHAR wch = get_wchar(utf8_buf); in col_vs_pos()
|