HomeSort by: relevance | last modified time | path
    Searched defs:wcs (Results 1 - 8 of 8) sorted by relevancy

  /src/tests/lib/libc/locale/
t_wcstod.c 75 const wchar_t *wcs; member in struct:test
403 for (t = &tests[0]; t->wcs != NULL; ++t) {
404 printf("wcslen(\"%S\") = %zu\n", t->wcs, wcslen(t->wcs));
405 n = wcstombs(NULL, t->wcs, 0);
406 printf("wcstombs(NULL, \"%S\", 0) = %d\n", t->wcs, (int)n);
408 (void)wcstombs(buf, t->wcs, n + 1);
409 printf("wcstombs(buf, \"%S\", %d) = \"%s\"\n", t->wcs,
411 ATF_REQUIRE_EQ(strlen(buf), wcslen(t->wcs));
431 for (t = &tests[0]; t->wcs != NULL; ++t)
    [all...]
t_wctomb.c 105 wchar_t wcs[16 + 2]; local
133 wcs[t->wclen] = L'X'; /* poison */
135 sz = mbsrtowcs(wcs, &pcs, t->wclen + 2, NULL);
138 ATF_REQUIRE_EQ(wcs[t->wclen], 0);
142 ret = wctomb(cs, wcs[i]);
144 ret = wcrtomb(cs, wcs[i], stp);
  /src/external/bsd/libarchive/dist/libarchive/
archive_write_open_filename.c 118 "Can't convert '%s' to WCS",
140 const wchar_t *wcs; local
149 mbs = NULL; wcs = NULL;
151 if (archive_mstring_get_wcs(a, &mine->filename, &wcs) != 0) {
157 "Can't convert '%s' to WCS", mbs);
161 fullpath = __la_win_permissive_name_w(wcs);
166 mine->fd = _wopen(wcs, flags, 0666);
172 archive_mstring_get_wcs(a, &mine->filename, &wcs);
174 "Can't convert '%ls' to MBS", wcs);
185 archive_set_error(a, errno, "Failed to open '%ls'", wcs);
    [all...]
archive_string.c 461 * Convert MBS to WCS.
543 count >>= 1; /* to be WCS length */
544 /* Allocate memory for WCS. */
588 /* Allocate memory for WCS. */
591 /* Convert MBS to WCS. */
597 /* Expand the WCS buffer. */
615 * Convert MBS to WCS.
631 wchar_t *wcs; local
643 wcs = dest->s + dest->length;
657 dest->length = wcs - dest->s
    [all...]
archive_read_support_format_xar.c 3461 LPCWSTR wcs; local
3464 if (FAILED(callee(reader, &wcs, &wlen))) {
3471 if (archive_string_append_from_wcs(as, wcs, (size_t)wlen) < 0) {
  /src/external/bsd/openldap/dist/libraries/libldap/
utf-8-conv.c 379 wchar_t *wcs; local
395 wcs = (wchar_t *)LDAP_MALLOC(wcsize * sizeof(wchar_t));
396 if (wcs == NULL)
400 n = ldap_x_utf8s_to_wcs( wcs, utf8str, wcsize);
405 n = f_wcstombs(mbstr, wcs, count);
408 LDAP_FREE(wcs);
460 wchar_t *wcs; local
472 wcs = (wchar_t *)LDAP_MALLOC( wcsize * sizeof(wchar_t) );
473 if (wcs == NULL)
477 n = f_mbstowcs(wcs, mbstr, wcsize)
    [all...]
  /src/external/bsd/openldap/dist/contrib/slapd-modules/smbk5pwd/
smbk5pwd.c 469 wchar_t *wcs, wc; local
475 wcs = ch_malloc((l+1) * sizeof(wchar_t));
477 ldap_x_utf8s_to_wcs( wcs, qpw->rs_new.bv_val, l );
480 c = (char *)wcs;
482 wc = wcs[j];
487 pwd.bv_val = (char *)wcs;
508 ch_free(wcs);
  /src/external/gpl2/xcvs/dist/lib/
regex_internal.h 365 wint_t *wcs; member in struct:re_string_t
376 /* The length of the buffers MBS and WCS. */
442 ((idx) == (pstr)->valid_len || (pstr)->wcs[idx] != WEOF)
444 ((pstr)->wcs[idx] != WEOF && ((pstr)->valid_len == (idx) + 1 \
445 || (pstr)->wcs[(idx) + 1] != WEOF))
868 if (pstr->wcs[idx + byte_idx] != WEOF)
879 return (wint_t) pstr->wcs[idx];

Completed in 19 milliseconds