Function splitString(const std::string&, const std::string&)
Defined in File checkFun.cpp
Function Documentation
-
std::vector<std::string> splitString(const std::string &str, const std::string &delimiter)
Splits a given string into a vector of substrings based on a specified delimiter.
This function takes a string and a delimiter string, then iteratively finds and extracts substrings separated by the delimiter. Substrings at the start and end of the input string are handled appropriately to avoid including empty strings in the result.
- Parameters:
str – The string to be split.
delimiter – The string used as the delimiter to split the input string.
- Returns:
A vector containing the substrings obtained by splitting the input string.