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

Function flagarray_to_string

library/include/DataDefs.h:969–974  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

967 */
968 template<class T>
969 inline void flagarray_to_string(std::vector<std::string> *pvec, const BitArray<T> &val) {
970 typedef df::enum_traits<T> traits;
971 int size = traits::last_item_value-traits::first_item_value+1;
972 flagarrayToString(pvec, val.bits(), val.size(),
973 (int)traits::first_item_value, size, traits::key_table);
974 }
975
976 /**
977 * Represent flag array bits as a string, using sep as join separator.

Callers

nothing calls this directly

Calls 3

bitsMethod · 0.80
join_stringsFunction · 0.70
sizeMethod · 0.45

Tested by

no test coverage detected