MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / mergeString

Method mergeString

src/csvdatastorage.cpp:440–448  ·  view source on GitHub ↗

mergeVector() Merges the given vector-of-strings with the defined internal CSV delimiter */

Source from the content-addressed store, hash-verified

438 Merges the given vector-of-strings with the defined internal CSV delimiter
439*/
440std::string CsvDataStorage::mergeString(std::vector<std::string> row) {
441 std::string merged = "";
442 for(size_t i = 0; i < row.size(); ++i ) {
443 if( i > 0 )
444 merged.push_back( static_cast<char>(CsvDataStorage::TCRUNCHER_UTF_8_DELIMITER) );
445 merged.append(row[i]);
446 }
447 return merged;
448}
449
450
451

Callers

nothing calls this directly

Calls 3

push_backMethod · 0.80
appendMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected