MCPcopy Create free account
hub / github.com/NatLabRockies/OpenStudio / isUnitString

Function isUnitString

src/utilities/units/UnitFactory.cpp:712–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710}
711
712bool isUnitString(const std::string& unitString) {
713 OptionalUnit unit = createUnit(unitString);
714 return unit.has_value();
715}
716
717Unit createDimensionlessUnit(UnitSystem system) {
718 switch (system.value()) {

Callers 2

unitStringsEqualFunction · 0.85

Calls 1

createUnitFunction · 0.85

Tested by

no test coverage detected