Function cras::split
Defined in File string_utils.hpp
Function Documentation
-
::std::vector<::std::string> cras::split(const ::std::string &str, const ::std::string &delimiter, int maxSplits = -1)
Split the given string by the given delimiter.
- Parameters:
str – [in] The string to split.
delimiter – [in] The delimiter used for splitting.
maxSplits – [in] If >= 0, defines the maximum number of splits.
- Returns:
A vector of parts of the original string.