test/shared/split_lines.hpp
static std::vector<std::string> Split(std::string const & str, char delim = '\n') {

    std::vector<std::string> res;
    res.clear();

    std::stringstream ss{str};
    std::string line;
    while (std::getline(ss, line, delim)) {
        res.push_back(line);
    }

    return res;
}
/**
 * @brief   Splits the content of the given str.
 * @param   str             the string to split.
 * @param   delim           the delimiter used.
 * @return  the lines produced.
 */
@brief   Splits the content of the given str.
@param   str             the string to split.
@param   delim           the delimiter used.
@return  the lines produced.
@brief Splits the content of the given str . @param str the string to split . @param delim the delimiter used . @return the lines produced .
static std::vector<std::string> Split(std::string const & str, char delim = '\n') {
    std::vector<std::string> res;
    res.clear();
    std::stringstream ss{str};
    std::string line;
    while (std::getline(ss, line, delim)) {
        res.push_back(line);
    }
    return res;
}
static std :: vector < std :: string > Split ( std :: string const & str , char delim = ' \n ' ) { std :: vector < std :: string > res ; res . clear ( ) ; std :: stringstream ss { str } ; std :: string line ; while ( std :: getline ( ss , line , delim ) ) { res . push_back ( line ) ; } return res ; }
@brief   Splits the content of the given str.
@brief Splits the content of the given str .