Lines Matching refs:codePoint
83 uint32_t codePoint = ((d0 & MASK_4BIT) << (DATA_WIDTH * CONST_3)) | ((d1 & MASK_6BIT) << (DATA_WIDTH * CONST_2)) |
87 pair |= ((codePoint >> (PAIR_ELEMENT_WIDTH - DATA_WIDTH)) + U16_LEAD) & MASK_16BIT;
89 pair |= (codePoint & MASK_10BIT) + U16_TAIL;
136 size_t UTF8Length(uint32_t codePoint)
138 if (codePoint <= UTF8_1B_MAX) {
141 if (codePoint <= UTF8_2B_MAX) {
144 if (codePoint <= UTF8_3B_MAX) {
151 size_t EncodeUTF8(uint32_t codePoint, uint8_t* utf8, size_t len, size_t index)
153 size_t size = UTF8Length(codePoint);
158 uint8_t cont = ((codePoint | BYTE_MARK) & BYTE_MASK);
160 codePoint >>= UTF8_OFFSET;
162 utf8[index] = codePoint | FIRST_BYTE_MARK[size];
200 uint32_t codePoint = HandleAndDecodeInvalidUTF16(utf16In, end, &i);
201 if (codePoint == 0) {
204 utf8Pos += EncodeUTF8(codePoint, utf8Out, utf8Len, utf8Pos);