/freebsd-11-stable/lib/libc/tests/locale/ |
H A D | wcrtomb_test.c | 28 * 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 D | wcrtomb.c | 44 ps = &locale->wcrtomb; 49 wcrtomb(char * __restrict s, wchar_t wc, mbstate_t * __restrict ps) function
|
H A D | Makefile.inc | 17 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 D | xlocale_private.h | 128 /** Persistent state used by wcrtomb() calls. */ 129 __mbstate_t wcrtomb; member in struct:_xlocale
|
/freebsd-11-stable/contrib/ncurses/ncurses/widechar/ |
H A D | lib_unget_wch.c | 45 * 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 D | t_wctomb.c | 143 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 D | rlmbutil.h | 63 # define wcrtomb(s, wc, ps) (wcrtomb) (s, wc, 0) macro
|
/freebsd-11-stable/contrib/libstdc++/config/locale/generic/ |
H A D | codecvt_members.cc | 51 // 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 D | xprintf_str.c | 82 clen = wcrtomb(buf, *p++, &mbs); 177 mbseqlen = wcrtomb(buf, (wchar_t)ii, &mbs);
|
H A D | vfwscanf.c | 152 nconv = wcrtomb(mbp, wi, &mbs); 195 nconv = wcrtomb(mbp, wi, &mbs); 252 nconv = wcrtomb(mbp, wi, &mbs);
|
H A D | vfprintf.c | 244 clen = wcrtomb(buf, *p++, &mbs); 626 mbseqlen = wcrtomb(cp = buf,
|
H A D | vfwprintf.c | 264 if ((len = wcrtomb(buf, wc, &mbs)) == (size_t)-1) {
|
/freebsd-11-stable/contrib/libstdc++/include/c_compatibility/ |
H A D | wchar.h | 76 using std::wcrtomb;
|
/freebsd-11-stable/usr.bin/fold/ |
H A D | fold.c | 214 len = wcrtomb(buf, ch, NULL);
|
/freebsd-11-stable/contrib/libstdc++/config/locale/gnu/ |
H A D | codecvt_members.cc | 58 // 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 D | std_cwchar.h | 108 #undef wcrtomb macro 179 using ::wcrtomb;
|
/freebsd-11-stable/contrib/llvm-project/libcxx/include/ |
H A D | __bsd_locale_fallbacks.h | 59 return wcrtomb(__s, __wc, __ps);
|
/freebsd-11-stable/contrib/nvi/common/ |
H A D | conv.c | 259 n = wcrtomb(dst+j, str[i], &mbs); 274 n = wcrtomb(dst+j, L'\0', &mbs);
|
/freebsd-11-stable/contrib/ncurses/ncurses/trace/ |
H A D | lib_traceatr.c | 352 PUTC_n = (int) wcrtomb(PUTC_buf, ch->chars[PUTC_i], &PUT_st);
|
H A D | visbuf.c | 328 PUTC_n = (int) wcrtomb(PUTC_buf,
|
/freebsd-11-stable/include/ |
H A D | wchar.h | 140 size_t wcrtomb(char * __restrict, wchar_t, mbstate_t * __restrict);
|
/freebsd-11-stable/lib/libedit/ |
H A D | chartype.h | 59 #define ct_wcrtomb wcrtomb
|
/freebsd-11-stable/contrib/dialog/ |
H A D | ui_getc.c | 362 have_last_getc = (int) wcrtomb(last_getc_bytes, my_wchar, &state);
|
/freebsd-11-stable/lib/libc/regex/ |
H A D | regcomp.c | 1109 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 D | regex_internal.h | 120 # define __wcrtomb wcrtomb
|