BSON_UTF8_FROM_UNICHAR(3)

NAME
bson_utf8_from_unichar()

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

PARAMETERS

.B unichar
    A bson_unichar_t .

.B utf8
    A location for the utf8 sequence.

.B len
    A location for the number of bytes in the resulting utf8 sequence.

DESCRIPTION
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 .

COLOPHON
This page is part of libbson. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.