| 519 | } |
| 520 | |
| 521 | template <typename Context, typename Iter> inline bool _parse_array(Context& ctx, input<Iter>& in) { |
| 522 | if (! ctx.parse_array_start()) { |
| 523 | return false; |
| 524 | } |
| 525 | size_t idx = 0; |
| 526 | if (in.expect(']')) { |
| 527 | return ctx.parse_array_stop(idx); |
| 528 | } |
| 529 | do { |
| 530 | if (! ctx.parse_array_item(in, idx)) { |
| 531 | return false; |
| 532 | } |
| 533 | idx++; |
| 534 | } while (in.expect(',')); |
| 535 | return in.expect(']') && ctx.parse_array_stop(idx); |
| 536 | } |
| 537 | |
| 538 | template <typename Context, typename Iter> inline bool _parse_object(Context& ctx, input<Iter>& in) { |
| 539 | if (! ctx.parse_object_start()) { |
no test coverage detected