Lines Matching refs:buf
167 utf8_encode_unsafe(uint8_t *buf, uint32_t c) in utf8_encode_unsafe() argument
170 buf[0] = c; in utf8_encode_unsafe()
173 buf[0] = 0xC0 | (c >> 6); in utf8_encode_unsafe()
174 buf[1] = 0x80 | (c & 0x3F); in utf8_encode_unsafe()
180 buf[0] = 0xE0 | (c >> 12); in utf8_encode_unsafe()
181 buf[1] = 0x80 | ((c >> 6) & 0x3F); in utf8_encode_unsafe()
182 buf[2] = 0x80 | (c & 0x3F); in utf8_encode_unsafe()
185 buf[0] = 0xF0 | (c >> 18); in utf8_encode_unsafe()
186 buf[1] = 0x80 | ((c >> 12) & 0x3F); in utf8_encode_unsafe()
187 buf[2] = 0x80 | ((c >> 6) & 0x3F); in utf8_encode_unsafe()
188 buf[3] = 0x80 | (c & 0x3F); in utf8_encode_unsafe()