/freebsd-11-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-11-stable/lib/libc/locale/ |
H A D | mbrtowc.c | 44 ps = &locale->mbrtowc; 49 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 | 116 /** Persistent state used by mbrtowc() calls. */ 117 __mbstate_t mbrtowc; member in struct:_xlocale
|
/freebsd-11-stable/bin/ls/ |
H A D | util.c | 73 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) { 107 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) { 157 while (len != 0 && (clen = mbrtowc(&wc, s, len, &mbs)) != 0) { 193 while ((clen = mbrtowc(&wc, s, MB_LEN_MAX, &mbs)) != 0) {
|
/freebsd-11-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-11-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);
|
/freebsd-11-stable/contrib/libreadline/ |
H A D | mbutil.c | 101 tmp = mbrtowc (&wc, string+point, strlen(string + point), &ps); 130 tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps); 134 tmp = mbrtowc (&wc, string + point, strlen (string + point), &ps); 164 tmp = mbrtowc (&wc, string + point, length - point, &ps); 336 tmp = mbrtowc (&wc, buf + ind, l - ind, &ps);
|
H A D | rlmbutil.h | 64 # define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0) macro
|
/freebsd-11-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-11-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-11-stable/usr.bin/grep/regex/ |
H A D | glue.h | 20 #define tre_mbrtowc(pwc, s, n, ps) (mbrtowc((pwc), (s), (n), (ps)))
|
/freebsd-11-stable/usr.bin/tr/ |
H A D | str.c | 85 clen = mbrtowc(&wch, s->str, MB_LEN_MAX, NULL); 203 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL); 253 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL); 306 clen = mbrtowc(&wc, s->str, MB_LEN_MAX, NULL);
|
/freebsd-11-stable/usr.bin/look/ |
H A D | look.c | 126 if (mbrtowc(&termchar, optarg, MB_LEN_MAX, NULL) != 182 while ((clen = mbrtowc(&ch, readp, MB_LEN_MAX, NULL)) != 0) { 338 len2 = mbrtowc(&ch2, s2, back - s2, NULL);
|
/freebsd-11-stable/usr.bin/cut/ |
H A D | cut.c | 100 n = mbrtowc(&dchar, optarg, MB_LEN_MAX, NULL); 405 clen = mbrtowc(&ch, p, lbuf + reallen - p, NULL); 431 clen = mbrtowc(&ch, p, lbuf + reallen - p,
|
/freebsd-11-stable/contrib/libstdc++/include/c_compatibility/ |
H A D | wchar.h | 70 using std::mbrtowc;
|
/freebsd-11-stable/usr.bin/hexdump/ |
H A D | conv.c | 105 clen = mbrtowc(&wc, p, bufsize, &pr->mbstate);
|
/freebsd-11-stable/bin/sh/ |
H A D | output.c | 139 while ((clen = mbrtowc(&wc, p, end - p + 1, &mbs)) != 0) {
|
/freebsd-11-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-11-stable/contrib/libstdc++/include/c_std/ |
H A D | std_cwchar.h | 88 #undef mbrtowc macro 159 using ::mbrtowc;
|
/freebsd-11-stable/usr.bin/wc/ |
H A D | wc.c | 290 } else if ((clen = mbrtowc(&wch, p, len, &mbs)) == 326 if (mbrtowc(NULL, NULL, 0, &mbs) == (size_t)-1 && !warned)
|
/freebsd-11-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-11-stable/contrib/llvm-project/libcxx/include/ |
H A D | __bsd_locale_fallbacks.h | 75 return mbrtowc(__pwc, __s, __n, __ps);
|
/freebsd-11-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-11-stable/lib/libc/stdio/ |
H A D | vfwprintf.c | 102 nconv = mbrtowc(&decpt, localeconv_l(locale)->decimal_point, MB_CUR_MAX, &mbs); 116 nconv = mbrtowc(&thousep, localeconv_l(locale)->thousands_sep, 333 nconv = mbrtowc(wcp, p, insize, &mbs);
|