Searched refs:mbrtowc (Results 1 - 25 of 64) sorted by relevance

123

/freebsd-11-stable/lib/libc/tests/locale/
H A Dmbrtowc_test.c28 * 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 Dmbrtowc.c44 ps = &locale->mbrtowc;
49 mbrtowc(wchar_t * __restrict pwc, const char * __restrict s, function
H A DMakefile.inc11 mbrtowc.c mbsinit.c mbsnrtowcs.c \
41 mbrtowc.3 \
82 MLINKS+=mbrtowc.3 mbrtoc16.3 mbrtowc.3 mbrtoc32.3
H A Dxlocale_private.h116 /** Persistent state used by mbrtowc() calls. */
117 __mbstate_t mbrtowc; member in struct:_xlocale
/freebsd-11-stable/bin/ls/
H A Dutil.c73 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 Dtuklib_mbstr_width.c44 const size_t ret = mbrtowc(&wc, str + i, len - i, &state);
/freebsd-11-stable/lib/libc/gen/
H A Dfnmatch.c99 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 Dmbutil.c101 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 Drlmbutil.h64 # define mbrtowc(pwc, s, n, ps) (mbrtowc) (pwc, s, n, 0) macro
/freebsd-11-stable/contrib/ncurses/ncurses/base/
H A Dlib_slkset.c86 need = mbrtowc(0, p, strlen(p), &state);
89 mbrtowc(&wc, p, need, &state);
/freebsd-11-stable/contrib/libstdc++/config/locale/generic/
H A Dcodecvt_members.cc119 // 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 Dglue.h20 #define tre_mbrtowc(pwc, s, n, ps) (mbrtowc((pwc), (s), (n), (ps)))
/freebsd-11-stable/usr.bin/tr/
H A Dstr.c85 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 Dlook.c126 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 Dcut.c100 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 Dwchar.h70 using std::mbrtowc;
/freebsd-11-stable/usr.bin/hexdump/
H A Dconv.c105 clen = mbrtowc(&wc, p, bufsize, &pr->mbstate);
/freebsd-11-stable/bin/sh/
H A Doutput.c139 while ((clen = mbrtowc(&wc, p, end - p + 1, &mbs)) != 0) {
/freebsd-11-stable/contrib/libstdc++/config/locale/gnu/
H A Dcodecvt_members.cc154 // 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 Dstd_cwchar.h88 #undef mbrtowc macro
159 using ::mbrtowc;
/freebsd-11-stable/usr.bin/wc/
H A Dwc.c290 } 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 Dt_mbrtowc.c151 // 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.h75 return mbrtowc(__pwc, __s, __n, __ps);
/freebsd-11-stable/gnu/usr.bin/grep/
H A Dquotearg.c75 # 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 Dvfwprintf.c102 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);

Completed in 269 milliseconds

123