/aosp12/bionic/tests/ |
H A D | wchar_test.cpp | 273 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 D | wchar.cpp | 60 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 D | mbrlen.c | 38 return (mbrtowc(NULL, s, n, ps)); in mbrlen()
|
H A D | btowc.c | 49 if (mbrtowc(&wc, &cc, 1, &mbs) > 1) in btowc()
|
H A D | mbtowc.c | 46 rval = mbrtowc(pwc, s, n, &mbs); in mbtowc()
|
/aosp12/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | fgetwc.c | 70 size = mbrtowc(&wc, &c, 1, st); in __fgetwc_unlock()
|
/aosp12/bionic/libc/upstream-freebsd/lib/libc/gen/ |
H A D | glob.c | 220 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 D | vfscanf.cpp | 354 nconv = mbrtowc(wcp, buf, bytes, &mbs); in __svfscanf() 444 nconv = mbrtowc(&wc, buf, bytes, &mbs); in __svfscanf()
|
H A D | printf_common.h | 799 nconv = mbrtowc(wcp, p, insize, &mbs); in mbsconv()
|
/aosp12/bionic/tests/headers/posix/ |
H A D | wchar_h.c | 59 FUNCTION(mbrtowc, size_t (*f)(wchar_t*, const char*, size_t, mbstate_t*)); in wchar_h()
|
/aosp12/bionic/benchmarks/ |
H A D | stdlib_benchmark.cpp | 233 for (j = 0; buf_aligned[j]; j+=mbrtowc(&wc, buf_aligned + j, 4, nullptr)) { in BM_stdlib_mbrtowc()
|
/aosp12/bionic/libc/include/ |
H A D | wchar.h | 58 size_t mbrtowc(wchar_t* __buf, const char* __s, size_t __n, mbstate_t* __ps);
|
/aosp12/bionic/libc/tools/ |
H A D | posix-2013.txt | 543 mbrtowc
|
/aosp12/system/logging/liblog/ |
H A D | logprint.cpp | 1112 len = mbrtowc(nullptr, message, len, &mb_state); in convertPrintable()
|
/aosp12/bionic/libc/ |
H A D | libc.map.txt | 630 mbrtowc;
|
/aosp12/bionic/tools/versioner/platforms/ |
H A D | libc.map.txt | 630 mbrtowc;
|
/aosp12/bionic/benchmarks/linker_relocation/gen/ |
H A D | liblinker_reloc_bench_063.S | 11190 CALL(mbrtowc)
|