1BSON_UTF8_VALIDATE(3) libbson BSON_UTF8_VALIDATE(3)
2
3
4
6 bson_utf8_validate - bson_utf8_validate()
7
9 bool
10 bson_utf8_validate (const char *utf8, size_t utf8_len, bool allow_null);
11
13 • utf8: A string to verify.
14
15 • utf8_len: The length of utf8 in bytes.
16
17 • allow_null: A bool indicating that embedded \0 bytes are allowed.
18
20 Validates that the content within utf8 is valid UTF-8 (by the RFC 3629
21 standard). If allow_null is true, then embedded NULL bytes are allowed
22 (\0).
23
25 true if utf8 contains valid UTF-8.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.17.6 Jun 03, 2021 BSON_UTF8_VALIDATE(3)