MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Profiles / GetString

Function GetString

layer/profiles_util.cpp:68–75  ·  view source on GitHub ↗

std::string GetString(const List &list) { std::string result; for (std::size_t i = 0, n = list.size(); i < n; ++i) { result += list[i].first; if (i < n - 1) result += ", "; } return result; } */

Source from the content-addressed store, hash-verified

66}
67*/
68std::string GetString(const std::vector<std::string> &strings) {
69 std::string result;
70 for (std::size_t i = 0, n = strings.size(); i < n; ++i) {
71 result += strings[i];
72 if (i < n - 1) result += ", ";
73 }
74 return result;
75}
76
77bool EndsWith(std::string const &value, std::string const &ending) {
78 if (ending.size() > value.size()) return false;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected