MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / representation

Method representation

src/Base/Unit.cpp:273–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273std::string Unit::representation() const
274{
275 auto name = getTypeString();
276 auto inParen = fmt::format("Unit: {} ({})", getString(), fmt::join(_exps, ","));
277 return name.empty() ? inParen : fmt::format("{} [{}]", inParen, name);
278}
279
280std::string Unit::getTypeString() const
281{

Callers 1

TESTFunction · 0.45

Calls 3

getStringFunction · 0.85
formatFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected