Home
last modified time | relevance | path

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

12

/bionic/libc/private/
Dbionic_mbstate.h46 size_t mbstate_bytes_so_far(const mbstate_t* ps);
47 void mbstate_set_byte(mbstate_t* ps, int i, char byte);
48 uint8_t mbstate_get_byte(const mbstate_t* ps, int n);
49 size_t reset_and_return_illegal(int _errno, mbstate_t* ps);
50 size_t reset_and_return(int _return, mbstate_t* ps);
/bionic/libc/bionic/
Dmbstate.cpp33 __LIBC_HIDDEN__ size_t mbstate_bytes_so_far(const mbstate_t* ps) { in mbstate_bytes_so_far()
40 __LIBC_HIDDEN__ void mbstate_set_byte(mbstate_t* ps, int i, char byte) { in mbstate_set_byte()
44 __LIBC_HIDDEN__ uint8_t mbstate_get_byte(const mbstate_t* ps, int n) { in mbstate_get_byte()
48 __LIBC_HIDDEN__ size_t reset_and_return_illegal(int _errno, mbstate_t* ps) { in reset_and_return_illegal()
54 __LIBC_HIDDEN__ size_t reset_and_return(int _return, mbstate_t* ps) { in reset_and_return()
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 == NULL) ? &__private_state : ps; in mbrtoc16()
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 == NULL) ? &__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 == NULL) ? &__private_state : ps; in mbsnrtowcs()
146 size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps) { in mbsrtowcs()
150 size_t wcrtomb(char* s, wchar_t wc, mbstate_t* ps) { in wcrtomb()
151 static mbstate_t __private_state; in wcrtomb()
[all …]
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 == NULL) ? &__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 == NULL) ? &__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 == NULL) ? &__private_state : ps; in mbrtoc32()
/bionic/libc/include/
Duchar.h40 size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict);
41 size_t c32rtomb(char* __restrict, char32_t, mbstate_t* __restrict);
45 mbstate_t* __restrict);
49 mbstate_t* __restrict);
Dwchar.h49 } mbstate_t; typedef
95 extern int mbsinit(const mbstate_t *);
96 extern size_t mbrlen(const char *, size_t, mbstate_t *);
97 extern size_t mbrtowc(wchar_t *, const char *, size_t, mbstate_t *);
98 extern size_t mbsrtowcs(wchar_t*, const char**, size_t, mbstate_t*);
99 extern size_t mbsnrtowcs(wchar_t*, const char**, size_t, size_t, mbstate_t*);
116 extern size_t wcrtomb(char *, wchar_t, mbstate_t *);
132 extern size_t wcsnrtombs(char*, const wchar_t**, size_t, size_t, mbstate_t*);
135 extern size_t wcsrtombs(char*, const wchar_t**, size_t, mbstate_t*);
/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()
Dbtowc.c36 mbstate_t mbs; in btowc()
Dmbstowcs.c38 mbstate_t mbs; in mbstowcs()
Dwcstombs.c37 mbstate_t mbs; in wcstombs()
Dmbtowc.c38 static mbstate_t mbs; in mbtowc()
D_wcstod.h102 mbstate_t st; in FUNCNAME()
/bionic/libc/stdio/
Dwcio.h43 mbstate_t wcio_mbstate_in;
44 mbstate_t wcio_mbstate_out;
/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.cpp48 mbstate_t ps; in TEST()
232 void test_mbrtoc16_incomplete(mbstate_t* ps) { in test_mbrtoc16_incomplete()
266 mbstate_t ps; in TEST()
370 void test_mbrtoc32_incomplete(mbstate_t* ps) { in test_mbrtoc32_incomplete()
402 mbstate_t ps; in TEST()
Dwchar_test.cpp94 mbstate_t ps; in TEST()
214 mbstate_t ps; in TEST()
304 void test_mbrtowc_incomplete(mbstate_t* ps) { in test_mbrtowc_incomplete()
334 mbstate_t ps; in TEST()
341 void test_mbsrtowcs(mbstate_t* ps) { in test_mbsrtowcs()
378 mbstate_t ps; in TEST()

12