MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / joinStrings

Function joinStrings

Source/Falcor/Utils/StringUtils.cpp:103–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103std::string joinStrings(const std::vector<std::string>& strings, const std::string& separator)
104{
105 std::string result;
106 for (auto it = strings.begin(); it != strings.end(); it++)
107 {
108 result += *it;
109
110 if (it != strings.end() - 1)
111 {
112 result += separator;
113 }
114 }
115 return result;
116}
117
118std::string removeLeadingWhitespace(const std::string& str, const char* whitespace)
119{

Callers 3

saveImageMethod · 0.85
updateSearchPathsMethod · 0.85
writeXmlReportFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

writeXmlReportFunction · 0.68