Home
last modified time | relevance | path

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

/netbsd-src/external/bsd/libfido2/dist/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()
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dpretty-print.cc1957 size_t utf8_len = 0; in decode_utf8_char() local
1961 utf8_len++; in decode_utf8_char()
1963 if (utf8_len > len || utf8_len < 2 || utf8_len > 6) in decode_utf8_char()
1968 ch = *p & ((1 << (7 - utf8_len)) - 1); in decode_utf8_char()
1969 for (i = 1; i < utf8_len; i++) in decode_utf8_char()
1979 if ( (ch <= 0x7F && utf8_len > 1) in decode_utf8_char()
1980 || (ch <= 0x7FF && utf8_len > 2) in decode_utf8_char()
1981 || (ch <= 0xFFFF && utf8_len > 3) in decode_utf8_char()
1982 || (ch <= 0x1FFFFF && utf8_len > 4) in decode_utf8_char()
1983 || (ch <= 0x3FFFFFF && utf8_len > 5) in decode_utf8_char()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dpretty-print.c1957 size_t utf8_len = 0; in decode_utf8_char() local
1961 utf8_len++; in decode_utf8_char()
1963 if (utf8_len > len || utf8_len < 2 || utf8_len > 6) in decode_utf8_char()
1968 ch = *p & ((1 << (7 - utf8_len)) - 1); in decode_utf8_char()
1969 for (i = 1; i < utf8_len; i++) in decode_utf8_char()
1979 if ( (ch <= 0x7F && utf8_len > 1) in decode_utf8_char()
1980 || (ch <= 0x7FF && utf8_len > 2) in decode_utf8_char()
1981 || (ch <= 0xFFFF && utf8_len > 3) in decode_utf8_char()
1982 || (ch <= 0x1FFFFF && utf8_len > 4) in decode_utf8_char()
1983 || (ch <= 0x3FFFFFF && utf8_len > 5) in decode_utf8_char()
[all …]
/netbsd-src/external/gpl3/binutils.old/dist/binutils/
H A Dstrings.c702 unsigned int utf8_len; in display_utf8_char() local
708 utf8_len = 2; in display_utf8_char()
711 utf8_len = 3; in display_utf8_char()
714 utf8_len = 4; in display_utf8_char()
728 switch (utf8_len) in display_utf8_char()
760 for (j = 0; j < utf8_len; j++) in display_utf8_char()
770 return utf8_len; in display_utf8_char()
/netbsd-src/external/gpl3/binutils/dist/binutils/
H A Dstrings.c718 unsigned int utf8_len; in display_utf8_char() local
724 utf8_len = 2; in display_utf8_char()
727 utf8_len = 3; in display_utf8_char()
730 utf8_len = 4; in display_utf8_char()
744 switch (utf8_len) in display_utf8_char()
776 for (j = 0; j < utf8_len; j++) in display_utf8_char()
786 return utf8_len; in display_utf8_char()
/netbsd-src/external/mit/libuv/dist/src/win/
H A Dutil.c97 int utf8_len, utf16_buffer_len, utf16_len; in uv_exepath() local
128 utf8_len = WideCharToMultiByte(CP_UTF8, in uv_exepath()
136 if (utf8_len == 0) { in uv_exepath()
145 *size_ptr = utf8_len - 1; in uv_exepath()
H A Dfs.c1430 size_t utf8_len; in fs__scandir() local
1458 utf8_len = WideCharToMultiByte( in fs__scandir()
1460 if (utf8_len == 0) in fs__scandir()
1481 dirent = uv__malloc(sizeof *dirent + utf8_len); in fs__scandir()
1493 utf8_len, in fs__scandir()
1499 dirent->d_name[utf8_len] = '\0'; in fs__scandir()