MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / String

Method String

src/NppJsonViewer/RapidJsonHandler.cpp:64–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

62}
63
64bool RapidJsonHandler::String(const Ch* str, unsigned /*length*/, bool /*copy*/)
65{
66 if (!str)
67 return false;
68
69 // handle case, when there is only a value in input
70 if (m_NodeStack.empty())
71 {
72 m_pTreeHandler->InsertToTree(m_treeRoot, str);
73 return true;
74 }
75
76 TreeNode* parent = m_NodeStack.top();
77 InsertToTree(parent, str, true);
78
79 return true;
80}
81
82bool RapidJsonHandler::Key(const Ch* str, unsigned length, bool /*copy*/)
83{

Callers

nothing calls this directly

Calls 1

InsertToTreeMethod · 0.45

Tested by

no test coverage detected