/freebsd-current/lib/libc/string/ |
H A D | strxfrm.c | 55 wchar_t *wcs = NULL; local 77 if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL) 80 if (mbstowcs_l(wcs, src, slen + 1, locale) == (size_t)-1) 83 if ((xlen = _collate_sxfrm(table, wcs, dest, len)) == (size_t)-1) 86 free(wcs); 98 free(wcs);
|
/freebsd-current/lib/libc/locale/ |
H A D | wcsftime.c | 55 wcsftime_l(wchar_t * __restrict wcs, size_t maxsize, argument 101 n = mbsrtowcs_l(wcs, &dstp, maxsize, &mbs, locale); 117 wcsftime(wchar_t * __restrict wcs, size_t maxsize, argument 120 return wcsftime_l(wcs, maxsize, format, timeptr, __get_locale());
|
/freebsd-current/usr.bin/localedef/ |
H A D | messages.c | 54 add_message(wchar_t *wcs) argument 58 if ((str = to_mb_string(wcs)) == NULL) { 62 free(wcs);
|
H A D | numeric.c | 54 add_numeric_str(wchar_t *wcs) argument 58 if ((str = to_mb_string(wcs)) == NULL) { 62 free(wcs);
|
H A D | time.c | 54 add_time_str(wchar_t *wcs) argument 58 if ((str = to_mb_string(wcs)) == NULL) { 62 free(wcs); 111 add_time_list(wchar_t *wcs) argument 115 if ((str = to_mb_string(wcs)) == NULL) { 119 free(wcs);
|
H A D | monetary.c | 54 add_monetary_str(wchar_t *wcs) argument 58 if ((str = to_mb_string(wcs)) == NULL) { 62 free(wcs);
|
H A D | wide.c | 607 to_mb_string(const wchar_t *wcs) argument 613 mbs = malloc((wcslen(wcs) * mb_cur_max) + 1); 619 while (*wcs) { 620 if ((len = to_mb(ptr, *wcs)) < 0) { 625 wcs++;
|
H A D | collate.c | 789 define_collelem(char *name, wchar_t *wcs) argument 794 if (wcslen(wcs) >= COLLATE_STR_LEN) { 803 e->expand = wcs;
|
/freebsd-current/contrib/netbsd-tests/lib/libc/locale/ |
H A D | t_wctomb.c | 102 wchar_t wcs[16 + 2]; local 132 wcs[t->wclen] = L'X'; /* poison */ 134 sz = mbsrtowcs(wcs, &pcs, t->wclen + 2, NULL); 137 ATF_REQUIRE_EQ(wcs[t->wclen], 0); 141 ret = wctomb(cs, wcs[i]); 143 ret = wcrtomb(cs, wcs[i], stp);
|
H A D | t_wcstod.c | 79 const wchar_t *wcs; member in struct:test 404 for (t = &tests[0]; t->wcs != NULL; ++t) { 411 n = wcstombs(NULL, t->wcs, 0); 413 (void)wcstombs(buf, t->wcs, n + 1); 418 d = wcstod(t->wcs, &tail); 424 n = (size_t)(tail - t->wcs);
|
/freebsd-current/contrib/libarchive/libarchive/ |
H A D | archive_write_open_filename.c | 139 const wchar_t *wcs; local 148 mbs = NULL; wcs = NULL; 150 if (archive_mstring_get_wcs(a, &mine->filename, &wcs) != 0) { 160 fullpath = __la_win_permissive_name_w(wcs); 165 mine->fd = _wopen(wcs, flags, 0666); 171 archive_mstring_get_wcs(a, &mine->filename, &wcs); 173 "Can't convert '%S' to MBS", wcs); 184 archive_set_error(a, errno, "Failed to open '%S'", wcs); 192 archive_set_error(a, errno, "Couldn't stat '%S'", wcs);
|
H A D | archive_string.h | 232 int archive_mstring_copy_wcs(struct archive_mstring *, const wchar_t *wcs); 234 const wchar_t *wcs, size_t);
|
H A D | archive_string.c | 601 wchar_t *wcs; local 613 wcs = dest->s + dest->length; 627 dest->length = wcs - dest->s; 633 wcs = dest->s + dest->length; 637 r = mbrtowc(wcs, mbs, mbs_length, &shift_state); 639 r = mbtowc(wcs, mbs, mbs_length); 647 wcs++; 652 dest->length = wcs - dest->s; 4065 archive_mstring_copy_wcs(struct archive_mstring *aes, const wchar_t *wcs) argument 4067 return archive_mstring_copy_wcs_len(aes, wcs, 4086 archive_mstring_copy_wcs_len(struct archive_mstring *aes, const wchar_t *wcs, size_t len) argument [all...] |
/freebsd-current/contrib/libfido2/src/ |
H A D | hid_hidapi.c | 28 fido_wcslen(const wchar_t *wcs) argument 31 while (*wcs++ != L'\0') 37 wcs_to_cs(const wchar_t *wcs) argument 42 if (wcs == NULL || (cs = calloc(fido_wcslen(wcs) + 1, 1)) == NULL) 45 for (i = 0; i < fido_wcslen(wcs); i++) { 46 if (wcs[i] >= 128) { 51 cs[i] = (char)wcs[i];
|
/freebsd-current/contrib/llvm-project/libcxx/modules/std/ |
H A D | cstdlib.inc | 46 // [c.mb.wcs], multibyte / wide string and character conversion functions
|
H A D | cwchar.inc | 72 // [c.mb.wcs], multibyte / wide string and character conversion functions
|
/freebsd-current/contrib/llvm-project/libcxx/modules/std.compat/ |
H A D | cwchar.inc | 72 // [c.mb.wcs], multibyte / wide string and character conversion functions
|
H A D | cstdlib.inc | 46 // [c.mb.wcs], multibyte / wide string and character conversion functions
|
/freebsd-current/usr.bin/column/ |
H A D | column.c | 309 width(const wchar_t *wcs) argument 313 for (w = 0; *wcs != L'\0'; wcs++) 314 if ((cw = wcwidth(*wcs)) > 0)
|
/freebsd-current/usr.bin/join/ |
H A D | join.c | 410 wchar_t *wcs; local 415 if ((wcs = malloc((n + 1) * sizeof(*wcs))) == NULL) 417 mbsrtowcs(wcs, &s, n + 1, NULL); 418 return (wcs);
|
/freebsd-current/sys/dev/iser/ |
H A D | iser_verbs.c | 163 struct ib_wc *const wcs = comp->wcs; local 168 while ((n = ib_poll_cq(cq, ARRAY_SIZE(comp->wcs), wcs)) > 0) { 170 iser_handle_wc(&wcs[i]);
|
H A D | icl_iser.h | 320 * @wcs: work completion array 329 struct ib_wc wcs[ISER_WC_BATCH_COUNT]; member in struct:iser_comp
|