Searched refs:srcChar (Results 1 – 1 of 1) sorted by relevance
79 static inline size_t utf32_codepoint_utf8_length(char32_t srcChar) in utf32_codepoint_utf8_length() argument82 if (srcChar < 0x00000080) { in utf32_codepoint_utf8_length()84 } else if (srcChar < 0x00000800) { in utf32_codepoint_utf8_length()86 } else if (srcChar < 0x00010000) { in utf32_codepoint_utf8_length()87 if ((srcChar < kUnicodeSurrogateStart) || (srcChar > kUnicodeSurrogateEnd)) { in utf32_codepoint_utf8_length()95 else if (srcChar <= kUnicodeMaxCodepoint) { in utf32_codepoint_utf8_length()105 static inline void utf32_codepoint_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes) in utf32_codepoint_to_utf8() argument110 case 4: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; in utf32_codepoint_to_utf8()111 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()[all …]