D | Unicode.cpp | 393 static char32_t utf8_4b_to_utf32(uint8_t c1, uint8_t c2, uint8_t c3, uint8_t c4) { in utf8_4b_to_utf32() argument 394 return ((c1 & 0x07) << 18) | ((c2 & 0x3f) << 12) | ((c3 & 0x3f) << 6) | (c4 & 0x3f); in utf8_4b_to_utf32() 439 uint8_t c2, c3, c4; in utf8_to_utf16_length() local 443 c2 = in[1]; c3 = in[2]; c4 = in[3]; in utf8_to_utf16_length() 444 if (utf8_4b_to_utf32(c, c2, c3, c4) >= 0x10000) { in utf8_to_utf16_length() 479 uint8_t c, c2, c3, c4; in utf8_to_utf16_no_null_terminator() local 522 c2 = *in++; c3 = *in++; c4 = *in++; in utf8_to_utf16_no_null_terminator() 523 w = utf8_4b_to_utf32(c, c2, c3, c4); in utf8_to_utf16_no_null_terminator()
|