Home
last modified time | relevance | path

Searched refs:wcs (Results 1 – 25 of 26) sorted by relevance

12

/freebsd/lib/libc/string/
H A Dstrxfrm.c55 wchar_t *wcs = NULL; in strxfrm_l() local
77 if ((wcs = malloc((slen + 1) * sizeof (wchar_t))) == NULL) in strxfrm_l()
80 if (mbstowcs_l(wcs, src, slen + 1, locale) == (size_t)-1) in strxfrm_l()
83 if ((xlen = _collate_sxfrm(table, wcs, dest, len)) == (size_t)-1) in strxfrm_l()
86 free(wcs); in strxfrm_l()
98 free(wcs); in strxfrm_l()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_write_open_filename.c139 const wchar_t *wcs; in file_open() local
148 mbs = NULL; wcs = NULL; in file_open()
150 if (archive_mstring_get_wcs(a, &mine->filename, &wcs) != 0) { in file_open()
160 fullpath = __la_win_permissive_name_w(wcs); in file_open()
165 mine->fd = _wopen(wcs, flags, 0666); in file_open()
171 archive_mstring_get_wcs(a, &mine->filename, &wcs); in file_open()
173 "Can't convert '%S' to MBS", wcs); in file_open()
184 archive_set_error(a, errno, "Failed to open '%S'", wcs); in file_open()
192 archive_set_error(a, errno, "Couldn't stat '%S'", wcs); in file_open()
H A Darchive_string.h232 int archive_mstring_copy_wcs(struct archive_mstring *, const wchar_t *wcs);
234 const wchar_t *wcs, size_t);
H A Darchive_string.c601 wchar_t *wcs; in archive_wstring_append_from_mbs() local
613 wcs = dest->s + dest->length; in archive_wstring_append_from_mbs()
637 r = mbrtowc(wcs, mbs, mbs_length, &shift_state); in archive_wstring_append_from_mbs()
639 r = mbtowc(wcs, mbs, mbs_length); in archive_wstring_append_from_mbs()
647 wcs++; in archive_wstring_append_from_mbs()
652 dest->length = wcs - dest->s; in archive_wstring_append_from_mbs()
4115 archive_mstring_copy_wcs(struct archive_mstring *aes, const wchar_t *wcs) in archive_mstring_copy_wcs() argument
4117 return archive_mstring_copy_wcs_len(aes, wcs, in archive_mstring_copy_wcs()
4118 wcs == NULL ? 0 : wcslen(wcs)); in archive_mstring_copy_wcs()
4136 archive_mstring_copy_wcs_len(struct archive_mstring *aes, const wchar_t *wcs, in archive_mstring_copy_wcs_len() argument
[all …]
/freebsd/contrib/libfido2/src/
H A Dhid_hidapi.c28 fido_wcslen(const wchar_t *wcs) in fido_wcslen() argument
31 while (*wcs++ != L'\0') in fido_wcslen()
37 wcs_to_cs(const wchar_t *wcs) in wcs_to_cs() argument
42 if (wcs == NULL || (cs = calloc(fido_wcslen(wcs) + 1, 1)) == NULL) in wcs_to_cs()
45 for (i = 0; i < fido_wcslen(wcs); i++) { in wcs_to_cs()
46 if (wcs[i] >= 128) { in wcs_to_cs()
51 cs[i] = (char)wcs[i]; in wcs_to_cs()
/freebsd/contrib/netbsd-tests/lib/libc/locale/
H A Dt_wctomb.c102 wchar_t wcs[16 + 2]; in h_wctomb() local
132 wcs[t->wclen] = L'X'; /* poison */ in h_wctomb()
134 sz = mbsrtowcs(wcs, &pcs, t->wclen + 2, NULL); in h_wctomb()
137 ATF_REQUIRE_EQ(wcs[t->wclen], 0); in h_wctomb()
141 ret = wctomb(cs, wcs[i]); in h_wctomb()
143 ret = wcrtomb(cs, wcs[i], stp); in h_wctomb()
H A Dt_wcstod.c79 const wchar_t *wcs; member
404 for (t = &tests[0]; t->wcs != NULL; ++t) { in ATF_TC_BODY()
411 n = wcstombs(NULL, t->wcs, 0); in ATF_TC_BODY()
413 (void)wcstombs(buf, t->wcs, n + 1); in ATF_TC_BODY()
418 d = wcstod(t->wcs, &tail); in ATF_TC_BODY()
424 n = (size_t)(tail - t->wcs); in ATF_TC_BODY()
/freebsd/usr.bin/localedef/
H A Dtime.c54 add_time_str(wchar_t *wcs) in add_time_str() argument
58 if ((str = to_mb_string(wcs)) == NULL) { in add_time_str()
62 free(wcs); in add_time_str()
111 add_time_list(wchar_t *wcs) in add_time_list() argument
115 if ((str = to_mb_string(wcs)) == NULL) { in add_time_list()
119 free(wcs); in add_time_list()
H A Dnumeric.c54 add_numeric_str(wchar_t *wcs) in add_numeric_str() argument
58 if ((str = to_mb_string(wcs)) == NULL) { in add_numeric_str()
62 free(wcs); in add_numeric_str()
H A Dmessages.c54 add_message(wchar_t *wcs) in add_message() argument
58 if ((str = to_mb_string(wcs)) == NULL) { in add_message()
62 free(wcs); in add_message()
H A Dwide.c607 to_mb_string(const wchar_t *wcs) in to_mb_string() argument
613 mbs = malloc((wcslen(wcs) * mb_cur_max) + 1); in to_mb_string()
619 while (*wcs) { in to_mb_string()
620 if ((len = to_mb(ptr, *wcs)) < 0) { in to_mb_string()
625 wcs++; in to_mb_string()
H A Dmonetary.c54 add_monetary_str(wchar_t *wcs) in add_monetary_str() argument
58 if ((str = to_mb_string(wcs)) == NULL) { in add_monetary_str()
62 free(wcs); in add_monetary_str()
H A Dcollate.c789 define_collelem(char *name, wchar_t *wcs) in define_collelem() argument
794 if (wcslen(wcs) >= COLLATE_STR_LEN) { in define_collelem()
803 e->expand = wcs; in define_collelem()
/freebsd/lib/libc/locale/
H A Dwcsftime.c55 wcsftime_l(wchar_t * __restrict wcs, size_t maxsize, in wcsftime_l() argument
101 n = mbsrtowcs_l(wcs, &dstp, maxsize, &mbs, locale); in wcsftime_l()
117 wcsftime(wchar_t * __restrict wcs, size_t maxsize, in wcsftime() argument
120 return wcsftime_l(wcs, maxsize, format, timeptr, __get_locale()); in wcsftime()
/freebsd/usr.bin/column/
H A Dcolumn.c309 width(const wchar_t *wcs) in width() argument
313 for (w = 0; *wcs != L'\0'; wcs++) in width()
314 if ((cw = wcwidth(*wcs)) > 0) in width()
/freebsd/usr.bin/join/
H A Djoin.c410 wchar_t *wcs; in towcs()
415 if ((wcs = malloc((n + 1) * sizeof(*wcs))) == NULL) in towcs()
417 mbsrtowcs(wcs, &s, n + 1, NULL); in towcs()
418 return (wcs);
408 wchar_t *wcs; towcs() local
/freebsd/sys/dev/iser/
H A Diser_verbs.c163 struct ib_wc *const wcs = comp->wcs; in iser_cq_tasklet_fn() local
168 while ((n = ib_poll_cq(cq, ARRAY_SIZE(comp->wcs), wcs)) > 0) { in iser_cq_tasklet_fn()
170 iser_handle_wc(&wcs[i]); in iser_cq_tasklet_fn()
H A Dicl_iser.h329 struct ib_wc wcs[ISER_WC_BATCH_COUNT]; member
/freebsd/contrib/llvm-project/libcxx/modules/std.compat/
H A Dcstdlib.inc46 // [c.mb.wcs], multibyte / wide string and character conversion functions
H A Dcwchar.inc72 // [c.mb.wcs], multibyte / wide string and character conversion functions
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dcstdlib.cppm
H A Dcwchar.cppm
H A Dcstdlib.inc46 // [c.mb.wcs], multibyte / wide string and character conversion functions
H A Dcwchar.inc72 // [c.mb.wcs], multibyte / wide string and character conversion functions
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetLibraryInfo.def2467 /// size_t wcslen (const wchar_t* wcs);

12