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

Method GetNodeKey

src/NppJsonViewer/TreeViewCtrl.cpp:215–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215auto TreeViewCtrl::GetNodeKey(HTREEITEM hti) const -> std::wstring
216{
217 std::wstring retVal = GetNodeName(hti, true);
218
219 auto pos = retVal.find(L" : ");
220 if (pos != std::wstring::npos)
221 {
222 retVal = retVal.substr(0, pos);
223 }
224 return retVal;
225}
226
227auto TreeViewCtrl::GetNodeValue(HTREEITEM hti) const -> std::wstring
228{

Callers 2

SearchInTreeMethod · 0.80
CopyKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected