MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / size

Method size

include/chaiscript/utility/json.hpp:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310
311 int size() const {
312 if( internal.Type == Class::Object ) {
313 return static_cast<int>(internal.Map->size());
314 } else if( internal.Type == Class::Array ) {
315 return static_cast<int>(internal.List->size());
316 } else {
317 return -1;
318 }
319 }
320
321 Class JSONType() const { return internal.Type; }
322

Callers 15

sizeMethod · 0.45
JSONClass · 0.45
lengthMethod · 0.45
consume_wsMethod · 0.45
parse_objectMethod · 0.45
parse_arrayMethod · 0.45
parse_numberMethod · 0.45
to_json_objectMethod · 0.45
ChaiScript_BasicMethod · 0.45
build_matchMethod · 0.45
Symbol_Method · 0.45
buildFloatMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected