MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / unsignedIntegerToString

Method unsignedIntegerToString

pcsx2-qt/Debugger/SymbolTree/SymbolTreeNode.cpp:769–776  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

767}
768
769QString SymbolTreeDisplayOptions::unsignedIntegerToString(u64 value, s32 size_bits) const
770{
771 int field_width = 0;
772 if (m_show_leading_zeroes)
773 field_width = static_cast<int>(ceilf(size_bits / log2f(m_integer_base)));
774
775 return QStringLiteral("%1").arg(value, field_width, m_integer_base, QLatin1Char('0'));
776}
777
778std::optional<s64> SymbolTreeDisplayOptions::stringToSignedInteger(QString string) const
779{

Callers 2

setUnsignedValueMethod · 0.80
generateDisplayStringMethod · 0.80

Calls 1

argMethod · 0.80

Tested by

no test coverage detected