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

Method mapToString

src/common/types/value/value.cpp:1069–1080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1067}
1068
1069std::string Value::mapToString() const {
1070 std::string result = "{";
1071 for (auto i = 0u; i < childrenSize; ++i) {
1072 auto structVal = children[i].get();
1073 result += structVal->children[0]->toString();
1074 result += "=";
1075 result += structVal->children[1]->toString();
1076 result += (i == childrenSize - 1 ? "" : ", ");
1077 }
1078 result += "}";
1079 return result;
1080}
1081
1082std::string Value::listToString() const {
1083 std::string result = "[";

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected