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

Method length

include/chaiscript/utility/json.hpp:295–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293
294
295 long length() const {
296 if( internal.Type == Class::Array ) {
297 return static_cast<long>(internal.List->size());
298 } else {
299 return -1;
300 }
301 }
302
303 bool has_key( const std::string &key ) const {
304 if( internal.Type == Class::Object ) {

Callers 1

isDebuggerActiveFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected