5#include "core/fxcrt/utf16.h"
7#include "testing/gtest/include/gtest/gtest.h"
32static_assert(SurrogatePair
(0xd800
, 0xdc00
).high() == 0xd800);
33static_assert(SurrogatePair
(0xd800
, 0xdc00
).low() == 0xdc00);
36static_assert(SurrogatePair
(0xdbff
, 0xdfff
).high() == 0xdbff);
37static_assert(SurrogatePair
(0xdbff
, 0xdfff
).low() == 0xdfff);
40static_assert(SurrogatePair
(0x10000
).high() == 0xd800);
41static_assert(SurrogatePair
(0x10000
).low() == 0xdc00);
44static_assert(SurrogatePair
(0x10ffff
).high() == 0xdbff);
45static_assert(SurrogatePair
(0x10ffff
).low() == 0xdfff);
51 SurrogatePair from_code_point
(code_point
);
constexpr SurrogatePair(char32_t code_point)
constexpr char16_t high() const
constexpr char32_t ToCodePoint() const
constexpr SurrogatePair(char16_t high, char16_t low)
constexpr char16_t low() const
constexpr bool IsSupplementary(char32_t code_point)
constexpr char32_t kMaximumSupplementaryCodePoint
constexpr char32_t kMinimumSupplementaryCodePoint
TEST(SurrogatePairTest, RoundTrip)
constexpr bool IsHighSurrogate(char32_t code_point)
constexpr char16_t kMaximumHighSurrogateCodeUnit
constexpr char16_t kMaximumLowSurrogateCodeUnit
constexpr char16_t kSurrogateMask
constexpr bool IsLowSurrogate(char32_t code_point)
constexpr char16_t kMinimumLowSurrogateCodeUnit