MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / ReadStringArray

Function ReadStringArray

vkconfig_core/json.cpp:84–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82}
83
84std::vector<std::string> ReadStringArray(const QJsonObject& json_object, const char* key) {
85 const QJsonValue& json_value = json_object.value(key);
86 assert(json_value != QJsonValue::Undefined);
87 assert(json_value.isArray());
88
89 std::vector<std::string> string_array;
90
91 const QJsonArray& json_array = json_value.toArray();
92 for (int i = 0, n = json_array.size(); i < n; ++i) {
93 string_array.push_back(json_array[i].toString().toStdString());
94 }
95
96 return string_array;
97}
98
99std::string ReadString(const QJsonObject& json_object, const char* key) {
100 const QJsonValue& json_value = json_object.value(key);

Callers 7

LoadMethod · 0.85
LoadMetaHeaderFunction · 0.85
LoadMethod · 0.85
AddSettingsMessagesMethod · 0.85
LoadMethod · 0.85
LoadMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68