Function Jet::Utilities::SplitStringOnDelimiter

Function Documentation

inline void Jet::Utilities::SplitStringOnDelimiter(std::string &s, const std::string &delimiter, std::vector<std::string> &tokens)

Splits s (at most once) on the given delimiter and stores the result in the provided vector. If an instance of the delimiter is found, the contents of s up to (and including) the first occurrence of the delimiter are erased.

Parameters
  • s – String to be split.

  • delimiter – Delimeter separating each part of the split string.

  • tokens – Vector to store the result of the split.