MCPcopy Create free account
hub / github.com/DFHack/dfhack / join_strings

Function join_strings

library/MiscUtils.cpp:222–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222std::string join_strings(const std::string &separator, const std::vector<std::string> &items)
223{
224 std::stringstream ss;
225
226 for (size_t i = 0; i < items.size(); i++)
227 {
228 if (i)
229 ss << separator;
230 ss << items[i];
231 }
232
233 return ss.str();
234}
235
236char toupper_cp437(char c)
237{

Callers 15

GetAliasCommandMethod · 0.70
keybindingMethod · 0.70
aliasMethod · 0.70
loadMethod · 0.70
serialize_associationsFunction · 0.50
serialize_noble_mapFunction · 0.50
get_place_keysFunction · 0.50
get_zone_keysFunction · 0.50
cleanupHotkeysFunction · 0.50
listFunction · 0.50
check_unknown_pointerMethod · 0.50

Calls 2

sizeMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected