Home
last modified time | relevance | path

Searched refs:char16_t (Results 1 – 7 of 7) 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()
Diconv.cpp253 char16_t hi = 0xd800 | (wc >> 10); in Convert()
254 char16_t lo = 0xdc00 | (wc & 0x3ff); in Convert()
301 void Out16(char* dst, char16_t ch, bool swap) { in Out16()
/bionic/tests/
Duchar_test.cpp28 EXPECT_EQ(2U, sizeof(char16_t)); in TEST()
119 char16_t out; in TEST()
132 char16_t out; in TEST()
142 ASSERT_EQ(static_cast<char16_t>(0x00a2), out); in TEST()
145 ASSERT_EQ(static_cast<char16_t>(0x20ac), out); in TEST()
149 char16_t out; in TEST()
153 ASSERT_EQ(static_cast<char16_t>(0xdbea), out); in TEST()
155 ASSERT_EQ(static_cast<char16_t>(0xdfcd), out); in TEST()
159 char16_t out; in TEST()
165 char16_t out; in TEST()
[all …]
Dmalloc_test.cpp852 ASSERT_NO_FATAL_FAILURE(TestAllocateType<char16_t>()); in TEST()
/bionic/libc/include/
Duchar.h44 typedef __CHAR16_TYPE__ char16_t; typedef
64 size_t c16rtomb(char* _Nullable __buf, char16_t __ch16, mbstate_t* _Nullable __ps) __INTRODUCED_IN(…
83 size_t mbrtoc16(char16_t* _Nullable __ch16, const char* _Nullable __s, size_t __n, mbstate_t* _Null…
/bionic/libc/include/bits/
Dstdatomic.h172 typedef _Atomic(char16_t) atomic_char16_t;