Function Jet::Utilities::SplitStringOnMultipleDelimiters

Function Documentation

inline std::vector<std::string> Jet::Utilities::SplitStringOnMultipleDelimiters(std::string s, const std::vector<std::string> &delimiters)

Splits s (at most once) on each of the given delimiters (in order).

Warning

All spaces are removed from s prior to performing the split.

Parameters
  • s – String to be split.

  • delimiters – Delimiters separating each part of the split string.

Returns

Vector containing the result of the split (excluding empty tokens).