MCPcopy Create free account
hub / github.com/SpartanJ/eepp / join

Method join

src/eepp/core/string.cpp:954–970  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952}
953
954std::string String::join( const std::vector<std::string>& strArray, const Int8& joinchar,
955 const bool& appendLastJoinChar ) {
956 size_t s = strArray.size();
957 std::string str;
958
959 if ( s > 0 ) {
960 for ( size_t i = 0; i < s; i++ ) {
961 str += strArray[i];
962
963 if ( i != s - 1 || appendLastJoinChar ) {
964 str += joinchar;
965 }
966 }
967 }
968
969 return str;
970}
971
972String String::join( const std::vector<String>& strArray, const Int8& joinchar,
973 const bool& appendLastJoinChar ) {

Callers 15

amalgamateFunction · 0.45
amalgamate.pyFile · 0.45
find_missing_includesFunction · 0.45
closeMethod · 0.45
onDestroyMethod · 0.45
initMethod · 0.45
runBuildMethod · 0.45
runAppMethod · 0.45
findCommandFunction · 0.45
runLinterMethod · 0.45
gitMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected