MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / join

Method join

source/core/StarString.cpp:1093–1102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1091}
1092
1093String StringList::join(String const& separator) const {
1094 String joinedString;
1095 for (const_iterator i = begin(); i != end(); ++i) {
1096 if (i != begin())
1097 joinedString += separator;
1098 joinedString += *i;
1099 }
1100
1101 return joinedString;
1102}
1103
1104StringList StringList::slice(SliceIndex a, SliceIndex b, int i) const {
1105 return Star::slice(*this, a, b, i);

Callers 15

debugShowSpawnCellsMethod · 0.45
questParamTextFunction · 0.45
helpMethod · 0.45
listMethod · 0.45
guiFilterStringMethod · 0.45
printInputDescriptorFunction · 0.45
fromJsonMethod · 0.45
shutdownMethod · 0.45
changeStateMethod · 0.45
updateRunningMethod · 0.45
buildListsFromConfigMethod · 0.45
setKeybindingMethod · 0.45

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by 3

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36