Lines Matching defs:codepoint
442 static inline void utf8_shift_and_mask(uint32_t* codePoint, const uint8_t byte)
444 *codePoint <<= 6;
445 *codePoint |= 0x3F & byte;
530 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8charLen);
531 if (codepoint > 0xFFFF) u16measuredLen++; // this will be a surrogate pair in utf16
554 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len);
556 // Convert the UTF32 codepoint to one or more UTF16 codepoints
557 if (codepoint <= 0xFFFF) {
559 *u16cur++ = (char16_t) codepoint;
562 codepoint = codepoint - 0x10000;
563 *u16cur++ = (char16_t) ((codepoint >> 10) + 0xD800);
564 *u16cur++ = (char16_t) ((codepoint & 0x3FF) + 0xDC00);
585 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len);
587 // Convert the UTF32 codepoint to one or more UTF16 codepoints
588 if (codepoint <= 0xFFFF) {
590 *u16cur++ = (char16_t) codepoint;
593 codepoint = codepoint - 0x10000;
594 *u16cur++ = (char16_t) ((codepoint >> 10) + 0xD800);
599 *u16cur++ = (char16_t) ((codepoint & 0x3FF) + 0xDC00);