Home
last modified time | relevance | path

Searched refs:mbrtowc (Results 1 – 17 of 17) sorted by relevance

/aosp12/bionic/tests/
H A Dwchar_test.cpp273 TEST(wchar, mbrtowc) { in TEST() argument
277 ASSERT_EQ(0U, mbrtowc(out, "hello", 0, nullptr)); in TEST()
280 ASSERT_EQ(0U, mbrtowc(out, "hello", 0, nullptr)); in TEST()
281 ASSERT_EQ(0U, mbrtowc(out, "", 0, nullptr)); in TEST()
282 ASSERT_EQ(1U, mbrtowc(out, "hello", 1, nullptr)); in TEST()
286 ASSERT_EQ(0U, mbrtowc(nullptr, "", 0, nullptr)); in TEST()
295 ASSERT_EQ(1U, mbrtowc(out, "abcdef", 6, nullptr)); in TEST()
345 ASSERT_EQ(1U, mbrtowc(&out, "\xa2" "cdef", 5, ps)); in test_mbrtowc_incomplete()
351 ASSERT_EQ(1U, mbrtowc(&out, "\xac" "def", 4, ps)); in test_mbrtowc_incomplete()
357 ASSERT_EQ(1U, mbrtowc(&out, "\xa2" "ef", 3, ps)); in test_mbrtowc_incomplete()
[all …]
/aosp12/bionic/libc/bionic/
H A Dwchar.cpp60 size_t mbrtowc(wchar_t* pwc, const char* s, size_t n, mbstate_t* ps) { in mbrtowc() function
90 r = mbrtowc(nullptr, *src + i, nmc - i, state); in mbsnrtowcs()
116 r = mbrtowc(dst + o, *src + i, nmc - i, state); in mbsnrtowcs()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/locale/
H A Dmbrlen.c38 return (mbrtowc(NULL, s, n, ps)); in mbrlen()
H A Dbtowc.c49 if (mbrtowc(&wc, &cc, 1, &mbs) > 1) in btowc()
H A Dmbtowc.c46 rval = mbrtowc(pwc, s, n, &mbs); in mbtowc()
/aosp12/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfgetwc.c70 size = mbrtowc(&wc, &c, 1, st); in __fgetwc_unlock()
/aosp12/bionic/libc/upstream-freebsd/lib/libc/gen/
H A Dglob.c220 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); in glob()
242 clen = mbrtowc(&wc, patnext, MB_LEN_MAX, &mbs); in glob()
485 clen = mbrtowc(&wc, sc, MB_LEN_MAX, &mbs); in globtilde()
783 clen = mbrtowc(&wc, sc, MB_LEN_MAX, &mbs); in glob3()
/aosp12/bionic/libc/stdio/
H A Dvfscanf.cpp354 nconv = mbrtowc(wcp, buf, bytes, &mbs); in __svfscanf()
444 nconv = mbrtowc(&wc, buf, bytes, &mbs); in __svfscanf()
H A Dprintf_common.h799 nconv = mbrtowc(wcp, p, insize, &mbs); in mbsconv()
/aosp12/bionic/tests/headers/posix/
H A Dwchar_h.c59 FUNCTION(mbrtowc, size_t (*f)(wchar_t*, const char*, size_t, mbstate_t*)); in wchar_h()
/aosp12/bionic/benchmarks/
H A Dstdlib_benchmark.cpp233 for (j = 0; buf_aligned[j]; j+=mbrtowc(&wc, buf_aligned + j, 4, nullptr)) { in BM_stdlib_mbrtowc()
/aosp12/bionic/libc/include/
H A Dwchar.h58 size_t mbrtowc(wchar_t* __buf, const char* __s, size_t __n, mbstate_t* __ps);
/aosp12/bionic/libc/tools/
H A Dposix-2013.txt543 mbrtowc
/aosp12/system/logging/liblog/
H A Dlogprint.cpp1112 len = mbrtowc(nullptr, message, len, &mb_state); in convertPrintable()
/aosp12/bionic/libc/
H A Dlibc.map.txt630 mbrtowc;
/aosp12/bionic/tools/versioner/platforms/
H A Dlibc.map.txt630 mbrtowc;
/aosp12/bionic/benchmarks/linker_relocation/gen/
H A Dliblinker_reloc_bench_063.S11190 CALL(mbrtowc)