MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / stringify_vector

Function stringify_vector

core/variant/variant.cpp:1006–1017  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1004
1005template <typename T>
1006String stringify_vector(const T &vec, int recursion_count) {
1007 String str("[");
1008 for (int i = 0; i < vec.size(); i++) {
1009 if (i > 0) {
1010 str += ", ";
1011 }
1012
1013 str += stringify_variant_clean(vec[i], recursion_count);
1014 }
1015 str += "]";
1016 return str;
1017}
1018
1019String Variant::stringify(int recursion_count) const {
1020 switch (type) {

Callers 1

stringifyMethod · 0.85

Calls 2

stringify_variant_cleanFunction · 0.85
sizeMethod · 0.65

Tested by

no test coverage detected