| 421 | |
| 422 | template<typename T> |
| 423 | inline std::string join_strings(const std::string &separator, T &items) { |
| 424 | std::stringstream ss; |
| 425 | |
| 426 | bool first = true; |
| 427 | for (auto &item : items) { |
| 428 | if (first) |
| 429 | first = false; |
| 430 | else |
| 431 | ss << separator; |
| 432 | ss << item; |
| 433 | } |
| 434 | |
| 435 | return ss.str(); |
| 436 | } |
| 437 | |
| 438 | DFHACK_EXPORT char toupper_cp437(char c); |
| 439 | DFHACK_EXPORT char tolower_cp437(char c); |
no test coverage detected