MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / ckpt_json_object_contains

Function ckpt_json_object_contains

common/script/json_api.cpp:169–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169void ckpt_json_object_contains(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
170{
171 const ScriptArgs args(Parser, Param, NumArgs, "json_object_contains");
172 ReturnValue->Val->Integer = tree(args, 0)->contains(args.str(1)) ? 1 : 0;
173}
174
175void ckpt_json_object_element(struct ParseState* Parser, struct Value* ReturnValue, struct Value** Param, int NumArgs)
176{

Callers

nothing calls this directly

Calls 2

treeFunction · 0.85
strMethod · 0.80

Tested by

no test coverage detected