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