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

Function int_to_string

library/include/MiscUtils.h:445–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

443DFHACK_EXPORT std::string capitalize_string_words(const std::string& str);
444
445static inline std::string int_to_string(const int n) {
446 std::ostringstream ss;
447 ss << n;
448 return ss.str();
449}
450
451static inline int string_to_int(const std::string s, int default_ = 0) {
452 try {

Callers 15

saveMethod · 0.85
serialize_noble_mapFunction · 0.85
forward_priorityFunction · 0.85
get_place_keysFunction · 0.85
seedwatch.cppFile · 0.85
autochop.cppFile · 0.85
getActivityItemMethod · 0.85
renderMethod · 0.85
getFortAverageMethod · 0.85
getDwarfAverageMethod · 0.85
getBreakdownAverageMethod · 0.85
renderMethod · 0.85

Calls 1

strMethod · 0.45

Tested by

no test coverage detected