MCPcopy Create free account
hub / github.com/LadybugDB/ladybug / structToString

Method structToString

src/common/types/value/value.cpp:1094–1106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1092}
1093
1094std::string Value::structToString() const {
1095 std::string result = "{";
1096 auto fieldNames = StructType::getFieldNames(dataType);
1097 for (auto i = 0u; i < childrenSize; ++i) {
1098 result += fieldNames[i] + ": ";
1099 result += children[i]->toString();
1100 if (i != childrenSize - 1) {
1101 result += ", ";
1102 }
1103 }
1104 result += "}";
1105 return result;
1106}
1107
1108std::string Value::nodeToString() const {
1109 if (children[0]->isNull_) {

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected