DOKK / manpages / debian 12 / libbson-doc / bson_utf8_from_unichar.3.en
BSON_UTF8_FROM_UNICHAR(3) libbson BSON_UTF8_FROM_UNICHAR(3)

bson_utf8_from_unichar - bson_utf8_from_unichar()

void
bson_utf8_from_unichar (bson_unichar_t unichar, char utf8[6], uint32_t *len);


  • unichar: A bson_unichar_t.
  • utf8: A location for the utf8 sequence.
  • len: A location for the number of bytes in the resulting utf8 sequence.

Converts a single unicode character to a multi-byte UTF-8 sequence. The result is stored in utf8 and the number of bytes used in len.

MongoDB, Inc

2017-present, MongoDB, Inc

October 20, 2022 1.23.1