Home
last modified time | relevance | path

Searched refs:mbstate_t (Results 1 – 25 of 32) sorted by relevance

12

/bionic/libc/private/
Dbionic_mbstate.h47 static inline __wur size_t mbstate_bytes_so_far(const mbstate_t* ps) { in mbstate_bytes_so_far()
54 static inline void mbstate_set_byte(mbstate_t* ps, int i, char byte) { in mbstate_set_byte()
58 static inline __wur uint8_t mbstate_get_byte(const mbstate_t* ps, int n) { in mbstate_get_byte()
62 static inline __wur size_t mbstate_reset_and_return_illegal(int _errno, mbstate_t* ps) { in mbstate_reset_and_return_illegal()
68 static inline __wur size_t mbstate_reset_and_return(int _return, mbstate_t* ps) { in mbstate_reset_and_return()
/bionic/libc/bionic/
Dwchar.cpp56 int mbsinit(const mbstate_t* ps) { in mbsinit()
60 size_t mbrtowc(wchar_t* pwc, const char* s, size_t n, mbstate_t* ps) { in mbrtowc()
61 static mbstate_t __private_state; in mbrtowc()
62 mbstate_t* state = (ps == nullptr) ? &__private_state : ps; in mbrtowc()
68 size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t nmc, size_t len, mbstate_t* ps) { in mbsnrtowcs()
69 static mbstate_t __private_state; in mbsnrtowcs()
70 mbstate_t* state = (ps == nullptr) ? &__private_state : ps; in mbsnrtowcs()
135 size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps) { in mbsrtowcs()
139 size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps) { in wcrtomb()
140 static mbstate_t __private_state; in wcrtomb()
[all …]
Dmbrtoc16.cpp36 static inline bool mbspartialc16(const mbstate_t* state) { in mbspartialc16()
41 size_t nconv, mbstate_t* state) { in begin_surrogate()
54 static size_t finish_surrogate(char16_t* pc16, mbstate_t* state) { in finish_surrogate()
61 size_t mbrtoc16(char16_t* pc16, const char* s, size_t n, mbstate_t* ps) { in mbrtoc16()
62 static mbstate_t __private_state; in mbrtoc16()
63 mbstate_t* state = (ps == nullptr) ? &__private_state : ps; in mbrtoc16()
Dc32rtomb.cpp35 size_t c32rtomb(char* s, char32_t c32, mbstate_t* ps) { in c32rtomb()
36 static mbstate_t __private_state; in c32rtomb()
37 mbstate_t* state = (ps == nullptr) ? &__private_state : ps; in c32rtomb()
Dc16rtomb.cpp43 size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps) { in c16rtomb()
44 static mbstate_t __private_state; in c16rtomb()
45 mbstate_t* state = (ps == nullptr) ? &__private_state : ps; in c16rtomb()
Dmbrtoc32.cpp36 size_t mbrtoc32(char32_t* pc32, const char* s, size_t n, mbstate_t* ps) { in mbrtoc32()
37 static mbstate_t __private_state; in mbrtoc32()
38 mbstate_t* state = (ps == nullptr) ? &__private_state : ps; in mbrtoc32()
Dmblen.cpp33 mbstate_t state = {}; in mblen()
/bionic/libc/include/
Duchar.h64 size_t c16rtomb(char* _Nullable __buf, char16_t __ch16, mbstate_t* _Nullable __ps) __INTRODUCED_IN(…
75 size_t c32rtomb(char* _Nullable __buf, char32_t __ch32, mbstate_t* _Nullable __ps) __INTRODUCED_IN(…
83 size_t mbrtoc16(char16_t* _Nullable __ch16, const char* _Nullable __s, size_t __n, mbstate_t* _Null…
91 size_t mbrtoc32(char32_t* _Nullable __ch32, const char* _Nullable __s, size_t __n, mbstate_t* _Null…
Dwchar.h56 int mbsinit(const mbstate_t* __ps);
57 size_t mbrlen(const char* __s, size_t __n, mbstate_t* __ps);
58 size_t mbrtowc(wchar_t* __buf, const char* __s, size_t __n, mbstate_t* __ps);
59 size_t mbsrtowcs(wchar_t* __dst, const char** __src, size_t __dst_n, mbstate_t* __ps);
60 size_t mbsnrtowcs(wchar_t* __dst, const char** __src, size_t __src_n, size_t __dst_n, mbstate_t* __…
74 size_t wcrtomb(char* __buf, wchar_t __wc, mbstate_t* __ps);
91 size_t wcsnrtombs(char* __dst, const wchar_t** __src, size_t __src_n, size_t __dst_n, mbstate_t* __…
94 size_t wcsrtombs(char* __dst, const wchar_t** __src, size_t __dst_n, mbstate_t* __ps);
/bionic/libc/upstream-openbsd/lib/libc/locale/
Dmbrlen.c32 mbrlen(const char * __restrict s, size_t n, mbstate_t * __restrict ps) in mbrlen()
34 static mbstate_t mbs; in mbrlen()
Dwctob.c36 mbstate_t mbs; in wctob()
Dwctomb.c36 static mbstate_t mbs; in wctomb()
Dmbstowcs.c38 mbstate_t mbs; in mbstowcs()
Dwcstombs.c37 mbstate_t mbs; in wcstombs()
Dbtowc.c36 mbstate_t mbs; in btowc()
Dmbtowc.c38 static mbstate_t mbs; in mbtowc()
/bionic/tests/headers/posix/
Dwchar_h.c36 TYPE(mbstate_t); in wchar_h()
58 FUNCTION(mbrlen, size_t (*f)(const char*, size_t, mbstate_t*)); in wchar_h()
59 FUNCTION(mbrtowc, size_t (*f)(wchar_t*, const char*, size_t, mbstate_t*)); in wchar_h()
60 FUNCTION(mbsinit, int (*f)(const mbstate_t*)); in wchar_h()
61 FUNCTION(mbsnrtowcs, size_t (*f)(wchar_t*, const char**, size_t, size_t, mbstate_t*)); in wchar_h()
62 FUNCTION(mbsrtowcs, size_t (*f)(wchar_t*, const char**, size_t, mbstate_t*)); in wchar_h()
77 FUNCTION(wcrtomb, size_t (*f)(char*, wchar_t, mbstate_t*)); in wchar_h()
96 FUNCTION(wcsnrtombs, size_t (*f)(char*, const wchar_t**, size_t, size_t, mbstate_t*)); in wchar_h()
99 FUNCTION(wcsrtombs, size_t (*f)(char*, const wchar_t**, size_t, mbstate_t*)); in wchar_h()
/bionic/libc/include/bits/
Dmbstate_t.h47 } mbstate_t; typedef
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgetwc.c41 mbstate_t *st; in __fgetwc_unlock()
Dfputwc.c43 mbstate_t *st; in __fputwc_unlock()
Dvswscanf.c55 mbstate_t mbs; in vswscanf()
Dvswprintf.c43 mbstate_t mbs; in vswprintf()
Dopen_wmemstream.c37 mbstate_t mbs; /* conversion state of the stream */
/bionic/tests/
Duchar_test.cpp34 mbstate_t ps; in TEST()
170 void test_mbrtoc16_incomplete(mbstate_t* ps) { in test_mbrtoc16_incomplete()
202 mbstate_t ps; in TEST()
318 void test_mbrtoc32_incomplete(mbstate_t* ps) { in test_mbrtoc32_incomplete()
348 mbstate_t ps; in TEST()
/bionic/libc/stdio/
Dlocal.h115 mbstate_t wcio_mbstate_in;
116 mbstate_t wcio_mbstate_out;

12