1BSON_UTF8_VALIDATE(3)               libbson              BSON_UTF8_VALIDATE(3)
2
3
4

SYNOPSIS

6          bool
7          bson_utf8_validate (const char *utf8, size_t utf8_len, bool allow_null);
8

PARAMETERS

10utf8: A string to verify.
11
12utf8_len: The length of utf8 in bytes.
13
14allow_null: A bool indicating that embedded \0 bytes are allowed.
15

DESCRIPTION

17       Validates  that the content within utf8 is valid UTF-8 (by the RFC 3629
18       standard). If allow_null is true, then embedded NULL bytes are  allowed
19       (\0).
20

RETURNS

22       true if utf8 contains valid UTF-8.
23

AUTHOR

25       MongoDB, Inc
26
28       2017-present, MongoDB, Inc
29
30
31
32
331.25.1                           Nov 08, 2023            BSON_UTF8_VALIDATE(3)
Impressum