Home
last modified time | relevance | path

Searched refs:srcChar (Results 1 – 1 of 1) sorted by relevance

/system/core/libutils/
DUnicode.cpp73 static inline size_t utf32_codepoint_utf8_length(char32_t srcChar) in utf32_codepoint_utf8_length() argument
76 if (srcChar < 0x00000080) { in utf32_codepoint_utf8_length()
78 } else if (srcChar < 0x00000800) { in utf32_codepoint_utf8_length()
80 } else if (srcChar < 0x00010000) { in utf32_codepoint_utf8_length()
81 if ((srcChar < kUnicodeSurrogateStart) || (srcChar > kUnicodeSurrogateEnd)) { in utf32_codepoint_utf8_length()
89 else if (srcChar <= kUnicodeMaxCodepoint) { in utf32_codepoint_utf8_length()
99 static inline void utf32_codepoint_to_utf8(uint8_t* dstP, char32_t srcChar, size_t bytes) in utf32_codepoint_to_utf8() argument
104 case 4: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; in utf32_codepoint_to_utf8()
105 case 3: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; in utf32_codepoint_to_utf8()
106 case 2: *--dstP = (uint8_t)((srcChar | kByteMark) & kByteMask); srcChar >>= 6; in utf32_codepoint_to_utf8()
[all …]