Lines Matching full:codepoint
441 static inline void utf8_shift_and_mask(uint32_t* codePoint, const uint8_t byte)
443 *codePoint <<= 6;
444 *codePoint |= 0x3F & byte;
529 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8charLen);
530 if (codepoint > 0xFFFF) u16measuredLen++; // this will be a surrogate pair in utf16
553 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len);
555 // Convert the UTF32 codepoint to one or more UTF16 codepoints
556 if (codepoint <= 0xFFFF) {
558 *u16cur++ = (char16_t) codepoint;
561 codepoint = codepoint - 0x10000;
562 *u16cur++ = (char16_t) ((codepoint >> 10) + 0xD800);
563 *u16cur++ = (char16_t) ((codepoint & 0x3FF) + 0xDC00);
584 uint32_t codepoint = utf8_to_utf32_codepoint(u8cur, u8len);
586 // Convert the UTF32 codepoint to one or more UTF16 codepoints
587 if (codepoint <= 0xFFFF) {
589 *u16cur++ = (char16_t) codepoint;
592 codepoint = codepoint - 0x10000;
593 *u16cur++ = (char16_t) ((codepoint >> 10) + 0xD800);
598 *u16cur++ = (char16_t) ((codepoint & 0x3FF) + 0xDC00);