Searched refs:out_utf8 (Results 1 – 2 of 2) sorted by relevance
358 size_t utf8_encode_unichar(char *out_utf8, char32_t g) { in utf8_encode_unichar() argument361 if (out_utf8) in utf8_encode_unichar()362 out_utf8[0] = g & 0x7f; in utf8_encode_unichar()365 if (out_utf8) { in utf8_encode_unichar()366 out_utf8[0] = 0xc0 | ((g >> 6) & 0x1f); in utf8_encode_unichar()367 out_utf8[1] = 0x80 | (g & 0x3f); in utf8_encode_unichar()371 if (out_utf8) { in utf8_encode_unichar()372 out_utf8[0] = 0xe0 | ((g >> 12) & 0x0f); in utf8_encode_unichar()373 out_utf8[1] = 0x80 | ((g >> 6) & 0x3f); in utf8_encode_unichar()374 out_utf8[2] = 0x80 | (g & 0x3f); in utf8_encode_unichar()[all …]
35 size_t utf8_encode_unichar(char *out_utf8, char32_t g);