This commit is contained in:
Erik Frojdh
2019-01-09 16:22:14 +01:00
parent feaa276284
commit 93ec5f5ef7
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
#pragma once
#include <vector>
#include <string>
#include <vector>
namespace sls {
@ -23,12 +23,12 @@ Split a string using the specified delimeter and return a vector of strings.
TODO! Look into switching to absl or a string_view based implementation. Current
implementation should not be used in a performance critical place.
*/
std::vector<std::string> split(const std::string& strToSplit, char delimeter);
std::vector<std::string> split(const std::string &strToSplit, char delimeter);
/*
Concatenate the non empty strings in the vector using +
*/
std::string concatenateNonEmptyStrings(const std::vector<std::string>& vec);
std::string concatenateNonEmptyStrings(const std::vector<std::string> &vec);
/*
Concatenate strings using + if the strings are different