MCPcopy Create free account
hub / github.com/ByConity/ByConity / begin

Method begin

base/common/JSON.cpp:743–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

741
742
743JSON::iterator JSON::iterator::begin() const
744{
745 ElementType type = getType();
746
747 if (type != TYPE_ARRAY && type != TYPE_OBJECT)
748 throw JSONException("JSON: not array or object when calling begin() method.");
749
750 //std::cerr << "begin()\t" << data() << std::endl;
751
752 Pos pos = ptr_begin + 1;
753 checkPos(pos);
754 if (*pos == '}' || *pos == ']')
755 return end();
756
757 return JSON(pos, ptr_end, level + 1);
758}
759
760JSON::iterator JSON::iterator::end() const
761{

Callers 9

to_stringFunction · 0.45
parseMethod · 0.45
convertHistoryFileFunction · 0.45
integerMethod · 0.45
getCompletionsMethod · 0.45
removeDuplicatesKeepLastFunction · 0.45
getResourceFunction · 0.45
addSignalHandlerFunction · 0.45
getPerServerPathMethod · 0.45

Calls 2

JSONClass · 0.85
endFunction · 0.50

Tested by

no test coverage detected