Home
last modified time | relevance | path

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

/freebsd-13-stable/contrib/libfido2/src/
HDhid_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()
/freebsd-13-stable/contrib/less/
HDline.c1327 int utf8_len = 0; in col_vs_pos() local
1369 } else if (utf8_len < MAX_UTF_CHAR_LEN) in col_vs_pos()
1371 utf8_buf[utf8_len++] = ch; in col_vs_pos()
1372 if (is_utf8_well_formed(utf8_buf, utf8_len)) in col_vs_pos()
1375 utf8_len = 0; in col_vs_pos()
1385 utf8_len = 0; /* flush invalid UTF-8 */ in col_vs_pos()