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

Function hexOrDec

plugins/devel/vectors.cpp:52–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52static bool hexOrDec(string &str, uintptr_t &value)
53{
54 std::stringstream ss;
55 ss << str;
56 if (str.find("0x") == 0 && (ss >> std::hex >> value))
57 return true;
58 else if (ss >> std::dec >> value)
59 return true;
60
61 return false;
62}
63
64static bool mightBeVec(vector<t_memrange> &ranges,
65 t_vecTriplet *vec)

Callers 2

df_vectorsFunction · 0.85
df_clearvecFunction · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected