MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / AsString

Method AsString

Util/src/InfoTree/InfoNode.cpp:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87std::string InfoNode::AsString() const {
88 if (_index < _tree->_nodeOrInfos.size()) {
89 if (_tree->_nodeOrInfos[_index].Kind == InfoKind::String) {
90 return _tree->_stringValues[_tree->_nodeOrInfos[_index].Data.StringIndex];
91 }
92 }
93 return "";
94}
95
96double InfoNode::AsDouble() const {
97 if (_index < _tree->_nodeOrInfos.size()) {

Callers 1

MakeNameStyleFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected