* @brief Split the given string into parts, returning the result as a std::vector. * * Convenience wrapper for split() which does not require an existing container variable. */
| 54 | * Convenience wrapper for split() which does not require an existing container variable. |
| 55 | */ |
| 56 | inline std::vector<std::string> splitToVec(const std::string& subject, |
| 57 | const std::string& delimiters, bool trimEmpty = true) |
| 58 | { |
| 59 | std::vector<std::string> result; |
| 60 | split(result, subject, delimiters, trimEmpty); |
| 61 | return result; |
| 62 | } |
| 63 | |
| 64 | } |
no test coverage detected