MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / begin_array

Method begin_array

include/jsoncons/json_parser.hpp:424–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422 }
423
424 void begin_array(basic_json_visitor<char_type>& visitor, std::error_code& ec)
425 {
426 if (++level_ > max_nesting_depth_)
427 {
428 more_ = err_handler_(json_errc::max_nesting_depth_exceeded, *this);
429 if (!more_)
430 {
431 ec = json_errc::max_nesting_depth_exceeded;
432 return;
433 }
434 }
435
436 push_state(parse_state::array);
437 state_ = parse_state::expect_value_or_end;
438 visitor.begin_array(semantic_tag::none, *this, ec);
439 if (JSONCONS_UNLIKELY(ec)){return;};
440
441 more_ = !cursor_mode_;
442 }
443
444 void end_array(basic_json_visitor<char_type>& visitor, std::error_code& ec)
445 {

Calls

no outgoing calls

Tested by

no test coverage detected