mergeVector() Merges the given vector-of-strings with the defined internal CSV delimiter */
| 438 | Merges the given vector-of-strings with the defined internal CSV delimiter |
| 439 | */ |
| 440 | std::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 |