/freebsd-12-stable/lib/libc/tests/locale/ |
H A D | mbrtowc_test.c | 28 * Test program for mbrtowc(), as specified by IEEE Std. 1003.1-2001 and 64 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 0); 69 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 0); 73 ATF_REQUIRE(mbrtowc(NULL, 0, 0, NULL) == 0); 75 ATF_REQUIRE(mbrtowc(&wc, buf, 1, NULL) == 1); 80 ATF_REQUIRE(mbrtowc(&wc, buf, 1, &s) == 1); 86 ATF_REQUIRE(mbrtowc(&wc, buf, 0, &s) == (size_t)-2); 89 /* Check that mbrtowc() doesn't access the buffer when n == 0. */ 93 ATF_REQUIRE(mbrtowc(&wc, buf, 0, &s) == (size_t)-2); 104 ATF_REQUIRE(mbrtowc(NUL [all...] |
/freebsd-12-stable/lib/libc/locale/ |
H A D | mbrtowc.c | 46 ps = &locale->mbrtowc; 51 mbrtowc(wchar_t * __restrict pwc, const char * __restrict s, function
|
H A D | Makefile.inc | 11 mbrtowc.c mbsinit.c mbsnrtowcs.c \ 41 mbrtowc.3 \ 82 MLINKS+=mbrtowc.3 mbrtoc16.3 mbrtowc.3 mbrtoc32.3
|
H A D | xlocale_private.h | 139 /** Persistent state used by mbrtowc() calls. */ 140 __mbstate_t mbrtowc; member in struct:_xlocale
|
/freebsd-12-stable/contrib/xz/src/common/ |
H A D | tuklib_mbstr_width.c | 44 const size_t ret = mbrtowc(&wc, str + i, len - i, &state);
|
/freebsd-12-stable/bin/ls/ |
H A D | util.c | 69 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) { 100 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) { 149 while (len != 0 && (clen = mbrtowc(&wc, s, len, &mbs)) != 0) { 183 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) {
|
/freebsd-12-stable/lib/libc/gen/ |
H A D | fnmatch.c | 99 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, &patmbs); 103 sclen = mbrtowc(&sc, string, MB_LEN_MAX, &strmbs); 185 pclen = mbrtowc(&pc, pattern, MB_LEN_MAX, 211 sclen = mbrtowc(&sc, bt_string, MB_LEN_MAX, 275 pclen = mbrtowc(&c, pattern, MB_LEN_MAX, patmbs); 288 pclen = mbrtowc(&c2, pattern, MB_LEN_MAX, patmbs);
|
H A D | glob-compat11.c | 189 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); 211 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); 454 clen = mbrtowc(&wc, sc, MB_LEN_MAX, &mbs); 752 clen = mbrtowc(&wc, sc, MB_LEN_MAX, &mbs);
|
H A D | glob.c | 220 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); 242 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); 485 clen = mbrtowc(&wc, sc, MB_LEN_MAX, &mbs); 783 clen = mbrtowc(&wc, sc, MB_LEN_MAX, &mbs);
|
/freebsd-12-stable/contrib/ncurses/ncurses/base/ |
H A D | lib_slkset.c | 86 need = mbrtowc(0, p, strlen(p), &state); 89 mbrtowc(&wc, p, need, &state);
|
/freebsd-12-stable/contrib/libstdc++/config/locale/generic/ |
H A D | codecvt_members.cc | 119 // Conversion must be done by calling mbrtowc in a loop rather than 124 size_t __conv = mbrtowc(__to, __from, __from_end - __from, 190 size_t __conv = mbrtowc(NULL, __from, __end - __from, &__tmp_state);
|
/freebsd-12-stable/usr.bin/tr/ |
H A D | str.c | 87 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL); 205 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL); 255 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL); 308 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
|
/freebsd-12-stable/usr.bin/look/ |
H A D | look.c | 128 if (mbrtowc(&termchar, optarg, MB_LEN_MAX, NULL) != 184 while ((clen = mbrtowc(&ch, readp, MB_LEN_MAX, NULL)) != 0) { 340 len2 = mbrtowc(&ch2, s2, back - s2, NULL);
|
/freebsd-12-stable/usr.bin/cut/ |
H A D | cut.c | 102 n = mbrtowc(&dchar, optarg, MB_LEN_MAX, NULL); 413 clen = mbrtowc(&ch, p, lbuf + reallen - p, NULL); 439 clen = mbrtowc(&ch, p, lbuf + reallen - p,
|
/freebsd-12-stable/contrib/libstdc++/include/c_compatibility/ |
H A D | wchar.h | 70 using std::mbrtowc;
|
/freebsd-12-stable/bin/sh/ |
H A D | output.c | 141 while ((clen = mbrtowc(&wc, p, end - p + 1, &mbs)) != 0) {
|
/freebsd-12-stable/usr.bin/hexdump/ |
H A D | conv.c | 107 clen = mbrtowc(&wc, p, bufsize, &pr->mbstate);
|
/freebsd-12-stable/contrib/libstdc++/config/locale/gnu/ |
H A D | codecvt_members.cc | 154 // mbrtowc. 157 __conv = mbrtowc(__to_next, __from, __from_end - __from, 270 // mbrtowc. 273 __conv = mbrtowc(NULL, __from, __end - __from,
|
/freebsd-12-stable/contrib/libstdc++/include/c_std/ |
H A D | std_cwchar.h | 88 #undef mbrtowc macro 159 using ::mbrtowc;
|
/freebsd-12-stable/usr.bin/wc/ |
H A D | wc.c | 288 } else if ((clen = mbrtowc(&wch, p, len, &mbs)) == 324 if (mbrtowc(NULL, NULL, 0, &mbs) == (size_t)-1 && !warned)
|
/freebsd-12-stable/contrib/llvm-project/libcxx/include/ |
H A D | __bsd_locale_fallbacks.h | 75 return mbrtowc(__pwc, __s, __n, __ps);
|
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/locale/ |
H A D | t_mbrtowc.c | 151 // mbrtowc(0, 0, 0, &st); /* XXX for ISO2022-JP */ 163 size_t rv = mbrtowc(&dst, src, n, stp); 239 "Checks mbrtowc(3) and mbsrtowcs(3) (using internal " 257 "Checks mbrtowc(3) and mbsrtowcs(3) (using state "
|
/freebsd-12-stable/gnu/usr.bin/grep/ |
H A D | quotearg.c | 75 # define mbrtowc(pwc, s, n, ps) ((*(pwc) = *(s)) != 0) macro 355 we should check them with mbrtowc, but in practice this 425 size_t bytes = mbrtowc (&w, &arg[i + m],
|
/freebsd-12-stable/lib/libc/stdio/ |
H A D | vfwprintf.c | 104 nconv = mbrtowc(&decpt, localeconv_l(locale)->decimal_point, MB_CUR_MAX, &mbs); 118 nconv = mbrtowc(&thousep, localeconv_l(locale)->thousands_sep, 335 nconv = mbrtowc(wcp, p, insize, &mbs);
|
/freebsd-12-stable/lib/libc/regex/ |
H A D | regexec.c | 72 nr = mbrtowc(&wc, s, n, mbs);
|