20 #include <bsoncxx/document/view.hpp>
21 #include <bsoncxx/stdx/optional.hpp>
23 #include <bsoncxx/config/prelude.hpp>
26 BSONCXX_INLINE_NAMESPACE_BEGIN
44 BSONCXX_API stdx::optional<document::view> BSONCXX_CALL
45 validate(
const std::uint8_t* data, std::size_t length);
67 BSONCXX_API stdx::optional<document::view> BSONCXX_CALL
68 validate(
const std::uint8_t* data, std::size_t length,
const validator& validator,
69 std::size_t* invalid_offset =
nullptr);
92 void check_utf8(
bool check_utf8);
99 bool check_utf8()
const;
109 void check_utf8_allow_null(
bool check_utf8_allow_null);
118 bool check_utf8_allow_null()
const;
127 void check_dollar_keys(
bool check_dollar_keys);
135 bool check_dollar_keys()
const;
144 void check_dot_keys(
bool check_dot_keys);
152 bool check_dot_keys()
const;
155 struct BSONCXX_PRIVATE impl;
156 std::unique_ptr<impl> _impl;
159 BSONCXX_INLINE_NAMESPACE_END
162 #include <bsoncxx/config/postlude.hpp>
A validator is used to enable or disable specific checks that can be performed during BSON validation...
Definition: validate.hpp:74
Definition: element.hpp:24