Lines Matching refs:srcChar
77 static inline size_t utf32_codepoint_utf8_length(char32_t srcChar) in utf32_codepoint_utf8_length() argument
80 if (srcChar < 0x00000080) { in utf32_codepoint_utf8_length()
82 } else if (srcChar < 0x00000800) { in utf32_codepoint_utf8_length()
84 } else if (srcChar < 0x00010000) { in utf32_codepoint_utf8_length()
85 if ((srcChar < kUnicodeSurrogateStart) || (srcChar > kUnicodeSurrogateEnd)) { in utf32_codepoint_utf8_length()
93 else if (srcChar <= kUnicodeMaxCodepoint) { in utf32_codepoint_utf8_length()
103 static inline void utf32_codepoint_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes) in utf32_codepoint_to_utf8() argument
108 case 4: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; in utf32_codepoint_to_utf8()
110 case 3: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; in utf32_codepoint_to_utf8()
112 case 2: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; in utf32_codepoint_to_utf8()
114 case 1: *--dstP = (uint8_t)(srcChar | kFirstByteMark[bytes]); in utf32_codepoint_to_utf8()