src/string_manip.cpp
std::vector<std::string> split(const std::string& str, char delim) {
    std::vector<std::string> ret;
    std::string::const_iterator first  = str.cbegin();
    std::string::const_iterator second = str.cbegin();

    for(; second <= str.end(); ++second) {
        if(*(second) == delim || second == str.end()) {
            if(second != first) {
                ret.emplace_back(first, second);
            }

            first = second + 1;
        }
    }

    return ret;
}
/**
 * splits a string by some delimiting character
 * @param str   input string to be delimited
 * @param delim delimiting charater
 * @return      std::vector<std::string> of all substrings having been split
 */
splits a string by some delimiting character
@param str   input string to be delimited
@param delim delimiting charater
@return      std::vector of all substrings having been split
splits a string by some delimiting character @param str input string to be delimited @param delim delimiting charater @return std :: vector of all substrings having been split
std::vector<std::string> split(const std::string& str, char delim) {
    std::vector<std::string> ret;
    std::string::const_iterator first  = str.cbegin();
    std::string::const_iterator second = str.cbegin();
    for(; second <= str.end(); ++second) {
        if(*(second) == delim || second == str.end()) {
            if(second != first) {
                ret.emplace_back(first, second);
            }
            first = second + 1;
        }
    }
    return ret;
}
std :: vector < std :: string > split ( const std :: string & str , char delim ) { std :: vector < std :: string > ret ; std :: string :: const_iterator first = str . cbegin ( ) ; std :: string :: const_iterator second = str . cbegin ( ) ; for ( ; second <= str . end ( ) ; ++ second ) { if ( * ( second ) == delim || second == str . end ( ) ) { if ( second != first ) { ret . emplace_back ( first , second ) ; } first = second + 1 ; } } return ret ; }
splits a string by some delimiting character
 @param str   input string to be delimited
 @param delim delimiting charater
 @return      std::vector<std::string> of all substrings having been split
splits a string by some delimiting character @param str input string to be delimited @param delim delimiting charater @return std :: vector<std :: string > of all substrings having been split