Function rcpputils::split

Function Documentation

inline std::vector<std::string> rcpputils::split(const std::string &input, char delim, bool skip_empty = false)

Split a specified input into tokens using a delimiter.

The returned vector will contain the tokens split from the input

Parameters:
  • input[in] the input string to be split

  • delim[in] the delimiter used to split the input string

  • skip_empty[in] remove empty strings from the returned vector

Returns:

A vector of tokens.