bson_utf8_validate(3)

bson_utf8_validate3

Usage

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.

Overview

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

Returns

true if utf8 contains valid UTF-8.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libbson-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.