Searched refs:c16 (Results 1 – 1 of 1) sorted by relevance
35 static inline constexpr bool is_high_surrogate(char16_t c16) { in is_high_surrogate() argument36 return c16 >= 0xd800 && c16 < 0xdc00; in is_high_surrogate()39 static inline constexpr bool is_low_surrogate(char16_t c16) { in is_low_surrogate() argument40 return c16 >= 0xdc00 && c16 < 0xe000; in is_low_surrogate()43 size_t c16rtomb(char* s, char16_t c16, mbstate_t* ps) { in c16rtomb() argument47 if (is_high_surrogate(c16)) { in c16rtomb()48 char32_t c32 = (c16 & ~0xd800) << 10; in c16rtomb()52 } else if (is_low_surrogate(c16)) { in c16rtomb()55 return c32rtomb(s, static_cast<char32_t>(c16), state); in c16rtomb()58 if (!is_low_surrogate(c16)) { in c16rtomb()[all …]