MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / key

Method key

native/thirdpart/json/json.hpp:4715–4730  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4713 }
4714
4715 bool key(string_t& val)
4716 {
4717 BasicJsonType k = BasicJsonType(val);
4718
4719 // check callback for key
4720 const bool keep = callback(static_cast<int>(ref_stack.size()), parse_event_t::key, k);
4721 key_keep_stack.push_back(keep);
4722
4723 // add discarded value at given key and store the reference for later
4724 if (keep and ref_stack.back())
4725 {
4726 object_element = &(ref_stack.back()->m_value.object->operator[](val) = discarded);
4727 }
4728
4729 return true;
4730 }
4731
4732 bool end_object()
4733 {

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
sizeMethod · 0.45
operator[]Method · 0.45

Tested by

no test coverage detected