| 78 | */ |
| 79 | template <typename TContainer> |
| 80 | std::string join(const TContainer& container, std::string seperator = "") { |
| 81 | std::string s; |
| 82 | bool first = true; |
| 83 | for (const auto& c : container) { |
| 84 | if (!first) |
| 85 | s += seperator; |
| 86 | first = false; |
| 87 | s += c; |
| 88 | } |
| 89 | return s; |
| 90 | } |
| 91 | |
| 92 | /** Splits a string into a vector of tokens. |
| 93 | If `maxTokens > 0`, limits the number of tokens. |
nothing calls this directly
no outgoing calls
no test coverage detected