Searched refs:surrogate_pair (Results 1 – 2 of 2) sorted by relevance
62 uint32_t surrogate_pair = 0; in GetUtf16FromUtf8() local65 surrogate_pair |= ((code_point >> 10) + 0xd7c0) & 0xffff; in GetUtf16FromUtf8()67 surrogate_pair |= ((code_point & 0x03ff) + 0xdc00) << 16; in GetUtf16FromUtf8()69 return surrogate_pair; in GetUtf16FromUtf8()
97 uint32_t surrogate_pair = 0; in GetUtf16FromUtf8() local100 surrogate_pair |= ((code_point >> 10) + 0xd7c0) & 0xffff; in GetUtf16FromUtf8()102 surrogate_pair |= ((code_point & 0x03ff) + 0xdc00) << 16; in GetUtf16FromUtf8()104 return surrogate_pair; in GetUtf16FromUtf8()