Provided by: libbson-doc_1.9.2-1_all bug

NAME

       bson_utf8_validate - bson_utf8_validate()

SYNOPSIS

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

PARAMETERS

utf8: A string to verify.

       • utf8_len: The length of utf8 in bytes.

       • allow_null: A bool indicating that embedded \0 bytes are allowed.

DESCRIPTION

       Validates  that  the  content  within  utf8  is  valid  UTF-8. If allow_null is true, then
       embedded NULL bytes are allowed (\0).

RETURNS

       true if utf8 contains valid UTF-8.

AUTHOR

       MongoDB, Inc

COPYRIGHT

       2018, MongoDB, Inc