Searched refs:out_utf8 (Results 1 - 2 of 2) sorted by relevance

/systemd/src/basic/
H A Dutf8.c272 * @out_utf8: output buffer of at least 4 bytes or NULL
275 * This encodes a single UCS-4 character as UTF-8 and writes it into @out_utf8.
282 size_t utf8_encode_unichar(char *out_utf8, char32_t g) { argument
285 if (out_utf8)
286 out_utf8[0] = g & 0x7f;
289 if (out_utf8) {
290 out_utf8[0] = 0xc0 | ((g >> 6) & 0x1f);
291 out_utf8[1] = 0x80 | (g & 0x3f);
295 if (out_utf8) {
296 out_utf8[
[all...]
H A Dutf8.h43 size_t utf8_encode_unichar(char *out_utf8, char32_t g);

Completed in 455 milliseconds