MCPcopy Create free account
hub / github.com/DFHack/dfhack / get_specials

Function get_specials

plugins/buildingplan/plannedbuilding.cpp:72–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70}
71
72static set<string> get_specials(color_ostream &out, PersistentDataItem &bld_config) {
73 vector<string> rawstrs;
74 split_string(&rawstrs, bld_config.get_str(), "|");
75 set<string> ret;
76 if (rawstrs.size() < 3)
77 return ret;
78 vector<string> specials;
79 split_string(&specials, rawstrs[2], ",");
80 for (auto & special : specials) {
81 if (special.size())
82 ret.emplace(special);
83 }
84 return ret;
85}
86
87static string serialize(const vector<vector<df::job_item_vector_id>> &vector_ids, const DefaultItemFilters &item_filters) {
88 vector<string> joined;

Callers 1

PlannedBuildingMethod · 0.85

Calls 2

split_stringFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected