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

NAME

6       bson_utf8_validate - bson_utf8_validate()
7

SYNOPSIS

9          bool
10          bson_utf8_validate (const char *utf8, size_t utf8_len, bool allow_null);
11

PARAMETERS

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

DESCRIPTION

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

RETURNS

25       true if utf8 contains valid UTF-8.
26

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.20.0                           Nov 18, 2021            BSON_UTF8_VALIDATE(3)
Impressum