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

/freebsd-10.3-release/lib/libc/tests/locale/
H A Dmbtowc_test.c28 * Test program for mbtowc(), as specified by IEEE Std. 1003.1-2001 and
57 ATF_REQUIRE(mbtowc(NULL, NULL, 0) == 0);
62 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 0);
67 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 1);
73 ATF_REQUIRE(mbtowc(&wc, buf, 0) == -1);
75 ATF_REQUIRE(mbtowc(NULL, NULL, 0) == 0);
86 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 0);
91 ATF_REQUIRE(mbtowc(&wc, buf, 1) == 1);
97 ATF_REQUIRE(mbtowc(&wc, buf, 0) == -1);
99 ATF_REQUIRE(mbtowc(NUL
[all...]
/freebsd-10.3-release/lib/libc/locale/
H A Dmbtowc.c33 __FBSDID("$FreeBSD: releng/10.3/lib/libc/locale/mbtowc.c 227753 2011-11-20 14:45:42Z theraven $");
48 locale->mbtowc = initial;
51 rval = XLOCALE_CTYPE(locale)->__mbrtowc(pwc, s, n, &locale->mbtowc);
57 mbtowc(wchar_t * __restrict pwc, const char * __restrict s, size_t n) function
H A Dxlocale_private.h122 /** Persistent state used by mbtowc() calls. */
123 __mbstate_t mbtowc; member in struct:_xlocale
H A DMakefile.inc12 mbsrtowcs.c mbtowc.c mbstowcs.c \
43 mbsrtowcs.3 mbstowcs.3 mbtowc.3 multibyte.3 \
/freebsd-10.3-release/contrib/netbsd-tests/lib/libc/locale/
H A Dt_mbtowc.c96 ret = mbtowc(NULL, NULL, 0);
102 ret = mbtowc(NULL, illegal, strlen(illegal));
103 (void)printf("mbtowc() returned: %zd\n", ret);
111 ret = mbtowc(NULL, NULL, 0);
120 ret = mbtowc(NULL, legal, strlen(legal));
121 (void)printf("mbtowc() returned: %zd\n", ret);
129 ATF_TC(mbtowc); variable
130 ATF_TC_HEAD(mbtowc, tc)
132 atf_tc_set_md_var(tc, "descr", "Checks mbtowc(3)");
134 ATF_TC_BODY(mbtowc, t
[all...]
/freebsd-10.3-release/cddl/contrib/opensolaris/lib/libgen/common/
H A Dgmatch.c54 n = mbtowc(&cl, p, MB_LEN_MAX); \
69 n = mbtowc(&cl, s, MB_LEN_MAX);
77 n = mbtowc(&cl, p, MB_LEN_MAX);
165 n = mbtowc(&cl, s, MB_LEN_MAX);
/freebsd-10.3-release/contrib/ncurses/ncurses/widechar/
H A Dcharable.c74 if (mbtowc(&convert, temp, 1) >= 0)
H A Dlib_get_wch.c46 #define reset_mbytes(state) mblen(NULL, 0), mbtowc(NULL, NULL, 0)
49 (int) mbtowc(&wch, buffer, length)
/freebsd-10.3-release/contrib/libstdc++/include/c_compatibility/
H A Dstdlib.h55 using std::mbtowc;
/freebsd-10.3-release/contrib/libstdc++/include/c_std/
H A Dstd_cstdlib.h92 #undef mbtowc
127 using ::mbtowc;
/freebsd-10.3-release/lib/libedit/
H A Dchartype.h58 #define ct_mbtowc mbtowc
59 #define ct_mbtowc_reset mbtowc(0,0,0)
/freebsd-10.3-release/include/
H A Dstdlib.h100 int mbtowc(wchar_t * __restrict, const char * __restrict, size_t);
/freebsd-10.3-release/contrib/libarchive/tar/
H A Dutil.c72 /* TODO: Hack up a version of mbtowc for platforms with no wide
76 * #define mbtowc(wcp, p, n) ((*wcp = *p), 1)
147 /* Note: mbrtowc() has a cleaner API, but mbtowc() seems a bit
149 if (mbtowc(NULL, NULL, 1) == -1) { /* Reset the shift state. */
150 /* mbtowc() should never fail in practice, but
164 if (try_wc && (n = mbtowc(&wc, p, length)) != -1) {
/freebsd-10.3-release/contrib/libc-vis/
H A Dvis.c405 clen = mbtowc(src, mbsrc, MB_LEN_MAX);
/freebsd-10.3-release/gnu/usr.bin/grep/
H A Dsearch.c600 mr = mbtowc (&nwc, beg + start + len,
985 mr = mbtowc (&pwc, s, beg - s);
1003 mr = mbtowc (&nwc, beg + len, buf + size - beg - len);
/freebsd-10.3-release/contrib/tcsh/
H A Dtc.str.c123 ret = mbtowc(&tmp, s, n);
H A Dsh.h107 #define reset_mbtowc() TCSH_IGNORE(mbtowc(NULL, NULL, 0))
/freebsd-10.3-release/usr.bin/sort/
H A Dsort.c317 res = mbtowc(wc, c, MB_CUR_MAX);
/freebsd-10.3-release/contrib/gcc/
H A Dsys-protos.h690 extern int mbtowc(wchar_t *, const char *, size_t);
/freebsd-10.3-release/bin/sh/
H A Dexpand.c1363 chrlen = mbtowc(&c, *p, 4);
/freebsd-10.3-release/contrib/libarchive/libarchive/
H A Darchive_string.c616 r = mbtowc(wcs, mbs, wcs_length);
2170 mbtowc(NULL, NULL, 0);
2178 r = mbtowc(&wc, p, n);
H A Darchive_write_disk_posix.c2647 l = mbtowc(&wc, p, alen);
/freebsd-10.3-release/contrib/ncurses/form/
H A Dfrm_driver.c4484 #define reset_mbytes(state) mblen(NULL, 0), mbtowc(NULL, NULL, 0)
4487 (int) mbtowc(&wch, buffer, length)
/freebsd-10.3-release/contrib/dialog/
H A Dconfigure14332 mbtowc \
/freebsd-10.3-release/contrib/ncurses/
H A Dconfigure6923 for ac_func in putwc btowc wctob mbtowc wctomb mblen mbrlen mbrtowc wcsrtombs mbsrtowcs wcstombs mbstowcs

Completed in 485 milliseconds