Home
last modified time | relevance | path

Searched refs:char16_t (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/bionic/
Dmbrtoc16.cpp40 static size_t begin_surrogate(char32_t c32, char16_t* pc16, in begin_surrogate()
43 char16_t trail = (c32 & 0x3ff) | 0xdc00; in begin_surrogate()
54 static size_t finish_surrogate(char16_t* pc16, mbstate_t* state) { in finish_surrogate()
55 char16_t trail = mbstate_get_byte(state, 1) << 8 | in finish_surrogate()
61 size_t mbrtoc16(char16_t* pc16, const char* s, size_t n, mbstate_t* ps) { in mbrtoc16()
65 char16_t __private_pc16; in mbrtoc16()
84 *pc16 = static_cast<char16_t>(c32); in mbrtoc16()
Dc16rtomb.cpp35 static inline constexpr bool is_high_surrogate(char16_t c16) { in is_high_surrogate()
39 static inline constexpr bool is_low_surrogate(char16_t c16) { in is_low_surrogate()
43 size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps) { in c16rtomb()
/bionic/libc/include/
Duchar.h39 typedef __CHAR16_TYPE__ char16_t; typedef
46 size_t c16rtomb(char* __restrict, char16_t, mbstate_t* __restrict) __INTRODUCED_IN(21);
48 size_t mbrtoc16(char16_t* __restrict, const char* __restrict, size_t, mbstate_t* __restrict)
Dstdatomic.h331 typedef _Atomic(char16_t) atomic_char16_t;
/bionic/tests/
Duchar_test.cpp38 EXPECT_EQ(2U, sizeof(char16_t)); in TEST()
161 char16_t out; in TEST()
178 char16_t out; in TEST()
188 ASSERT_EQ(static_cast<char16_t>(0x00a2), out); in TEST()
191 ASSERT_EQ(static_cast<char16_t>(0x20ac), out); in TEST()
199 char16_t out; in TEST()
203 ASSERT_EQ(static_cast<char16_t>(0xdbea), out); in TEST()
205 ASSERT_EQ(static_cast<char16_t>(0xdfcd), out); in TEST()
213 char16_t out; in TEST()
223 char16_t out; in TEST()
[all …]