| 19 | } |
| 20 | |
| 21 | std::string joinString(std::vector<std::string> &S, char Delim) { |
| 22 | std::string Result; |
| 23 | for (size_t Idx = 0; Idx < S.size(); Idx++) { |
| 24 | Result += S[Idx]; |
| 25 | if (Idx != S.size() - 1) { |
| 26 | Result += Delim; |
| 27 | } |
| 28 | } |
| 29 | return Result; |
| 30 | } |
| 31 | |
| 32 | bool endsWith(std::string const &Value, std::string const &Ending) { |
| 33 | if (Ending.size() > Value.size()) |