Lines Matching defs:codepoint
86 inline size_t UTF8Length(uint32_t codepoint)
88 if (codepoint <= UTF8_1B_MAX) {
91 if (codepoint <= UTF8_2B_MAX) {
94 if (codepoint <= UTF8_3B_MAX) {
101 size_t EncodeUTF8(uint32_t codepoint, uint8_t* utf8, size_t len, size_t index)
103 size_t size = UTF8Length(codepoint);
108 uint8_t cont = ((codepoint | byteMark) & byteMask);
110 codepoint >>= UTF8_OFFSET;
112 utf8[index] = codepoint | firstByteMark[size];
272 uint32_t codepoint = DecodeUTF16(utf16In, end, &i, cesu8);
273 if (codepoint == 0) {
285 utf8Pos += EncodeUTF8(codepoint, utf8Out, utf8Len, utf8Pos);
299 uint32_t codepoint = HandleAndDecodeInvalidUTF16(utf16In, end, &i);
300 if (codepoint == 0) {
312 utf8Pos += EncodeUTF8(codepoint, utf8Out, utf8Len, utf8Pos);
486 uint32_t codepoint = DecodeUTF16(utf16In, end, &i);
487 uint8_t latin1Code = static_cast<uint8_t>(codepoint & latin1Limit);