/bionic/libc/bionic/ |
H A D | mbstate.cpp | 33 __LIBC_HIDDEN__ size_t mbstate_bytes_so_far(const mbstate_t* ps) { argument 35 (ps->__seq[2] != 0) ? 3 : 36 (ps->__seq[1] != 0) ? 2 : 37 (ps->__seq[0] != 0) ? 1 : 0; 40 __LIBC_HIDDEN__ void mbstate_set_byte(mbstate_t* ps, int i, char byte) { argument 41 ps->__seq[i] = static_cast<uint8_t>(byte); 44 __LIBC_HIDDEN__ uint8_t mbstate_get_byte(const mbstate_t* ps, int n) { argument 45 return ps->__seq[n]; 48 __LIBC_HIDDEN__ size_t reset_and_return_illegal(int _errno, mbstate_t* ps) { argument 50 *(reinterpret_cast<uint32_t*>(ps 54 reset_and_return(int _return, mbstate_t* ps) argument [all...] |
H A D | wchar.cpp | 56 int mbsinit(const mbstate_t* ps) { argument 57 return (ps == NULL || (*(reinterpret_cast<const uint32_t*>(ps->__seq)) == 0)); 60 size_t mbrtowc(wchar_t* pwc, const char* s, size_t n, mbstate_t* ps) { argument 62 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 68 size_t mbsnrtowcs(wchar_t* dst, const char** src, size_t nmc, size_t len, mbstate_t* ps) { argument 70 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 146 size_t mbsrtowcs(wchar_t* dst, const char** src, size_t len, mbstate_t* ps) { argument 150 wcrtomb(char* s, wchar_t wc, mbstate_t* ps) argument 158 wcsnrtombs(char* dst, const wchar_t** src, size_t nwc, size_t len, mbstate_t* ps) argument 221 wcsrtombs(char* dst, const wchar_t** src, size_t len, mbstate_t* ps) argument [all...] |
H A D | c32rtomb.cpp | 35 size_t c32rtomb(char* s, char32_t c32, mbstate_t* ps) { argument 37 mbstate_t* state = (ps == NULL) ? &__private_state : ps; 40 // Equivalent to c32rtomb(buf, U'\0', ps).
|
H A D | c16rtomb.cpp | 43 size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps) { argument 45 mbstate_t* state = (ps == NULL) ? &__private_state : ps;
|
H A D | mbrtoc16.cpp | 61 size_t mbrtoc16(char16_t* pc16, const char* s, size_t n, mbstate_t* ps) { argument 63 mbstate_t* state = (ps == NULL) ? &__private_state : ps;
|
H A D | mbrtoc32.cpp | 36 size_t mbrtoc32(char32_t* pc32, const char* s, size_t n, mbstate_t* ps) { argument 38 mbstate_t* state = (ps == NULL) ? &__private_state : ps;
|
/bionic/libc/upstream-openbsd/lib/libc/locale/ |
H A D | mbrlen.c | 32 mbrlen(const char * __restrict s, size_t n, mbstate_t * __restrict ps) argument 36 if (ps == NULL) 37 ps = &mbs; 38 return (mbrtowc(NULL, s, n, ps));
|
/bionic/libc/private/ |
H A D | bionic_mbstate.h | 46 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/kernel/uapi/linux/ |
H A D | coff.h | 22 #define COFF_SHORT_L(ps) ((short) (((unsigned short) ((unsigned char) ps[1]) << 8) | ((unsigned short) ((unsigned char) ps[0])))) 24 #define COFF_LONG_L(ps) (((long) (((unsigned long) ((unsigned char) ps[3]) << 24) | ((unsigned long) ((unsigned char) ps[2]) << 16) | ((unsigned long) ((unsigned char) ps[1]) << 8) | ((unsigned long) ((unsigned char) ps[0]))))) 25 #define COFF_SHORT_H(ps) ((short) (((unsigned short) ((unsigned char) ps[ [all...] |
/bionic/tests/ |
H A D | uchar_test.cpp | 48 mbstate_t ps; local 51 memset(&ps, 0, sizeof(ps)); 52 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc32(NULL, "\xc2", 1, &ps)); 53 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(out, 0x00a2, &ps)); 58 memset(&ps, 0, sizeof(ps)); 59 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc32(NULL, "\xc2", 1, &ps)); 60 EXPECT_EQ(1U, c32rtomb(NULL, 0x00a2, &ps)); 61 EXPECT_TRUE(mbsinit(&ps)); 232 test_mbrtoc16_incomplete(mbstate_t* ps) argument 266 mbstate_t ps; local 370 test_mbrtoc32_incomplete(mbstate_t* ps) argument 402 mbstate_t ps; local [all...] |
H A D | wchar_test.cpp | 94 mbstate_t ps; local 97 memset(&ps, 0, sizeof(ps)); 98 EXPECT_EQ(static_cast<size_t>(-2), mbrtowc(NULL, "\xc2", 1, &ps)); 99 EXPECT_EQ(static_cast<size_t>(-1), wcrtomb(out, 0x00a2, &ps)); 104 memset(&ps, 0, sizeof(ps)); 105 EXPECT_EQ(static_cast<size_t>(-2), mbrtowc(NULL, "\xc2", 1, &ps)); 106 EXPECT_EQ(1U, wcrtomb(NULL, 0x00a2, &ps)); 107 EXPECT_TRUE(mbsinit(&ps)); 214 mbstate_t ps; local 304 test_mbrtowc_incomplete(mbstate_t* ps) argument 334 mbstate_t ps; local 341 test_mbsrtowcs(mbstate_t* ps) argument 378 mbstate_t ps; local [all...] |
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
H A D | vfprintf.c | 286 mbstate_t ps; local 483 memset(&ps, 0, sizeof(ps)); 489 while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) { 1149 mbstate_t ps; local 1203 memset(&ps, 0, sizeof(ps)); 1210 while ((n = mbrtowc(&wc, fmt, MB_CUR_MAX, &ps)) > 0) {
|
/bionic/libc/kernel/uapi/rdma/ |
H A D | rdma_user_cm.h | 71 __u16 ps; member in struct:rdma_ucm_create_id
|