SYNOPSIS

#include <bson.h>

bson_unichar_t
bson_utf8_get_char (const char *utf8);

DESCRIPTION

The bson_utf8_get_char() function shall get the first UTF-8 character of utf8 and return it as a 32-bit unicode character.

This function is meant to be fast, so it requires that utf8 is valid UTF-8.

RETURN VALUE

A 32-bit unicode character.

ERRORS

No errors are defined.

AUTHORS

This page was written by MongoDB, Inc.