returns "~" if keys is NULL; otherwise returns the keys with the building dimensions in the expansion syntax
| 1039 | // returns "~" if keys is NULL; otherwise returns the keys with the building |
| 1040 | // dimensions in the expansion syntax |
| 1041 | static const char * add_expansion_syntax(const df::building *bld, |
| 1042 | const char *keys) { |
| 1043 | if (!keys) |
| 1044 | return "~"; |
| 1045 | ostringstream s; |
| 1046 | pair<uint32_t, uint32_t> size = get_building_size(bld); |
| 1047 | s << keys << "(" << size.first << "x" << size.second << ")"; |
| 1048 | return cache(s); |
| 1049 | } |
| 1050 | |
| 1051 | static void add_expansion_syntax(const df::building *bld, ostringstream &keys) { |
| 1052 | if (keys.str().empty()) |
no test coverage detected