MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / JoinString

Function JoinString

common/StringUtil.h:226–236  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224 /// Joins a string together using the specified delimiter.
225 template <typename T>
226 static inline std::string JoinString(const T& start, const T& end, char delimiter)
227 {
228 std::string ret;
229 for (auto it = start; it != end; ++it)
230 {
231 if (it != start)
232 ret += delimiter;
233 ret.append(*it);
234 }
235 return ret;
236 }
237 template <typename T>
238 static inline std::string JoinString(const T& start, const T& end, const std::string_view delimiter)
239 {

Callers 5

CreateShortcutMethod · 0.85
JoinWindowsPathMethod · 0.85
JoinNativePathMethod · 0.85

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected