| 101 | } |
| 102 | |
| 103 | std::string joinStrings(const std::vector<std::string>& strings, const std::string& separator) |
| 104 | { |
| 105 | std::string result; |
| 106 | for (auto it = strings.begin(); it != strings.end(); it++) |
| 107 | { |
| 108 | result += *it; |
| 109 | |
| 110 | if (it != strings.end() - 1) |
| 111 | { |
| 112 | result += separator; |
| 113 | } |
| 114 | } |
| 115 | return result; |
| 116 | } |
| 117 | |
| 118 | std::string removeLeadingWhitespace(const std::string& str, const char* whitespace) |
| 119 | { |