MCPcopy Create free account
hub / github.com/mattn/go-sqlite3 / _parse_array

Function _parse_array

_example/mod_vtable/picojson.h:521–536  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {

Callers 1

_parseFunction · 0.85

Calls 4

expectMethod · 0.80
parse_array_startMethod · 0.45
parse_array_stopMethod · 0.45
parse_array_itemMethod · 0.45

Tested by

no test coverage detected