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

Method parse_null

include/chaiscript/utility/json.hpp:639–645  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

637 }
638
639 static JSON parse_null( const std::string &str, size_t &offset ) {
640 if( str.substr( offset, 4 ) != "null" ) {
641 throw std::runtime_error(std::string("JSON ERROR: Null: Expected 'null', found '") + str.substr( offset, 4 ) + "'");
642 }
643 offset += 4;
644 return JSON();
645 }
646
647 static JSON parse_next( const std::string &str, size_t &offset ) {
648 char value;

Callers

nothing calls this directly

Calls 3

stringClass · 0.85
JSONClass · 0.85
substrMethod · 0.80

Tested by

no test coverage detected