| 23288 | template <typename InputType, typename SAX> |
| 23289 | JSON_HEDLEY_NON_NULL(2) |
| 23290 | static bool sax_parse(InputType&& i, SAX* sax, |
| 23291 | input_format_t format = input_format_t::json, |
| 23292 | const bool strict = true, |
| 23293 | const bool ignore_comments = false) |
| 23294 | { |
| 23295 | auto ia = detail::input_adapter(std::forward<InputType>(i)); |
| 23296 | return format == input_format_t::json |
| 23297 | ? parser(std::move(ia), nullptr, true, ignore_comments).sax_parse(sax, strict) |
| 23298 | : detail::binary_reader<basic_json, decltype(ia), SAX>(std::move(ia)).sax_parse(format, sax, strict); |
| 23299 | } |
| 23300 | |
| 23301 | template<class IteratorType, class SAX> |
| 23302 | JSON_HEDLEY_NON_NULL(3) |
no test coverage detected