Home
last modified time | relevance | path

Searched refs:utf8_len (Results 1 – 3 of 3) sorted by relevance

/src/contrib/libfido2/src/
H A Dhid_win.c128 int utf8_len; in get_manufacturer() local
138 if ((utf8_len = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, buf, in get_manufacturer()
139 -1, NULL, 0, NULL, NULL)) <= 0 || utf8_len > 128) { in get_manufacturer()
144 if ((*manufacturer = malloc((size_t)utf8_len)) == NULL) { in get_manufacturer()
150 *manufacturer, utf8_len, NULL, NULL) != utf8_len) { in get_manufacturer()
169 int utf8_len; in get_product() local
179 if ((utf8_len = WideCharToMultiByte(CP_UTF8, WC_ERR_INVALID_CHARS, buf, in get_product()
180 -1, NULL, 0, NULL, NULL)) <= 0 || utf8_len > 128) { in get_product()
185 if ((*product = malloc((size_t)utf8_len)) == NULL) { in get_product()
191 *product, utf8_len, NULL, NULL) != utf8_len) { in get_product()
/src/contrib/less/
H A Dline.c1536 int utf8_len = 0; in col_vs_pos() local
1578 } else if (utf8_len < MAX_UTF_CHAR_LEN) in col_vs_pos()
1580 utf8_buf[utf8_len++] = ch; in col_vs_pos()
1581 if (is_utf8_well_formed(utf8_buf, utf8_len)) in col_vs_pos()
1585 utf8_len = 0; in col_vs_pos()
1598 utf8_len = 0; /* flush invalid UTF-8 */ in col_vs_pos()
/src/contrib/ee/
H A Dee.c225 utf8_len(const unsigned char *s) in utf8_len() function
261 if (mbrtowc(&wc, (const char *)s, utf8_len(s), &mbs) == (size_t)-1) in utf8_width()
1028 ptr += utf8_len(ptr); in scanline()
1159 posit += utf8_len(temp); in draw_line()
1160 temp += utf8_len(temp); in draw_line()
1177 int clen = utf8_len(temp); in draw_line()
1600 int char_bytes = utf8_len(point); in right()
1645 int clen = utf8_len(point); in find_pos()
2005 int clen = utf8_len((const unsigned char *)stemp); in scan()
2919 utf8_len(srch_3), &mbs); in search_prompt()
[all …]