Searched refs:wcrtomb (Results 1 - 25 of 37) sorted by relevance

12

/freebsd-11-stable/lib/libc/tests/locale/
H A Dwcrtomb_test.c28 * Test program for wcrtomb(), as specified by IEEE Std. 1003.1-2001 and
61 * wcrtomb() resets its internal state.
63 ATF_REQUIRE(wcrtomb(NULL, L'\0', NULL) == 1);
64 ATF_REQUIRE(wcrtomb(NULL, UCHAR_MAX + 1, NULL) == 1);
69 len = wcrtomb(buf, L'\0', &s);
74 ATF_REQUIRE(wcrtomb(NULL, L'\0', NULL) == 1);
75 ATF_REQUIRE(wcrtomb(NULL, L'A', NULL) == 1);
80 len = wcrtomb(buf, L'A', &s);
85 ATF_REQUIRE(wcrtomb(buf, UCHAR_MAX + 1, NULL) == (size_t)-1);
97 * wcrtomb() reset
[all...]
/freebsd-11-stable/lib/libc/locale/
H A Dwcrtomb.c44 ps = &locale->wcrtomb;
49 wcrtomb(char * __restrict s, wchar_t wc, mbstate_t * __restrict ps) function
H A DMakefile.inc17 tolower.c toupper.c utf8.c wcrtomb.c wcsnrtombs.c \
47 wcrtomb.3 \
84 MLINKS+=wcrtomb.3 c16rtomb.3 wcrtomb.3 c32rtomb.3
H A Dxlocale_private.h128 /** Persistent state used by wcrtomb() calls. */
129 __mbstate_t wcrtomb; member in struct:_xlocale
/freebsd-11-stable/contrib/ncurses/ncurses/widechar/
H A Dlib_unget_wch.c45 * Wrapper for wcrtomb() which obtains the length needed for the given
60 result = (int) wcrtomb(target, source, state);
87 IGNORE_RC((int) wcrtomb(string, wch, &state));
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/locale/
H A Dt_wctomb.c143 ret = wcrtomb(cs, wcs[i], stp);
177 "Checks wcrtomb(3) (using state object)");
183 (void)printf("Checking wcrtomb() (with state object)\n");
189 ATF_TC(wcrtomb); variable
190 ATF_TC_HEAD(wcrtomb, tc)
193 "Checks wcrtomb(3) (using internal state)");
195 ATF_TC_BODY(wcrtomb, tc)
199 (void)printf("Checking wcrtomb() (using internal state)\n");
208 ATF_TP_ADD_TC(tp, wcrtomb);
/freebsd-11-stable/contrib/libreadline/
H A Drlmbutil.h63 # define wcrtomb(s, wc, ps) (wcrtomb) (s, wc, 0) macro
/freebsd-11-stable/contrib/libstdc++/config/locale/generic/
H A Dcodecvt_members.cc51 // since it is not possible to pass the size of the buffer to wcrtomb
54 // The conversion must be done by calling wcrtomb in a loop rather
61 // pass the size of the buffer to wcrtomb
65 const size_t __conv = wcrtomb(__to, *__from, &__tmp_state);
80 const size_t __conv = wcrtomb(__buf, *__from, &__tmp_state);
/freebsd-11-stable/lib/libc/stdio/
H A Dxprintf_str.c82 clen = wcrtomb(buf, *p++, &mbs);
177 mbseqlen = wcrtomb(buf, (wchar_t)ii, &mbs);
H A Dvfwscanf.c152 nconv = wcrtomb(mbp, wi, &mbs);
195 nconv = wcrtomb(mbp, wi, &mbs);
252 nconv = wcrtomb(mbp, wi, &mbs);
H A Dvfprintf.c244 clen = wcrtomb(buf, *p++, &mbs);
626 mbseqlen = wcrtomb(cp = buf,
H A Dvfwprintf.c264 if ((len = wcrtomb(buf, wc, &mbs)) == (size_t)-1) {
/freebsd-11-stable/contrib/libstdc++/include/c_compatibility/
H A Dwchar.h76 using std::wcrtomb;
/freebsd-11-stable/usr.bin/fold/
H A Dfold.c214 len = wcrtomb(buf, ch, NULL);
/freebsd-11-stable/contrib/libstdc++/config/locale/gnu/
H A Dcodecvt_members.cc58 // in case we fall back to wcrtomb and then continue, in a loop.
77 // wcrtomb.
79 __to_next += wcrtomb(__to_next, *__from, &__tmp_state);
98 const size_t __conv2 = wcrtomb(__buf, *__from_next, &__tmp_state);
/freebsd-11-stable/contrib/libstdc++/include/c_std/
H A Dstd_cwchar.h108 #undef wcrtomb macro
179 using ::wcrtomb;
/freebsd-11-stable/contrib/llvm-project/libcxx/include/
H A D__bsd_locale_fallbacks.h59 return wcrtomb(__s, __wc, __ps);
/freebsd-11-stable/contrib/nvi/common/
H A Dconv.c259 n = wcrtomb(dst+j, str[i], &mbs);
274 n = wcrtomb(dst+j, L'\0', &mbs);
/freebsd-11-stable/contrib/ncurses/ncurses/trace/
H A Dlib_traceatr.c352 PUTC_n = (int) wcrtomb(PUTC_buf, ch->chars[PUTC_i], &PUT_st);
H A Dvisbuf.c328 PUTC_n = (int) wcrtomb(PUTC_buf,
/freebsd-11-stable/include/
H A Dwchar.h140 size_t wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict);
/freebsd-11-stable/lib/libedit/
H A Dchartype.h59 #define ct_wcrtomb wcrtomb
/freebsd-11-stable/contrib/dialog/
H A Dui_getc.c362 have_last_getc = (int) wcrtomb(last_getc_bytes, my_wchar, &state);
/freebsd-11-stable/lib/libc/regex/
H A Dregcomp.c1109 n = wcrtomb(bracket, ch, &mbs);
1602 clen = wcrtomb(buf, OPND(s), &mbs);
1721 clen = wcrtomb(cp, OPND(s), &mbs);
/freebsd-11-stable/contrib/libgnuregex/
H A Dregex_internal.h120 # define __wcrtomb wcrtomb

Completed in 300 milliseconds

12