45validate(std::uint8_t const* data, std::
size_t length);
69 std::uint8_t const* data,
72 std::
size_t* invalid_offset =
nullptr);
157 std::unique_ptr<impl> _impl;
#define BSONCXX_ABI_EXPORT_CDECL(...)
Equivalent to BSONCXX_ABI_EXPORT with BSONCXX_ABI_CDECL.
Definition export.hpp:52
The bsoncxx v_noabi macro guard postlude header.
The bsoncxx v_noabi macro guard prelude header.
A polyfill for std::optional<T>.
Definition optional.hpp:800
Used to toggle checks which may be performed during BSON validation.
Definition validate.hpp:77
validator()
Constructs a validator.
void check_dot_keys(bool check_dot_keys)
Verifies that document keys do not contain any '.' characters.
void check_utf8_allow_null(bool check_utf8_allow_null)
Verify that all keys and string values are valid UTF-8, but allow null bytes. This is generally bad p...
void check_utf8(bool check_utf8)
Verify that all keys and string values are valid UTF-8.
void check_dollar_keys(bool check_dollar_keys)
Verifies that document keys are not preceeded with '$'.
Provides bsoncxx::v_noabi::document::view.
Declares entities representing a BSON document.
Declares C++17 standard library polyfills.
Declares entities whose ABI stability is NOT guaranteed.
stdx::optional< document::view > validate(std::uint8_t const *data, std::size_t length)
Validates a BSON document. This is a simplified overload that will only do the bare minimum validatio...
The top-level namespace within which all bsoncxx library entities are declared.
Provides std::optional-related polyfills for library API usage.
Declares bsoncxx::v_noabi::validator.